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
# update and merge all remote submodules | |
# http://stackoverflow.com/questions/5828324/update-git-submodule-to-latest-commit-on-origin | |
git submodule update --remote --merge | |
# update repo from upstream | |
# https://help.github.com/articles/syncing-a-fork/ | |
git fetch upstream && git checkout master && git merge upstream/master | |
# more help: https://github.com/blog/2104-working-with-submodules |
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 | |
#source: https://wiki.gentoo.org/wiki/Vim#Change_file_encoding | |
vim -c ":wq! ++enc=utf8" *.srt |
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 | |
for n in {1..4980} | |
do curl -s "http://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=${n}&type=card" > "${n}-$(hxextract title http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=$n | grep -v title | sed 's/^.\(.*\).\{35\}$/\1/').jpg" | |
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/sh | |
# backup mms sms needs *root* | |
mkdir -p com.android.providers.telephony/databases | |
adb pull /data/data/com.android.providers.telephony/databases/mmssms.db com.android.providers.telephony/databases/mmssms.db | |
# backup Angry Birds highscores and settings | |
mkdir -p com.rovio.angrybirds/files | |
adb pull /data/data/com.rovio.angrybirds/files/highscores.lua com.rovio.angrybirds/files/highscores.lua | |
adb pull /data/data/com.rovio.angrybirds/files/settings.lua com.rovio.angrybirds/files/settings.lua |
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
use warnings; | |
use strict; | |
use Parallel::ForkManager; | |
use 5.010; | |
my $pm=new Parallel::ForkManager(50); | |
use Fcntl qw(:flock SEEK_END); | |
$pm->run_on_finish(sub{ | |
my (undef, undef, undef, undef, undef, $res_ref) = @_; |
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 | |
# Terminal Tips: Make hidden Dock icons transparent | |
defaults write com.apple.dock showhidden -bool true && killall Dock | |
# Terminal Tips: Enable "path view" in Finder | |
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES && killall Finder | |
# How to prevent .DS_Store file creation over network connections | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores true | |
# Allow text selection in the Quick Look window | |
defaults write com.apple.finder QLEnableTextSelection -bool true && killall Finder |
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
// ********************************************************************* | |
// Add a new button in the toolbar which replaces `s' caracters by a | |
// `ſ' (long s, old style), but NOT at the end of a word. | |
// ********************************************************************* | |
$(function() { | |
$.getScript('https://fr.wikisource.org/w/index.php?title=Utilisateur:FitzSai/xregexp.js&action=raw', // load XRegExp | |
function() { | |
$.getScript('https://fr.wikisource.org/w/index.php?title=Utilisateur:FitzSai/unicode-base.js&action=raw', // load Letter category only | |
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
:wq! ++enc=utf-8 |
NewerOlder