Skip to content

Instantly share code, notes, and snippets.

View sm-moshi's full-sized avatar

sm_moshi sm-moshi

  • Berlin, Germany
  • 16:46 (UTC +01:00)
View GitHub Profile
@thesamesam
thesamesam / libxcrypt-migration.md
Last active December 10, 2021 22:39
Migrating a Gentoo install to libxcrypt (OBSOLETE)

This document is oboslete!

Please read the news item and wiki page instead.

Migrating a Gentoo install to libxcrypt

This is a set of instructions for migrating a Gentoo glibc system's libcrypt provider from glibc[crypt] to libxcrypt[system].

See wiki notes for background, etc.

@sarthakpranesh
sarthakpranesh / cleanMacVMs.sh
Last active December 5, 2025 06:26
Debloat Mac OS ( use at your own risk )
# I use MacOS VMs from github for iOS development.
# By no suprise they are a bit slow and have a lot of things I don't use
# Hence this script for lighter and better VM for my iOS development and builds
# GUI and animation related things to tweak
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
defaults write -g QLPanelAnimationDuration -float 0
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock launchanim -bool false
sudo sysctl debug.lowpri_throttle_enabled=0
@gcarq
gcarq / package.env
Last active February 26, 2025 03:43
Gentoo package.env for global clang-13
# Required to bootstrap LLVM and clang
sys-devel/llvm bootstrap-clang
sys-libs/libcxx bootstrap-clang
sys-libs/libcxxabi bootstrap-clang
sys-libs/compiler-rt bootstrap-clang
sys-libs/compiler-rt-sanitizers bootstrap-clang
sys-libs/llvm-libunwind bootstrap-clang
sys-devel/lld bootstrap-clang
sys-devel/clang bootstrap-clang
@ruimaranhao
ruimaranhao / python-guide-ist.md
Last active December 12, 2025 06:23
A guide of best practices to developing in Python (meant for the first year students of Instituto Superior Técnico, U.Lisboa).

A Guide of Best Practices for Python

A guide of best practices to developing in Python (meant for the first year students of the Instituto Superior Técnico, University of Lisbon). Do you want to have a hard-cover book on this, check this list out.

Inspired in Steve Sloria's gist.

In General

"Beautiful is better than ugly." - [PEP 20][]

@renich
renich / 00-gentoo-installation-partitioning.bash
Last active October 18, 2025 18:25
Install Gentoo on BtrFS subvolumes + UEFI
#!/usr/bin/env bash
# WARNING!!
# This will obliterate all the data in your partition!! (not actually true, but act as if it was)
# Do NOT execute this script if you don't fully understand it!
# a few vars
amount_of_swap=$( free --si -g | grep Mem: | gawk '{ print $2 + 1}' )
# create directories