This file contains hidden or 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/sh | |
if [ $# -ne 2 ]; then | |
echo "Usage: fuck you <programm>" | |
exit 1 | |
fi | |
if killall -9 "$2"; then | |
echo | |
echo " (╯°□°)╯︵$(echo "$2"|toilet -f term -F rotate)" | |
echo | |
fi |
This file contains hidden or 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
:map ,m :silent execute "!mpv '" + buffer.URL + "'"<enter> |
This file contains hidden or 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/sh | |
yeganesh -x | ${SHELL:-"/bin/sh"} & |
This file contains hidden or 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 | |
# ================================================================================== # | |
# Focus the next window on the current workspace in i3, e.g. for binding to Alt+Tab # | |
# Depends: jq, awk, i3wm (obviously) # | |
# Author: Nervengift <[email protected]> # | |
# License: Don't think this deserves a license, Public Domain # | |
# Known bugs: doesn't work with non-window container focused # | |
# ================================================================================== # | |
ws=$(i3-msg -t get_workspaces|jq "map(select(.focused))[]|.name") |
This file contains hidden or 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
[49m [0m | |
[38;5;237m▄[38;5;115;48;5;237m▄▄▄▄ [48;5;237m▄▄▄▄▄▄▄▄▄▄▄[38;5;237;49m▄ [0m Let's play | |
[48;5;237m [48;5;115m [38;5;115;48;5;237m▄[38;5;237;48;5;115m▄ [48;5;237m [48;5;115m [48;5;194m [48;5;115m [48;5;237m [49m [0m sysadmin | |
[48;5;237m [48;5;115m [38;5;115;48;5;237m▄[48;5;115m [48;5;237m [48;5;115m [48;5;194m [38;5;0m▄ [48;5;194m▄ [48;5;115m [48;5;237m [49m [0m games! | |
[48;5;237m [48;5;115m [48;5;0m [38;5;115m▄[48;5;115m [48;5;237m [48;5;115m [48;5;194m [38;5;77;48;5;237m▄ [48;5;194m [48;5;115m [48;5;237m [49m [0m | |
[48;5;237m [48;5;115m [38;5;0m▄▄ [48;5;237m [48;5;115m [48;5;194m [48;5;115m [48;5;237m [49m [0m | |
[48;5;237m [48;5;115m [38;5;0m▄[38;5;115;48;5;0m▄[48;5;115m [48;5;237m [48;5;115m [38;5;27m▄ [38;5;17m▄▄▄▄▄ [48;5;237m [49m [0m | |
[38;5;0;48;5;60m▄[38;5;60;49m▄[48;5;237m▄[48;5;115m▄▄[38;5;0m▄ [48;5;237m [48;5;115m [38;5;45m▄▄ [38;5; |
This file contains hidden or 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
git clone https://github.com/pfalcon/esp-open-sdk | |
cd esp-open-sdk | |
make | |
export PATH="$(pwd)/xtensa-lx106-elf/bin:$PATH" | |
cd .. | |
git clone https://github.com/nodemcu/nodemcu-firmware.git | |
cd nodemcu-firmware | |
# optional: edit app/include/user_modules.h and other configs | |
make | |
#make flash |
This file contains hidden or 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
#!/usr/bin/bash | |
# choose pulseaudio sink via rofi or dmenu | |
# changes default sink and moves all streams to that sink | |
sink=$(ponymix -t sink list|awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}'|rofi -dmenu -p 'pulseaudio sink:' -location 6 -width 100|grep -Po '[0-9]+(?=:)') && | |
# alternate version using dmenu: | |
# sink=$(ponymix -t sink list|awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}'|dmenu -p 'pulseaudio sink:'|grep -Po '[0-9]+(?=:)') && | |
ponymix set-default -d $sink && | |
for input in $(ponymix list -t sink-input|grep -Po '[0-9]+(?=:)');do |
This file contains hidden or 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
[Unit] | |
Description=<description> | |
# Start after network (network may still not be online on start, see http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/) | |
#After=network.target | |
[Service] | |
# If the program forks to background | |
#Type=forking | |
ExecStart=<full path to program [with parameters and option]> | |
# Run as specific user |
This file contains hidden or 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 | |
# install on central git repo as hooks/post-receive | |
# generates timestamp signatures for all commits | |
read oldrev newrev refname | |
mkdir -p timestamps | |
oldrev=$(git rev-parse $oldrev) | |
newrev=$(git rev-parse $newrev) | |
git rev-list "$oldrev..$newrev" | while read commit; do | |
echo "creating timestamp signature for $commit..." |
This file contains hidden or 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
function pandoc-md { | |
while true ;do | |
inotifywait -e modify $1 2>/dev/null | |
date | |
pandoc $1 -V geometry:margin=2cm -o $1.pdf | |
done | |
} |
OlderNewer