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
// ---- | |
var $$$ = (function(){ | |
var pool = {}; | |
function $$$ (key) { | |
if (!pool[key]) { | |
pool[key] = $(key); | |
} | |
return pool[key]; | |
} | |
$$$.clear = function () { |
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
adb.exe logcat -d | findstr browser |
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
# min / hour / day / month / week | |
* * * * * exec command |
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 | |
nohup $* > nohup.out 2> nohup.err < /dev/null & |
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
$ sudo apt-get install luajit liblua5.1-0-dev libluajit-5.1-2 libluajit-5.1-dev libperl-dev libpython2.7-dev libpython3-dev ruby-dev | |
$ ./configure \ | |
--enable-multibyte \ | |
--enable-xim \ | |
--enable-fontset \ | |
--with-features=huge \ | |
--enable-perlinterp \ | |
--enable-pythoninterp \ | |
--enable-python3interp \ | |
--enable-rubyinterp \ |
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
create table [duplicate_table_name] like [table_name]; | |
insert into [duplicate_table_name] select * from [table_name]; |
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 -u | |
set -e | |
# origin: http://www.songmu.jp/riji/archives/2012/05/post_379.html | |
# check: http://d.hatena.ne.jp/masudaK/20120223/1330006586 | |
if [[ -p /dev/stdin ]];then | |
tr -d "\r" | vim -R - | |
else |
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
// cf: http://stackoverflow.com/questions/627916/iphone-safari-check-if-url-scheme-is-supported-in-javascript | |
function checkUrlScheme(app_url_scheme, app_install_url, app_name) { | |
document.location = app_url_scheme; | |
setTimeout(function() { | |
if(confirm('You do not seem to have '+app_name+' installed, do you want to go download it now?')){ | |
document.location = app_install_url; | |
} | |
}, 300); | |
} |
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
# [bash: warning: setlocale: LC_ALL: cannot change locale] | |
sudo locale-gen ja_JP | |
sudo update-locale LANG=ja_JP.UTF-8 |
OlderNewer