Skip to content

Instantly share code, notes, and snippets.

@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 / i3_focus_next
Last active January 20, 2023 19:05
focus next window in i3 (like Alt+Tab in other WMs)
#!/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 <dev@nerven.gift> #
# 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")
@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