diskcheck.sh development has moved to sometimesfood/diskburn.
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 | |
checkusage() { | |
[[ $# -lt 2 ]] && err_exit 'Usage: reencrypt.sh KEY_ID FILE...' | |
} | |
err() { echo -e "$@" >&2; } | |
err_exit() { | |
err "$@" |
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
@ECHO OFF | |
SETLOCAL | |
SET ARGC=0 | |
FOR %%x IN (%*) DO SET /A ARGC+=1 | |
IF NOT %ARGC%==3 ( | |
ECHO Usage: %~n0 USER TARGET_HOST TARGET_DIR | |
GOTO :eof | |
) | |
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 ruby | |
require 'set' | |
def usage | |
puts 'usage: #{$PROGRAM_NAME} WORD...' | |
exit(1) | |
end | |
usage if ARGV.length.zero? |
I hereby claim:
- I am sometimesfood on github.
- I am sometimesfood (https://keybase.io/sometimesfood) on keybase.
- I have a public key whose fingerprint is 3219 8348 BA23 87DC 3A28 C055 66EB 4AE8 3C43 CFF5
To claim this, I am signing this object:
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
playrar () { unrar p -inul $* | mplayer -noidx -cache 30000 - } | |
alias spindown="sdparm --flexible --command=stop" | |
alias diff2html="pygmentize -f html -O full,style=emacs -l diff" | |
alias wdiff2html="pygmentize -f html -O full,style=emacs -l wdiff" |
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
package main | |
import ( | |
"log" | |
"fmt" | |
"github.com/PuerkitoBio/goquery" | |
) | |
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 | |
set -e | |
WIN_REGEXP='Boot\([[:digit:]]*\)\* Windows Boot Manager$' | |
WIN_BOOT_ENTRY=$(efibootmgr | grep -e "${WIN_REGEXP}" | head -1) | |
WIN_BOOT_NUM=$(echo ${WIN_BOOT_ENTRY} | sed -e "s/${WIN_REGEXP}/\1/g") | |
efibootmgr --quiet --bootnext ${WIN_BOOT_NUM} | |
reboot |
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 | |
set -e | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get install -qy curl git-core lsb-release chef | |
mkdir ~/cookbooks | |
cd ~/cookbooks | |
echo '*~' > .gitignore | |
git init | |
git add . | |
git commit -am 'Initial 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
#!/bin/bash | |
mkdir -p ~/.dotfiles | |
git clone git://git.grml.org/grml-etc-core.git ~/.dotfiles/grml-etc-core | |
cd ~/.dotfiles/grml-etc-core | |
export LAST_RELEASE=$(git describe) | |
git checkout $LAST_RELEASE | |
ln -sf ~/.dotfiles/grml-etc-core/etc/grml/screenrc_generic ~/.screenrc | |
ln -sf ~/.dotfiles/grml-etc-core/etc/vim/vimrc ~/.vimrc | |
ln -sf ~/.dotfiles/grml-etc-core/etc/zsh/zshrc ~/.zshrc | |
touch ~/.zshrc.local |
NewerOlder