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
# Originally from https://github.com/scharan/Goodies/blob/master/ssh-agent-restore | |
export SSH_AUTH_SOCK=$(\find /tmp/ssh-* -name agent.\* -uid $(id -u) | head -n 1) |
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 | |
# ================================================================ | |
# | |
# Convert a mysql database dump into something sqlite3 understands. | |
# | |
# Adapted from | |
# http://stackoverflow.com/questions/489277/script-to-convert-mysql-dump-sql-file-into-format-that-can-be-imported-into-sqlit | |
# | |
# (c) 2010 Martin Czygan <martin.czygan@gmail.com> |
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
/* | |
Theme Name: Twenty Eleven zenburn colors | |
Author: Oren Held | |
Template: twentyeleven | |
Version: 0.1 | |
License: MIT | |
Notes: | |
* Make sure you have Twentyeleven theme installed | |
* Set it to "dark" colorscheme |
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/perl -w | |
# Gets a contacts csv file through stdin, prints to stdout a modified file with phone prefix fixed | |
# This was useful for me when I exported Nokia contacts, which lacked the first '0' character. | |
# Note that it ruins the first (head) line, I manually took it from original file, although it must be dead simple to fix it in code. | |
while (<STDIN>) { | |
@a=split(","); | |
foreach ($item = 30; $item < 45; $item++) { | |
$phone=$a[$item]; |
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 | |
# svnlogp is a script that implements 'git log -p' for svn (partially & inefficiently): it shows all the diff's of a given filename. | |
# | |
# Due the SVN centralized architecture, it's really slow, and 'svn blame' is commonly a fair alternative. | |
# | |
# Usage: svnlogp <filename> | |
# | |
# Author: Oren Held | |
filename=$1 |
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/perl | |
# | |
# mediawiki2rst - converts mediawiki markup to Restructured Text format | |
# | |
# python-docutils provide rst2<whatever> tools, thus it can be one hop towards converting to html, odt, latex etc | |
# | |
# License: BSD-style | |
# | |
# Author: Oren Held | |
# |