Skip to content

Instantly share code, notes, and snippets.

@AndrewVos
AndrewVos / install-irssi-on-ec2.sh
Created September 3, 2011 22:58
Installing IRSSI on ec2
# 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
@ldenman
ldenman / gist:1390139
Created November 23, 2011 22:37
SourceVimLocal
function! SourceVimLocal()
if filereadable(".vimlocal")
source .vimlocal
endif
endfunction
call SourceVimLocal()
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}"
@tadast
tadast / ruby.yml
Created April 26, 2020 20:29
Example github actions config for Rails with postgres using DATABASE_URL
name: Ruby
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build: