Laptop Gets its first set of stickers

Jan 9, 2016 - 1 minutes
After a friend came back from CCC, he gave me a few stickers. Also my wife got me a wonderful giant ‘root’ sticker for my birthday last year. There is more than enough space for stickers which I hope to amass from FOSDEM later in the Month. Click to get more pixels Read more ...

Sublime Text Customisation

Jan 8, 2016 - 1 minutes
Here are a list of some plugins I like to use with Sublime Text, you can install the Package Manager from: https://packagecontrol.io/installation I do a lot of markdown editing and pandoc converting. e.g. Markdown to PDF, which first converts it to LaTeX so it looks pretty good. Plugins Pandoc: Converts markdown into, HTML5, PDF, and Word Documents. Word Count: Displays a word count in the status bar, I like to enable the enable_readtime setting to give me an indication of how long my text will take to read. Read more ...

Vagrant with KVM for development

Jan 7, 2016 - 2 minutes
Vagrant allows for quick deployment of virtual machines for development use. It allows you to provision software, forward ports, and share development environments between people are computers. First install vagrant and the KVM (libvirtd) provider. sudo apt-get install vagrant sudo apt-get install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev vagrant plugin install vagrant-libvirt Then create a vagrant configuration file (Vagrantfile), which specifies the image to use. Vagrant calls images Boxes, and they are found over at hashicorp. Read more ...

Preventing Wi-Fi Access Point Spoofing

Jan 6, 2016 - 1 minutes
To prevent an adversary from spoofing your wifi’s access point. i.e Setup another router with the same name ‘_The Cloud’ for example. Debian based systems which use NetwrokManger allow for whitelisting BSSIDs, the MAC address of the access point (ap)/router. Once you provide NetworkManager with a BSSID it will force the connection to use only that BSSID value. This can cause issues with roaming though. You can do this in two ways, nm-applet or nmcli. Read more ...

hstr - Alternative ctrl+r in bash

Jan 5, 2016 - 1 minutes
Found out about this nice little tool which upgrades bash and zsh’s history searching. You can optionally configure it by: hh --show-configuration >> ~/.bashrc It appears to add the above defaults to your bashrc without your consent. I installed it by adding the developers repository to apt-get as advised. It also apears to only have monochromatic or hicolor settings, I’d like it more if I could configure each colour option. Read more ...

Identify which port is USB3

Jan 4, 2016 - 3 minutes
I wanted to plug in a USB3 device into my work machine. I did not know if it even had USB3 support. So I used lsusb to find out. $ lsusb Bus 004 Device 006: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T Bus 004 Device 005: ID 413c:2003 Dell Computer Corp. Keyboard Bus 004 Device 043: ID 046d:c077 Logitech, Inc. M105 Optical Mouse Bus 004 Device 044: ID 18d1:4ee2 Google Inc. Read more ...

cpio - copy files to and from archives

Jan 3, 2016 - 2 minutes
I found this command when I picked up Unix in Easy Steps Went to page 40~ and saw how to make backups. Thought “pfft they will just use tar”. And there it was cpio, never head of it before. Book said that its commonly used to create archives, madness. ls | cpio -ov > directory.cpio Stick all the files in the current directory into an archive directory.cpio. -o creates and -v verbose. Read more ...

Duplicity and Hubic

Jan 2, 2016 - 1 minutes
Install the dependencies (See note at end). sudo apt-get install duplicity sudo pip install pyrax Create a ~/.hubic_credentials with the format below. Get the client ID and secret from the Hubic website under ‘My Account -> Developers’, add an application with a descriptive name and set the redirect domain to ‘http://localhost/. [hubic] email = <hubicemailaddress> password = <hubicpassword> client_id = <hubicclientid> client_secret = <hubicclientsecret> redirect_uri = http://localhost/ You should now be able to use duplicity to backup to the Hubic storage. Read more ...

Part One - Fresh Install

Jan 1, 2016 - 2 minutes
This is the first part in my documentation series about managing a Debain server for fun and profit. Install some packages apt-get install vim htop fail2ban ufw nginx git jekyll logwatch apticron ntp screen weechat stow vnstat vnstati sudo Add user useradd osaka usermod -a -G sudo osaka Select the correct time zone: dpkg-reconfigure tzdata Make sure the time is correct: service ntp stop ntpd -gq service ntp start Setup exim to send emails, for status reporting etc. Read more ...

Graphing IRC server logs

Oct 28, 2015 - 3 minutes
I wanted to graph my IRC server logs to see the number of connects and disconnects. The raw logs look something like this: [Tue Apr 15 01:12:17 2014] - Disconnect - (2:42:4) Wibben!Wibben@b.clients.kiwiirc.com [VHOST ht-A107D790.clients.kiwiirc.com] [Tue Apr 15 02:05:43 2014] - Connect - tlotr!tlotr@b.clients.kiwiirc.com [VHOST ht-A107D790.clients.kiwiirc.com] [Tue Apr 15 07:10:48 2014] - Disconnect - (5:5:9) tlotr!tlotr@b.clients.kiwiirc.com [VHOST ht-A107D790.clients.kiwiirc.com] [Tue Apr 15 18:45:05 2014] - Connect - Hackay!Hackay@a.clients.kiwiirc.com [VHOST ht-61603BBC.clients.kiwiirc.com] [Tue Apr 15 20:26:51 2014] - Disconnect - (1:41:50) Hackay! Read more ...