Skip to content

Instantly share code, notes, and snippets.

@mnp
mnp / abstractions-calendar.py
Created July 25, 2016 20:35
Export abstractions.io calendar as csv, for import into Google Calendar
#!/usr/bin/python
'''
Google calendar CSV - https://support.google.com/calendar/answer/37118?hl=en&rd=2
1. make an abstractions google calendar
2. customize this as needed
3. run this, redirecting to foo.csv
4. import as csv into google calendar
'''
@mnp
mnp / export-pushbullet
Created March 9, 2016 16:16
export from pushbullet to a pile of json
#!/bin/bash
# see https://docs.pushbullet.com/#list-pushes
mytoken=$1
n=0
cursor=''
while true; do
@mnp
mnp / Dockerfile
Created March 4, 2016 18:45
Golang (debian) based dockerfile for go-ipfs.
FROM golang:1.5.3-onbuild
MAINTAINER Lars Gierth <lgierth@ipfs.io>
# There is a copy of this Dockerfile in test/sharness,
# which is optimized for build time, instead of image size.
#
# Please keep these two Dockerfiles in sync.
# Ports for Swarm TCP, Swarm uTP, API, Gateway
@mnp
mnp / brother-firmware
Created February 19, 2015 18:00
Ask Brother for download link to ADS-1500W scanner firmware. An XML response will be sent back.
#!/bin/bash
URL=http://update.brother.co.jp/KNE_bh7_update_nt/ifax2.asmx/fileUpdate
cat <<EOF | curl -v --data-ascii @- -X POST -H "Content-Type:text/xml" $URL
<?xml version="1.0" encoding="UTF-8" ?><REQUESTINFO><FIRMUPDATETOOLINFO><FIRMCATEGORY>MAIN</FIRMCATEGORY><OS>WIN_NATIVE</OS><INSPECTMODE>1</INSPECTMODE></FIRMUPDATETOOLINFO><FIRMUPDATEINFO><MODELINFO><SELIALNO>U63595B4G999999</SELIALNO><NAME>ADS-1500W</NAME><SPEC>0001</SPEC><DRIVER>EWS</DRIVER><FIRMINFO><FIRM><ID>FIRM</ID><VERSION>D1406061056:0D75</VERSION></FIRM></FIRMINFO></MODELINFO><DRIVERCNT>1</DRIVERCNT><LOGNO>2</LOGNO><NEEDRESPONSE>1</NEEDRESPONSE></FIRMUPDATEINFO></REQUESTINFO>
EOF
@mnp
mnp / namecoin-dev-20150201.chat
Created January 17, 2015 00:06
Namecoin Dev IRC Meeting IRC Log - 2014 Jan 2
11:40 -!- mnp_ [~mnp@li244-161.members.linode.com] has joined #namecoin-dev
11:40 -!- Topic for #namecoin-dev: MEETING Jan 3 at 5PM UK time | Namecoin Development | Stable: https://github.com/namecoin/namecoin | http://namecoin.info | https://forum.namecoin.info/ | https://explorer.namecoin.info/
11:40 -!- Topic set by Jeremy_Rand_ [~Jeremy_Ra@ip72-198-31-109.ok.ok.cox.net] [Wed Dec 31 02:05:26 2014]
11:40 [Users #namecoin-dev]
11:40 [@ChanServ ] [ Blaksmith ] [ fsb4000 ] [ JohnKenney ] [ mogreen ] [ wiebel]
11:40 [@Jeremy_Rand ] [ brand0 ] [ hl ] [ krzee ] [ phantomcircuit] [ yrashk]
11:40 [@Jeremy_Rand_] [ c0rw1n ] [ indolering] [ Luke-Jr ] [ setkeh ]
11:40 [+ryan-c ] [ cassiniNMC] [ jbisch ] [ midnightmagic] [ SudoShell ]
11:40 [ _nskelsey_ ] [ deepy ] [ joesmoe ] [ mnp_ ] [ tarantillo_ ]
11:40 -!- Irssi: #namecoin-dev: Total of 27 nicks [3 ops, 0 halfops, 1 voices, 23 normal]
@mnp
mnp / namecoin-dev-20150201.md
Last active August 29, 2015 14:13
Namecoin Dev IRC Meeting Minutes - 2014 Jan 2

Namecoin Dev IRC Meeting Minutes

2014 Jan 2, from 19:00 to 22:00 UTC

Meta

  • This is a topic summary by mnp of the bare minimum; see chat log for detailed discussion.
  • Participating nicks: Jeremy_Rand JohnKenney Luke-Jr cassiniNMC hl indolering jbisch jonasbits mnp mogreen ryan-c
  • Lurking nicks: Blaksmith Guest42715 Guest58546 SudoShell nskelsey brand0 c0rw1n deepa
@mnp
mnp / wegmans
Created August 16, 2014 19:56
Quick scraper: Wegman's shopping app web page -> print to PDF-> pdftotext -> this thing -> shopping list as CSV
#!/usr/bin/perl
print "##\n";
print "## Section, Price, Per, Description\n";
print "##\n";
while (<>) {
chomp;
s/\014//g;