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
CapsLock::ESC |
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 | |
# First argument: delay between time lapse screenshots (in seconds). Default=3 | |
DELAY=${1:-"3"} | |
echo "Press Ctrl+C to stop capturing time lapse screenshots." | |
while [ 1 ]; do | |
scrot -q 100 "$(date +%Y%m%d%H%M%S).jpg" | |
sleep $DELAY |
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 | |
# optional first argument is the directory to place the configuration files | |
VIMDIR=${1:-".vim"} | |
# clone vimfiles repository in home directory | |
cd ~/ | |
git clone git@github.com:Natman64/vimfiles.git | |
mv vimfiles ${VIMDIR} |
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 | |
# First argument: the ID of the Github Gist to clone from | |
GIST_ID=${1} | |
# Clone the gist in our bin directory | |
cd ~/bin | |
git clone git@gist.github.com:/${GIST_ID}.git | |
# symlink all scripts for global execution |
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
Scripts run on startup to customize my Xubuntu environment. |
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
set editing-mode vi | |
set keymap vi-command |
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 | |
import re | |
import random | |
import unittest | |
exit_commands = ( "quit", "exit", "stop" ) | |
modifier_pattern = """ | |
\s* # white space allowed between dice expression and modifier |
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
# create a virtual sink for both audio streams | |
SINK_ID=$(pactl load-module module-null-sink sink_name=StreamAudio sink_properties=device.description=StreamAudio) | |
# find microphone source ID | |
MIC_ID=$(pactl list short sources | grep "Snowball" | cut -f1) | |
# loop microphone to the new sink | |
MIC_LOOPBACK_ID=$(pactl load-module module-loopback sink=StreamAudio source=$MIC_ID) | |
# find stereo monitor ID |
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 | |
cd /Applications/PICO-8.app/Contents/MacOS | |
./pico8 "$@" |
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 | |
# Syntax: interval-screenshots [interval (seconds)] | |
# Takes screenshots periodically and saves them to the current directory | |
while [ 1 ]; | |
do | |
vardate=$(date +%d\-%m\-%Y\_%H.%M.%S) | |
screencapture -t jpg -x ./$vardate.jpg | |
sleep $1; |
OlderNewer