Skip to content

Instantly share code, notes, and snippets.

View ssokolow's full-sized avatar

Stephan Sokolow ssokolow

View GitHub Profile
ssokolow / README.markdown
Created August 13, 2010 06:09
Wordpress WXR to Jekyll exporter
View README.markdown

Having decided to move my blog to Jekyll, I went looking for solutions. AzizLight's class proved the simplest, but fell short of what I wanted.

This version has been modified to be runnable as a command-line script (help available via -h) and, aside from category permalink continuity (which I'm working on), produces a ready-to-use _posts directory for your Jekyll blog.

Full details on the changes are available in the git commit log.

ssokolow / background-page.html
Created June 29, 2010 03:59 — forked from romannurik/background-page.html
Simple cross-domain XHR boilerplate for Chrome extensions. Modified to be more useful for POST
View background-page.html
<!DOCTYPE html>
<script src="xhrproxy.js"></script>
ssokolow /
Created June 24, 2009 04:21 — forked from ches/
ches's github alias modified for Linux
# Bash alias to open Github page for project in current working directory.
# Will use the current active branch if it exists remotely, or falls back to master.
alias github='br=$(git branch --contains HEAD | sed -rn "s/^\* //p"); if ! git ls-remote . | grep -q -e "refs/remotes/.*/${br}"; then br="master"; fi; xdg-open $(git config -l | sed -rn "s%remote.origin.url=git(@|://)(|/)(.+/.+).git%https://\2/\4/tree/${br}%p")'