This file contains 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
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' |
This file contains 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
BoldAsFont=no | |
Transparency=off | |
CursorType=block | |
BackspaceSendsBS=yes | |
CopyAsRTF=no | |
RightClickAction=paste | |
Columns=80 | |
Rows=53 | |
FontHeight=10 | |
Font=MS ゴシック |
This file contains 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
#!/usr/local/bin/ruby | |
# encoding: utf-8 | |
require 'rest_client' | |
require 'nokogiri' | |
def get_popularity(link) | |
doc = Nokogiri::HTML(RestClient.get "https://github.com#{link.attr(:href)}") | |
title = doc.css(".pagehead h1").first.content | |
unless title =~ /(.+) is the(?: #(\d+))? most popular language on GitHub/ |
This file contains 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
#!/usr/local/bin/ruby | |
# encoding: utf-8 | |
require 'syck' | |
require 'net/ssh' | |
def usage | |
puts "usage: #{File.basename($0)} user@ip_address:ssh_port" | |
exit 1 | |
end |