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/dash -f | |
# Configure wmii | |
wmiiscript=wmiirc # For wmii.sh | |
. wmii.sh | |
# Configuration Variables | |
MODKEY=Mod1 | |
UP=k | |
DOWN=j |
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
ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s <widthxheight> -i :0.0<+offsetx,offsety> -acodec pcm_s16le -vcodec libx264 -r 25 -preset ultrafast -crf 0 -threads 0 <filename>.mkv |
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
$(document).ready(function() { | |
if(data !== undefined){ | |
// the data loaded just fine | |
loaded = true; | |
} | |
}); |
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
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
setopt autocd | |
bindkey -v | |
# End of lines configured by zsh-newuser-install | |
# The following lines were added by compinstall | |
zstyle :compinstall filename '/home/benkaiser/.zshrc' |
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
abs | |
acpi | |
alsa-utils | |
arp-scan | |
autoconf | |
automake | |
baobab | |
bash | |
bison | |
btrfs-progs |
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/python | |
import random | |
def main(): | |
num_correct = 0 | |
num_incorrect = 0 | |
while True: | |
num_1 = random.randint(0, 12) | |
num_2 = random.randint(1, 12) | |
is_mult = bool(random.getrandbits(1)) |
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 | |
chmod 0777 /sys/class/leds/samsung::kbd_backlight/brightness |
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
adb root | |
adb shell | |
cd data | |
rm -rf log/* | |
// DU | |
du -h -d=1 |
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
# command from archlinux wiki: https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync | |
sudo rsync -aAXh --progress --exclude /mnt/ --exclude /media/ --exclude /dev/ --exclude /proc/ --exclude /sys/ --exclude /tmp/ --exclude /run/ --exclude /lost+found/ --exclude /home/benkaiser/Copy --exclude /home/benkaiser/tmp /* /run/media/benkaiser/WD\ 2TB/rsync |
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
# install needed packages | |
pacman -S base-devel fakeroot jshon | |
# get the PKGBUILD for Packer | |
wget https://aur.archlinux.org/packages/pa/packer/PKGBUILD | |
# make the package | |
makepkg | |
# install it with pacman | |
pacman -U packer-*.pkg.tar.xz |
OlderNewer