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 | |
# root check | |
if [ `id -u` != "0" ]; then | |
echo "This should be run as root." | |
exit | |
fi | |
# Dependency check for curl and rsync | |
missing=0 |
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 | |
case "$1" in | |
"up" ) | |
amixer set Master 1%+ | |
;; | |
"down" ) | |
amixer set Master 1%- | |
;; | |
"toggle" ) |
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
... | |
# adblock | |
addn-hosts=/etc/hosts.adblock | |
... |
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 | |
echo "Starting a real editor" | |
sleep 1 | |
exec vim "$@" |
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 | |
TIMEFILE=$(dirname $0)/fstrim.timer | |
LOGFILE=/var/log/fstrim.log | |
date -u >> $LOGFILE | |
/usr/bin/fstrim -a -v >> $LOGFILE 2>&1 | |
touch $TIMEFILE |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
int main(int argc, const char *argv[]) | |
{ | |
uint8_t b = 0, c = 128; | |
int i; |
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
<html> | |
<head> | |
<style> | |
body { | |
background-color: black | |
} | |
</style> | |
<title>US Gov't Shutdown Clock</title> | |
</head> | |
<body> |
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 [ -z "$1" ]; then | |
echo "usage: $0 <file.wg>" | |
exit | |
fi | |
egrep '.documents.[0-9]+.name' "$1" | awk -F ': ' '{ print $2;}' |
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 | |
SORT="cat" | |
if [ "$1" = "-r" ]; then | |
shift | |
SORT="sort -R" | |
fi | |
if [ -z "$1" ] || [ "$1" = "-h" ]; then |
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
alias co='git checkout' | |
alias ci='git commit' | |
alias ga='git add' | |
alias addp='git add -p' | |
alias status='git status' | |
alias gdiff='git diff' | |
alias gpatch='git diff --no-prefix' | |
alias show='git show' | |
alias wdiff='git wdiff' | |
alias br='git branch' |