Skip to content

Instantly share code, notes, and snippets.

@yarwelp
yarwelp / HAR.md
Last active January 7, 2016 00:25
Personal Web Archive

Personal Web Archive

Document ID: d4e40efe-ffbe-47ec-b9ce-305d201db499

Screenshot utility with GUI: Shutter. Ubuntu: apt-get install shutter.

Firefox

  1. New Private Window (Ctrl+Shift+P)
  2. Developer -> Network (Ctrl+Shift+Q)
@yarwelp
yarwelp / bookmarks
Created January 6, 2016 04:03 — forked from anarcat/bookmarks
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" /><!-- This is an automatically generated file. -->
<TITLE>Bookmarks</TITLE>
<H1 LAST_MODIFIED="1396239625">Bookmarks for anarcat from SemanticScuttle</H1>
<DL>
<DT><A HREF="https://pond.imperialviolet.org" description="For secure, synchronous communication we have OTR and, when run over Tor, this is pretty good. But while we have secure asynchronous messaging in the form of PGP email, it's not forward secure and it gratuitously leaks traffic information. While a desire for forward secure PGP is hardly new, it still hasn't materialised in a widely usable manner.
Additionally, email is used predominately for insecure communications (mailing lists, etc) and is useful because it allows previously unconnected people to communicate as long as a (public) email address is known to one party. But the flip side to this is that volume and spam are driving people to use centralised email services. These provid
@yarwelp
yarwelp / usable_win7.md
Last active January 5, 2016 15:05
Usable environment on Windows 7
@yarwelp
yarwelp / pwgenp.sh
Last active December 20, 2015 14:58
Generate a pronouncable password.
#!/usr/bin/env bash
#
# Copyright (c) 2013 Erik Nordstroem <contact@erikano.net>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
@yarwelp
yarwelp / 01.configure
Last active December 14, 2015 00:09
homebrew: libxml++ failed to build on 10.7.5
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... macros/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports GNU make features... yes
@yarwelp
yarwelp / encrypted-git-repo.md
Created September 27, 2012 21:53
Transparent Git Encryption

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].

Description

When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes

@yarwelp
yarwelp / upload.sh
Created March 15, 2012 04:47
Upload eBooks as attachments to CouchDB
#!/usr/bin/env bash
# usage: ./upload.sh http[s]://user:pass@host:port/database directories...
# This script creates a new document for each directory and then uploads the
# contents of each directory as attachments to said document.
# The script was made for uploading eBooks to my CouchDB so that I can retrieve
# them no matter where I am or what device I am on, but it can easily be
# adapted to other content as well.
@yarwelp
yarwelp / permutations.py
Created December 4, 2011 10:37
Permutations (Python)
#!/usr/bin/env python
# file: permutations.py
# Copyright (c) 2011, Erik Nordstroem <contact@erikano.net>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
@yarwelp
yarwelp / internet_radio.md
Last active September 2, 2015 14:58
Internet Radio
#!/usr/bin/env bash
curl "$1" 2>/dev/null \
| xmlstarlet fo -H --omit-decl 2>/dev/null \
| xmlstarlet sel -H -t -v "//*[@class='digital-product ']/@data-product-id" 2>/dev/null
echo