Skip to content

Instantly share code, notes, and snippets.

Stephan Sokolow ssokolow

View GitHub Profile
@ssokolow
ssokolow / README.markdown
Created Aug 13, 2010
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
ssokolow / background-page.html
Created Jun 29, 2010 — 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>
<html>
<head>
<script src="xhrproxy.js"></script>
<script>
setupXHRProxy();
</script>
</head>
@ssokolow
ssokolow / snippet.sh
Created Jun 24, 2009 — forked from ches/snippet.sh
ches's github alias modified for Linux
View snippet.sh
# 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(@|://)(github.com)(:|/)(.+/.+).git%https://\2/\4/tree/${br}%p")'
You can’t perform that action at this time.