View ruby.yml
name: Ruby | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: |
View utilities.rb
def sh command | |
system command | |
unless $?.success? | |
log "failed: #{command}" | |
exit 1 | |
end | |
end | |
def write_host_entry ip, host | |
add_line_to_file "/etc/hosts", "#{ip} #{host}" |
View gist:1390139
function! SourceVimLocal() | |
if filereadable(".vimlocal") | |
source .vimlocal | |
endif | |
endfunction | |
call SourceVimLocal() |
View install-irssi-on-ec2.sh
# dependencies | |
sudo yum install pkg-config | |
sudo yum install perl-ExtUtils-Embed | |
# Download and extract latest irssi | |
wget http://irssi.org/files/irssi-0.8.15.tar.gz | |
tar tar -xzvf irssi-0.8.15.tar.gz | |
#configure and make | |
cd irssi-0.8.15 |