Skip to content

Instantly share code, notes, and snippets.

@i4fumi
i4fumi / .vimrc
Created October 21, 2012 08:13
.vimrc
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
@i4fumi
i4fumi / .minttyrc
Created October 21, 2012 08:11
.minttyrc
BoldAsFont=no
Transparency=off
CursorType=block
BackspaceSendsBS=yes
CopyAsRTF=no
RightClickAction=paste
Columns=80
Rows=53
FontHeight=10
Font=MS ゴシック
@i4fumi
i4fumi / getpopularity.rb
Created October 6, 2012 06:23
Github の言語人気順位をとってくる
#!/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/
@i4fumi
i4fumi / mosh-ruby.rb
Created October 4, 2012 01:18
mosh-ruby
#!/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