Skip to content

Instantly share code, notes, and snippets.

@sometimesfood
sometimesfood / diskcheck.md
Last active July 13, 2018 09:00
Simple shell script to test new HDDs (moved)
@shmatov
shmatov / deploy.rake
Created November 15, 2012 13:17
rails + mina + unicorn
# lib/tasks/deploy.rake
namespace :deploy do
desc 'Deploy to staging environment'
task :staging do
exec 'mina deploy -f config/deploy/staging.rb'
end
end
anonymous
anonymous / elisp-load-dir.el
Created May 4, 2011 16:40
;;; elisp-load-dir.el -- Elisp Load Directory
;; Copyright (C) 1998 Len Budney <lbudney@pobox.com>
;; Author: Len Budney
;; Created: 1998
;; Modified: 2004 by Igor Rayak <osigor at cs dot huji dot ac dot il>
;; Maintainer: Igor Rayak <osigor at cs dot huji dot ac dot il>
;; Keywords: elisp load conf
;; URL: http://www.cs.huji.ac.il/support/emacs/src/lisp/elisp-load-dir.el
@sometimesfood
sometimesfood / handy-aliases.sh
Last active June 1, 2017 14:42
handy shell aliases
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"