Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / usable_win7.md
Last active January 5, 2016 15:05
Usable environment on Windows 7
@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 / 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 / NOTES.md
Last active January 8, 2016 02:14
Custom build and/or update the Linux kernel of Ubuntu 14.04 on the ODROID-XU3.
sudo apt-get install build-essential libqt4-dev libncurses5-dev git
git clone --depth 1 git@github.com:en90/odroid-xu3-linux.git
cd odroid-xu3-linux
#vim arch/arm/configs/odroidxu3_defconfig # "Search for GOVERNOR, I'm sure you'll find the CPU GOVERNORS.
#                                         #  Enable what ever you want (I have enabled all)"
make odroidxu3_defconfig
#make menuconfig
make -j8
sudo cp arch/arm/boot/zImage \
@yarwelp
yarwelp / zero.md
Created January 8, 2016 19:36
Zero out a 32 GB SD card with progress
pv -s 32g /dev/zero | sudo dd of=/dev/xxx bs=64M
@yarwelp
yarwelp / README.md
Last active March 4, 2016 19:13
Proper configuration of samba server and client

Proper configuration of samba server and client

This is how I share directories from my main desktop computer at home running Fedora 23 with another computer I have at home running Lubuntu 14.04 LTS. That is to say, the former acts as server and the latter acts as client. As shown here, I also have a couple of public directories for exchanging files with anyone on the home network.

While configuring samba server and client, I found the official docs

@yarwelp
yarwelp / ephemeral.md
Last active May 7, 2016 09:51
Ephemeral services

HTTP

python3 -m http.server

WebDAV

sudo pip install PyWebDAV
davserver -n -H 0.0.0.0 -P 8081 -D .
@yarwelp
yarwelp / WALTQ.diff
Last active June 25, 2016 18:50
FreeBSD 10.3 mail server pf config
--- /usr/src/sys/amd64/conf/GENERIC 2016-06-25 19:07:11.790333000 +0200
+++ /usr/src/sys/amd64/conf/WALTQ 2016-06-25 19:12:42.994652000 +0200
@@ -363,3 +363,17 @@
# VMware support
device vmx # VMware VMXNET3 Ethernet
+
+# Added as per http://microsux.dk/?p=321
+
+device pf