Skip to content

Instantly share code, notes, and snippets.

@eclecticc
eclecticc / Ubuntu 22.04 LTS Installation on the Framework Laptop steps
Last active November 26, 2024 12:18
Ubuntu 22.04 LTS Installation on the Framework Laptop steps
# Make sure to update your packages to get the latest kernel
sudo apt update && sudo apt upgrade -y
# To enable headset mic input, edit /etc/modprobe.d/alsa-base.conf
echo "options snd-hda-intel model=dell-headset-multi" | sudo tee -a /etc/modprobe.d/alsa-base.conf
# On some SSDs (e.g. SN750 with older firmware), there is a workaround to improve suspend battery life
sudo sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT.*/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvme.noacpi=1"/g' /etc/default/grub
# Then refresh the GRUB configuration
@nemoinho
nemoinho / A_Readme.md
Last active May 10, 2023 12:43
Traefik mit docker-compose

Traefik via docker-compose

Hier ein Beispiel für Traefik, als selbstständiger Service in einer einzelnen docker-compose Datei und einem Service in einer anderen Datei.

Das externe Netz web wurde vorher einmalig erstellt mit dem Befehl:

docker network create web

Das macht das anschließende Arbeiten etwas leichter, weil der Name einfacher zu merken ist :)

@mvetsch
mvetsch / gist:9bfdee7c56140eae2baa0be711fc8ded
Last active February 6, 2024 08:36
Wireless configuration with nmcli (NetworkManager ) for ETHZ (eth / eduroam)
nmcli connection add type wifi con-name eduroam ifname wlp3s0 ssid "eduroam" -- wifi-sec.key-mgmt wpa-eap 802-1x.eap ttls 802-1x.identity [CUT]@student-net.ethz.ch 802-1x.phase2-auth mschapv2 802-1x.domain-suffix-match radius-service.ethz.ch
nmcli connection add type wifi con-name eth ifname wlp3s0 ssid "eth" -- wifi-sec.key-mgmt wpa-eap 802-1x.eap ttls 802-1x.identity [CUT]@student-net.ethz.ch 802-1x.phase2-auth mschapv2 802-1x.domain-suffix-match radius-service.ethz.ch
# activate with
nmcli connection up eduroam --ask
nmcli connection up eth --ask
# Beets configuration --------------------------------------------------------
directory: /music/ORDERED
import:
# write metadata to music files
write: yes
# move imported files from source to the music directory
copy: no
@vkobel
vkobel / .Xresources
Created June 10, 2016 13:02
Custom monokai themed Xresources file (tested with URxvt and i3)
! special
*.foreground: #d1d1d1
! *.background: #221e2d
*.cursorColor: #d1d1d1
! black
*.color0: #272822
*.color8: #75715e
! red
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active June 5, 2025 11:59
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@stefanschmidt
stefanschmidt / remove-annotations.sh
Last active May 16, 2025 00:53
Remove all annotations from a PDF document
pdftk original.pdf output uncompressed.pdf uncompress
LANG=C sed -n '/^\/Annots/!p' uncompressed.pdf > stripped.pdf
pdftk stripped.pdf output final.pdf compress