This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sL whatthecommit.com | htmlq "#content p:first-child" -tw | sed '/^$/d' |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# battery monitor systemd suspend/resume hook | |
LOGFILE=/var/log/battery.csv | |
KERNEL=$(uname -r) | |
BIOS=$(dmidecode -s bios-version) | |
log() { | |
cd /sys/class/power_supply |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> class A(): | |
...: def uno(self): | |
...: print("A uno") | |
>>> class B(): | |
...: def uno(self): | |
...: print("B uno") | |
...: def dos(self): | |
...: print("B dos") | |
...: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/acpi/events/thinkpad-hotkeys | |
event=ibm/hotkey | |
action=/etc/acpi/thinkpad-hotkeys.sh %e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# particion swap size = ram | |
# gettear UUID con blkid | |
# en /etc/grub/default agregar, | |
# quiet splash resume=UUID=<UUID-swap-partition> | |
# sudo update-grub | |
# sudo vim /etc/polkit-1/localauthority.conf.d/10-hibernate.conf | |
[Re-enable hibernate by default for login1] | |
Identity=unix-user:* | |
Action=org.freedesktop.login1.hibernate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# sudo apt install jq wget curl | |
# usage: github-install user/repo | |
set -e | |
repo=$1 | |
tmp="/tmp/.github-install" | |
binpath="$HOME/.local/bin" | |
rm -rf $tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inotify(watch/wait) -- inotify tools to monitor file changes | |
wrk -- stress http server test | |
sendmidi/receivemidi -- midi tools | |
ipcalc -- calculate network hosts ranges | |
pup -- parse DOM | |
pyp -- pipe to python | |
qrcp -- transfer files scanning qr | |
gotty -- share tty | |
zerotier -- free tunnel / private LAN mesh network | |
castnow -- cast media to chromecast |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.