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
[global] | |
workgroup = WORKGROUP | |
dos charset = CP932 | |
unix charset = UTF-8 | |
display charset = UTF-8 | |
server string = %h server (Samba, Ubuntu) | |
dns proxy = no | |
log file = /var/log/samba/log.%m | |
max log size = 1000 | |
syslog = 0 |
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/bin/ruby -Ke | |
# svn commit mail. | |
require 'net/smtp' | |
require 'kconv' | |
REPOS=ARGV[0] | |
REV=ARGV[1].to_i | |
TOADR=ARGV[2] | |
PRJECT=ARGV[3] | |
SCAN=ARGV[4] |
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
PHP 5.4.5 (cli) (built: Jul 20 2012 13:53:50) | |
Copyright (c) 1997-2012 The PHP Group | |
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies | |
with Xdebug v2.2.0rc2, Copyright (c) 2002-2012, by Derick Rethans | |
<?php | |
function kansujiEncoding ($num) | |
{ | |
$num = (int)$num; |
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
# -*- coding: utf-8 -*- | |
# Name:: Automatic::Plugin::Publish::Instapaper | |
# Author:: soramugi <http://soramugi.net> | |
# Created:: Nov 4, 2012 | |
# Updated:: Nov 4, 2012 | |
# Copyright:: soramugi Copyright (c) 2012 | |
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0. | |
module Automatic::Plugin | |
class PublishInstapaper |
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
mkdir -p $HOME/local/bin | |
mkdir -p $HOME/local/src | |
cd $HOME/local/src/ | |
wget http://git-core.googlecode.com/files/git-1.8.1.3.tar.gz | |
tar zxvf git-1.8.1.3.tar.gz | |
cd git-1.8.1.3 | |
./configure \ | |
--prefix=$HOME/local |
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
# A sample Gemfile | |
source "https://rubygems.org" | |
gem 'rspec' | |
gem 'capybara' | |
gem 'capybara-mechanize' | |
gem 'nokogiri', '~>1.5.0' | |
gem 'launchy' |
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
{ | |
"require": {"evert/google-api-php-client": "dev-master"} | |
} |
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
# http://jeroenjanssens.com/2013/08/16/quickly-navigate-your-filesystem-from-the-command-line.html | |
# | |
#export MARKPATH=$HOME/.marks | |
#function jump { | |
# cd -P $MARKPATH/$1 2>/dev/null || echo "No such mark: $1" | |
#} | |
#function mark { | |
# mkdir -p $MARKPATH; ln -s $(pwd) $MARKPATH/$1 | |
#} | |
#function unmark { |
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/bin/env ruby | |
require 'open-uri' | |
require "kconv" | |
require 'rss' | |
require 'capybara-webkit' | |
require 'RMagick' | |
uri = URI.parse('http://soramugi.tumblr.com/rss') | |
rss = RSS::Parser.parse(uri.read) |
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
" octopressの記事追加したらgit commitのやつ" | |
function! s:octopress_git(message) | |
if a:message == '' | |
exe "!cd " . g:octopress_path . " && git add -A && git ci -m \"`date`\" && git push " | |
else | |
exe "!cd " . g:octopress_path . " && git add -A && git ci -m " a:message "&& git push " | |
endif | |
endfunction | |
command! -nargs=? OctopressGit :call s:octopress_git(<q-args>) |