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
#!/bin/sh -- | |
set -e | |
echo "" | |
echo "START POST-MERGE HOOK" | |
echo "" | |
HOOK_DIR=`dirname $0` #git_hooks directory | |
PROC_DIR="$HOOK_DIR/../.." #vimproc directory |
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 python | |
#coding: utf-8 | |
from flask import Flask, session, request, redirect | |
from openid.extensions import oauth as openid_oauth | |
from openid.consumer.consumer import Consumer | |
from urlparse import urlparse, urlunparse |
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
let ansi_buffer = quickrun#outputter#buffer#new() | |
function! ansi_buffer.init(session) | |
call call(quickrun#outputter#buffer#new().init, [a:session], self) | |
endfunction | |
function! ansi_buffer.finish(session) | |
AnsiEsc | |
call call(quickrun#outputter#buffer#new().finish, [a:session], self) | |
endfunction |
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
let g:quickrun_config['rspec/bundle'] = { | |
\ 'type': 'rspec/bundle', | |
\ 'command': 'rspec', | |
\ 'outputter': 'ansi_buffer', | |
\ 'exec': 'bundle exec %c --color --tty %s' | |
\} | |
let g:quickrun_config['rspec/normal'] = { | |
\ 'type': 'rspec/normal', | |
\ 'command': 'rspec', | |
\ 'outputter': 'ansi_buffer', |
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
for i in *.sqlite; do sqlite3 $i vacuum; sqlite3 $i reindex; done |
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
#!/bin/bash -- | |
set -e | |
TEMP_DIR="/tmp/pycco-$$" | |
PYTHON_DIR=$(python -c "import $1; import os; print(os.path.dirname($1.__file__))") | |
trap "rm -rf $TEMP_DIR" EXIT | |
mkdir $TEMP_DIR | |
find $PYTHON_DIR -name '*.py' -type f | xargs pycco -d $TEMP_DIR | |
sleep 1 && python -c "import webbrowser; webbrowser.open('http://localhost:8000/')" & |
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
#!/bin/bash -- | |
set -e | |
TEMP_DIR="/tmp/rocco-$$" | |
GEM_DIR=$(ruby -e "print Gem::Specification.find_by_name(\"$1\").full_gem_path") | |
trap "rm -rf $TEMP_DIR" EXIT | |
mkdir $TEMP_DIR | |
cd $GEM_DIR/lib && find . -name '*.rb' -type f | xargs rocco -o $TEMP_DIR | |
cd $TEMP_DIR |
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
converting help/basics.md with title 'Editing Basics' | |
Can't open perl script "/Users/hiro/bin/Markdown.pl": No such file or directory | |
converting help/change.md with title 'Changing text' | |
Can't open perl script "/Users/hiro/bin/Markdown.pl": No such file or directory | |
converting help/change_indent.md with title 'Changing indentation' | |
Can't open perl script "/Users/hiro/bin/Markdown.pl": No such file or directory | |
converting help/delete.md with title 'Deleting text' | |
Can't open perl script "/Users/hiro/bin/Markdown.pl": No such file or directory | |
converting help/dot.md with title 'Repeating the last change' | |
Can't open perl script "/Users/hiro/bin/Markdown.pl": No such file or directory |
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
[mysqld] | |
# basic settings | |
port = 3306 | |
socket=/var/lib/mysql/mysql.sock | |
skip-locking | |
default-storage-engine=InnoDB | |
default-time-zone=utc | |
user=mysql | |
character-set-server=utf8 |
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
package app | |
import ( | |
"encoding/base64" | |
"net/http" | |
) | |
func Basic(username, password string) http.Handler { | |
credential := base64.StdEncoding.EncodeToString([]byte(username + ":" + password)) | |
return &basicHandler{credential} |
OlderNewer