puts 'Hello world' # (1)
-
I’d love to be a comment.
Note: This gist illustrates asciidoctor/asciidoctor#1360
puts 'Hello world' # (1)
I’d love to be a comment.
Note: This gist illustrates asciidoctor/asciidoctor#1360
#!/usr/bin/env ruby | |
require 'minitest/autorun' | |
class SystemRunner | |
def ls | |
system 'ls' | |
end | |
end |
#!/usr/bin/env ruby | |
require 'minitest/autorun' | |
require 'erb' | |
class ErbTemplate | |
def initialize(hash) | |
hash.each do |k, v| | |
instance_var = "@#{k}" |
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 |
(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) |
#!/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 |
#!/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' |
#!/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 |
package main | |
import ( | |
"log" | |
"fmt" | |
"github.com/PuerkitoBio/goquery" | |
) | |
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" |