Skip to content

Instantly share code, notes, and snippets.

View pgmot's full-sized avatar
🏠
Working from home

mot pgmot

🏠
Working from home
View GitHub Profile
@pgmot
pgmot / heater.rb
Created December 11, 2013 12:39
PCで暖かくするスクリプト
while true do
p "Hoooooooot"
end
@pgmot
pgmot / gist:7543587
Created November 19, 2013 10:46
IRCからJenkinsおじさん叩き起こすよう
require "sinatra"
require "cinch"
require "yaml"
require "json"
config_file = ARGV.shift || "config.yml"
if not File.exist? config_file
puts "error: Can't find config file #{config_file}"
exit
end
@pgmot
pgmot / init-loader-func.sh
Created March 24, 2013 05:13
init-loaderでelをオンオフするやつ
function el-on {
for SCRIPT in $@
do
if [ ! -e ~/.emacs.d/inits-available/$SCRIPT.el ]; then
echo "$SCRIPT.el is not found";
else
rm -rf ~/.emacs.d/inits-enable/$SCRIPT.el ~/.emacs.d/inits-enable/$SCRIPT.elc
ln -s ~/.emacs.d/inits-available/$SCRIPT.el ~/.emacs.d/inits-enable/$SCRIPT.el
fi
done
@pgmot
pgmot / Makefile.latex
Last active December 13, 2015 23:49
なんかpdf作るために使ったり
PLATEX = platex
DVIPDFMX = dvipdfmx
BIBTEX = bibtex
TARGET = research_plan
PDF_READER = open
all: $(TARGET).dvi
pdf: $(TARGET).pdf