Glide is the easiest way to create useful slide for all of your Gists.
- input key
<-
to go backward. - input key
->
to go forward.
" ============================================ | |
" NeoBundle | |
" https://github.com/Shougo/neobundle.vim | |
" ============================================ | |
if has('vim_starting') | |
set nocompatible | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
call neobundle#rc(expand('~/.vim/bundle/')) |
# ec2-ip | |
function ec2-ip() { | |
instances | percol | awk '{ print $1 }' | |
} | |
function instances() { | |
instances=( $(aws ec2 describe-instances \ | |
--query 'Reservations[*].Instances[*].[Tags[?Key==`Name`].Value[],PublicIpAddress]' \ | |
--output text \ | |
--profile `aws-profile | percol`) ) |
class Daemon | |
def self.run &block | |
new &block | |
end | |
def initialize &block | |
Process.daemon | |
@pid = Process.pid | |
File.write '/tmp/daemon.pid', @pid | |
yield |
cells = ('A'..'Z').to_a | |
count = 0 | |
begin | |
count += 1 | |
result = 4.times.map { cells[rand(cells.size)] }.join | |
print "#{result}細胞!" | |
end until result == 'STAP' | |
print <<-YOKATTA |
alias master="git co master && git pull origin master" | |
alias git-onyourmark="master && git delete-merged-branches && git remote prune closer" | |
alias cwd="pwd | sed 's/^.*\///'" | |
function t(){ tmux new-s -s `cwd | sed -E 's/\./-/g'` } | |
function or(){ open http://`cwd`.dev/ } | |
alias om="open http://localhost:4567/" |
class Symbol | |
def to_proc(*args) | |
-> receiver { receiver.send(self, *args) } | |
end | |
alias_method :[], :to_proc | |
end |
def | |
puts "" | |
end | |
|
require "mechanize" | |
agent = Mechanize.new | |
release = agent.get "http://maltinerecords.cs8.biz/release.html" | |
release.links.each do |link| | |
next unless link.text =~ /^\[MARU/ | |
title = link.text.gsub(/\//, ":") |
# .env | |
AWS_ACCESS_KEY_ID="hogehoge" | |
AWS_SECRET_ACCESS_KEY="mogamoga" |