Skip to content

Instantly share code, notes, and snippets.

@yarwelp
yarwelp / internet_radio.md
Last active September 2, 2015 14:58
Internet Radio
@yarwelp
yarwelp / usable_win7.md
Last active January 5, 2016 15:05
Usable environment on Windows 7
#!/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
#!/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.
+ 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
# 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>
@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'
@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 / 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