diskcheck.sh development has moved to sometimesfood/diskburn.
This file contains hidden or 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 hidden or 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
require 'irb/completion' | |
require 'irb/ext/save-history' | |
require 'pp' | |
# Load the readline module. | |
IRB.conf[:USE_READLINE] = true | |
# Remove the annoying irb(main):001:0 and replace with >> | |
IRB.conf[:PROMPT_MODE] = :SIMPLE |
This file contains hidden or 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
(defun macosx-p() | |
(string= "darwin" system-type)) | |
(when (macosx-p) | |
(setq mac-option-key-is-meta nil) | |
(setq mac-command-key-is-meta t) | |
(setq mac-command-modifier 'meta) | |
(setq mac-option-modifier nil) | |
(set-default-font "Menlo-Regular-14") | |
(blink-cursor-mode 1) |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 "$@" |
puts 'Hello world' # (1)
-
I’d love to be a comment.
Note: This gist illustrates asciidoctor/asciidoctor#1360
This file contains hidden or 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 'minitest/autorun' | |
class SystemRunner | |
def ls | |
system 'ls' | |
end | |
end |
OlderNewer