Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0"?>
<root>
<appdef>
<appname>SUBLIME2</appname>
<equal>com.sublimetext.2</equal>
</appdef>
<replacementdef>
<replacementname>EMACS_MODE_IGNORE_APPS</replacementname>
<replacementvalue>
@tanihito
tanihito / proxy-wrapper.sh
Created September 16, 2013 04:45
Change Mac proxy settings from command line.
#!/bin/bash
case $1 in
"status" )
networksetup -getwebproxy wi-fi
networksetup -getsecurewebproxy wi-fi
;;
"on" )
networksetup -setwebproxystate wi-fi on
networksetup -setsecurewebproxystate wi-fi on
@tanihito
tanihito / youtubeJapaneseLyrics.user.js
Created October 8, 2011 09:06
Shows Japanese lyrics on YouTube under the movie player.
// ==UserScript==
// @name YouTube Japanese Lyrics
// @namespace http://d.hatena.ne.jp/tanihito/
// @version 0.1.0
// @description Shows Japanese lyrics on YouTube under the movie player.
// @include http://*youtube.com/watch?*
// ==/UserScript==
( function(){
const DEBUG = true;
@tanihito
tanihito / ubuntu_setting.sh
Last active September 25, 2015 08:27
ubuntu_setting.sh
sudo aptitude update
sudo aptitude -y safe-upgrade
LANG=C xdg-user-dirs-gtk-update
# Git
sudo aptitude -y install git-core
# zsh
sudo aptitude -y install zsh
@tanihito
tanihito / buildout.cfg
Created March 29, 2011 05:07
buildout.cfg for mecab
[buildout]
parts =
mecab
ipadic
mecab-python
mypy
[mecab]
recipe = zc.recipe.cmmi
url = http://sourceforge.net/projects/mecab/files/mecab/0.98/mecab-0.98.tar.gz
@tanihito
tanihito / install_dotfiles.sh
Created March 27, 2011 07:00
install_dotfiles.sh
#!/bin/bash
find . |
sed -e "s/^.\///" |
while read i
do
case $i in
*~) continue ;;
install_dotfiles.sh) continue ;;
.git*) continue ;;
@tanihito
tanihito / platex-utf8.sh
Created January 6, 2011 03:40
platex-utf8.sh
#!/bin/sh
name=`echo $1 | sed 's/\.tex$//'`
echo "converting to JIS"
for fname in *.tex *.cls *.bib ; do
nkf -j --overwrite $fname
done
echo "latexing source"