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/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 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 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 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 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 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 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 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/env python3 | |
# Send notifications for all mails with the "notify" tag via notify-send | |
# | |
# This is best used in combination with afew. To notify for all new messages just add | |
# the following filter to your ~/.config/afew/config just before [InboxFilter]: | |
# | |
# [Filter.0] | |
# message = notify | |
# query = tag:new AND NOT tag:killed AND NOT tag:spam |
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
// polyfill for Array.prototype.fill | |
if (!Array.prototype.fill) { | |
Object.defineProperty(Array.prototype, 'fill', { | |
value: function(value) { | |
if (this == null) { | |
throw new TypeError('this is null or not defined'); | |
} | |
var O = Object(this); |
OlderNewer