This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ruby | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! SourceVimLocal() | |
if filereadable(".vimlocal") | |
source .vimlocal | |
endif | |
endfunction | |
call SourceVimLocal() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |