Skip to content

Instantly share code, notes, and snippets.

" URL: http://vim.wikia.com/wiki/Example_vimrc
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode
" Description: A minimal, but feature rich, example .vimrc. If you are a
" newbie, basing your first .vimrc on this file is a good choice.
" If you're a more advanced user, building your own .vimrc based
" on this file is still a good idea.
"------------------------------------------------------------
" Features {{{1
"
" URL: http://vim.wikia.com/wiki/Example_vimrc
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode
" Description: A minimal, but feature rich, example .vimrc. If you are a
" newbie, basing your first .vimrc on this file is a good choice.
" If you're a more advanced user, building your own .vimrc based
" on this file is still a good idea.
"------------------------------------------------------------
" Features {{{1
"
@atpons
atpons / shakure.rb
Created June 4, 2012 08:03
shuffle with shakure
#!/usr/env/ruby
# encoding: utf-8
agos = ["Shakure", "HyperShakure", "SuperShakure"]
p agos.sample(1)
@atpons
atpons / satoshi.txt
Created August 31, 2012 05:18
satoshi_bot
Wikipediaの記事タイトル等をゲットしていく Twitter bot です。
実装している機能:
・Wikipediaの記事タイトルからツイート
Todo:
・TLのツイートを読み込み形態素解析する (枠組みのみ)
免責事項:
・このbotは実在するキャラクター等とは一切関係ございませんのでご了承ください。
@atpons
atpons / sangi.rb
Created September 18, 2012 15:12
TMCIT Exam archives downaloder
# -*- coding: utf-8 -*-
# ++ TMCIT Exam Archives Downloader ++
# ++ I don't like regular expression. ++
# !! At your own risk !!
require "mechanize"
#相対とか絶対とかズッ友になりたくない
agent = Mechanize.new
soutai = "http://www.metro-cit.ac.jp/examination/"
@atpons
atpons / zshrc_useful.sh
Created April 13, 2016 02:35 — forked from mollifier/zshrc_useful.sh
少し凝った zshrc
# 少し凝った zshrc
# License : MIT
# http://mollifier.mit-license.org/
########################################
# 環境変数
export LANG=ja_JP.UTF-8
# 色を使用出来るようにする
# 少し凝った zshrc
# License : MIT
# http://mollifier.mit-license.org/
########################################
# User Configuration
# MacVim
#alias vim='/Applications/MacVim.app/Contents/MacOS/mvim'
# Ruby - Rbenv
#export PATH="$HOME/.rbenv/bin:$PATH"
########################
# _ #
# ____ ___ | |__ #
# |_ / / __| | '_ \ #
# / / \__ \ | | | | #
# /___| |___/ |_| |_| #
# #
########################
# OS Depended
require "dashed"
require "docker-api"
loop do
Dashed::Button.new("ff:ff:ff:ff:ff:ff", "eth0").on_press do
puts "Your button is pushed."
@container = Docker::Container.create(
'Image' => "tutum/wordpress", # your favorite image
'ExposedPorts' => { '80/tcp' => {} },
'HostConfig' => { 'Privileged' => true, 'PortBindings' => {
from scapy.all import *
target = "192.168.0"
for i in range(2,254):
dst = target + "." + str(i)
print "FROM %s" % (dst)
print getmacbyip(dst)