Skip to content

Instantly share code, notes, and snippets.

@yarwelp
yarwelp / build-cargo-freebsd-v7.log
Created January 30, 2015 14:08
build-cargo-freebsd-v7.log
This file has been truncated, but you can view the full file.
*** mkdir /home/rust/src/cargo-freebsd/target
*** fetch rust-nightly-2014-12-12 from https://static.rust-lang.org/dist/2014-12-12/rust-nightly.tar.gz
0.1% 0.2% 0.3% 0.5% 0.7% 0.9% 1.2% # 1.6% # 1.8% # 1.9% #
@yarwelp
yarwelp / build-cargo-freebsd-v7.cont.log
Created January 30, 2015 16:07
build-cargo-freebsd-v7.cont.log
*** Clone Cargo repository
Cloning into 'cargo/head'...
*** Installed Cargo is 72 merges behind HEAD
*** Processing cargo/a0e7e7a88b23a0d372655f52769ef0d36dc34d49
*** git clone https://github.com/rust-lang/cargo.git -> cargo/a0e7e7a88b23a0d372655f52769ef0d36dc34d49
Cloning into 'cargo/a0e7e7a88b23a0d372655f52769ef0d36dc34d49'...
Submodule 'src/rust-installer' (https://github.com/rust-lang/rust-installer.git) registered for path 'src/rust-installer'
Cloning into 'src/rust-installer'...
Submodule path 'src/rust-installer': checked out 'b5ac4cd44321da10dfd70f070dbc9094ca3f92ff'
Submodule 'test/rust-installer-v1' (https://github.com/rust-lang/rust-installer) registered for path 'test/rust-installer-v1'
#!/usr/bin/env bash
# Run as www-auto, e.g. `sudo -u www-auto ./sitemap.sh'
cd /usr/local/www/net.erikano.www && touch sitemap.htm &&\
(
cat <<HTMLBegin
<!DOCTYPE html>
<html>
<head>
+ test -d autom4te.cache
+ aclocal -I config
+ autoheader
+ autoconf
+ automake --add-missing --copy
configure.ac:31: installing 'config/compile'
configure.ac:30: installing 'config/config.guess'
configure.ac:30: installing 'config/config.sub'
configure.ac:29: installing 'config/install-sh'
configure.ac:29: installing 'config/missing'
#!/usr/bin/env bash
# Made by erikano for use on FreeBSD 10.1
#
# This script assumes that a previous backup exists
# with the expected file name format.
#
# You need to change some stuff if you want to use this.
#
# * Script is using hard-coded directory names and such.
#!/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
@yarwelp
yarwelp / internet_radio.md
Last active September 2, 2015 14:58
Internet Radio
@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 / 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 / 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