Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am marcusps on github.
  • I am marcusps (https://keybase.io/marcusps) on keybase.
  • I have a public key ASD1C5PUBPB5P-rPSKmykih9ClXJx7N_QjEAXdv8vqK_ego

To claim this, I am signing this object:

@marcusps
marcusps / 2014-10-21-1515.xml
Created October 21, 2014 19:17
2014-10-21 15:15 RMV wait times
<branches>
<script/>
<branch>
<town>Attleboro</town>
<licensing>00:06:38</licensing>
<registration>00:08:44</registration>
</branch>
<branch>
<town>Boston</town>
<licensing>01:11:50</licensing>
@marcusps
marcusps / Svpply to Tumblr.md
Last active August 8, 2016 17:51
Convert your Svpply data into a Tumblr blog

Svpply to Tumblr

Svpply is a neat service that, in essence, allowed people to track and share items they wanted. In essence, it is a wishlist service that works across all sites, and captures the price and the image of the item you want.

Svpply is shutting down, but gladly they are allowing users to download their data -- in essence, all the info they stored in the Svpply site. I still wanted the data accessible on the web, and this turned out to be a near trivial project to write in python.

Limits: You can only upload 150 pictures a day to Tumblr. This may mean you need to break you wants.csv file into chunks of 150 lines.

See PyTumblr and Tumblr's API console for details.

@marcusps
marcusps / tabs-to-md.rb
Last active May 2, 2020 02:26
Chrome Tabs to Markdown
# coding: utf-8
# Based on https://gist.github.com/netmute/7374150
require 'date'
# Run some AppleScript to fetch open tabs from Chrome
input = %x{osascript -e 'tell application \"Google Chrome\"' -e 'set tabList to every tab of window 1' -e 'set urlList to \"\"' -e 'repeat with aTab in tabList' -e 'set aLink to URL of aTab' -e 'set aTitle to Title of aTab' -e 'set urlList to urlList & aLink & \"$\" & aTitle & ASCII character 10' -e 'end repeat' -e 'return urlList' -e 'end tell' 2> /dev/null }.chomp