Skip to content

Instantly share code, notes, and snippets.

@Nervengift
Nervengift / foo.service
Last active October 16, 2015 13:16
Simple template unit file for running daemons via systemd
[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
@Nervengift
Nervengift / build_nodemcu
Last active August 29, 2015 14:21
building (and flashing) nodemcu
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
@Nervengift
Nervengift / motd
Created April 11, 2015 21:54
Bastel-VM MOTD: BMO
 
▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄  Let's play
  ▄▄        sysadmin
  ▄    ▄ ▄     games!
   ▄    ▄     
  ▄▄       
  ▄▄   ▄ ▄▄▄▄▄   
▄▄▄▄▄▄   ▄▄ [38;5;
@Nervengift
Nervengift / yeganesh_run
Created February 15, 2015 14:55
yeganesh (dmenu wrapper) wrapper
#!/bin/sh
yeganesh -x | ${SHELL:-"/bin/sh"} &
@Nervengift
Nervengift / pentadactyl-mpv
Created February 9, 2015 18:19
Open videos (e.g. on youtube) in external player (mpv) in pentadactyl
:map ,m :silent execute "!mpv '" + buffer.URL + "'"<enter>
#!/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