Skip to content

Instantly share code, notes, and snippets.

@MastodonHQ
MastodonHQ / PKGBUILD
Created May 13, 2012 04:56
PKGBUILD for a personal package
pkgname="usb-rend"
pkgver="1.0"
pkgrel=1
epoch=
pkgdesc="A Modified copy of the usb tools from xboxdrv, normally used for debugging usb devices."
arch=(i686)
url=""
license=('GPL')
groups=()
depends=(scons)
@MastodonHQ
MastodonHQ / usb-rend.install
Created May 13, 2012 04:58
really really bad install script
#!/bin/bash
cd ./src
echo "Moving usbcat to /usr/bin"
mv usbcat /usr/bin
echo "Moving usbdebug to /usr/bin"
mv usbdebug /usr/bin
echo "Moving usbtool to /usr/bin"
mv usbtool /usr/bin
@MastodonHQ
MastodonHQ / usb-rend.install
Created May 13, 2012 05:01
Really bad install script
#!/bin/bash
cd ./src
echo "Moving usbcat to /usr/bin"
mv usbcat /usr/bin
echo "Moving usbdebug to /usr/bin"
mv usbdebug /usr/bin
echo "Moving usbtool to /usr/bin"
mv usbtool /usr/bin
@MastodonHQ
MastodonHQ / usb-rend PKGBUILD
Created May 15, 2012 05:48
usb-rend-1.1 PKGBUILD
#Maintainer: Justin Strickland <MastodonHQ@gmail.com>
pkgname="usb-rend"
pkgver="1.1"
pkgrel=1
#epoch=
pkgdesc="Usb Debugging Tools originally from the xboxdrv project, with an addition."
arch=(i686)
#url=""
license=('GPL')
#groups=()
@MastodonHQ
MastodonHQ / mpd.conf
Created May 16, 2012 19:58
mpd configuration
music_directory "/aeterion_data/music"
playlist_directory "/aeterion_data/mpd/playlists"
db_file "/aeterion_data/mpd/mpd.db"
log_file "/aeterion_data/mpd/mpd.log"
pid_file "/aeterion_data/mpd//mpd.pid"
state_file "/aeterion_data/mpdmpdstate"
user "root"
# bind_to_address "127.0.0.1"
# port "6600"
audio_output {
@MastodonHQ
MastodonHQ / oplist
Created May 17, 2012 05:24
Old oplist
oplist = ['0::ffff:74.248.215.158','0::ffff:127.0.0.1','adsl-74-248-215-158.tys.bellsouth.net','74.208.67.72','c-69-249-96-237.hsd1.pa.comcast.net','adsl-108-194-110-194.dsl.rcsntx.sbcglobal.net','98.65.197.33','xp'];
hoplist = ['articbreeze.net','adsl-108-194-110-194.dsl.rcsntx.sbcglobal.net','xp']
@MastodonHQ
MastodonHQ / dynamic_array_printing.c
Created May 28, 2012 05:35
Some of my early work quite a feat considering I was a novice then
#include <stdio.h>
/*
This Program prints an array dynamically without knowing the number of indices, and makes use of function pointers. Of course any programmer will tell you there is next to no need to ever do this and that you should know the size of the array at the time of declaration.
*/
void list(char * array[], int indices){
int x=0;
for(;x!=indices;x++){
@MastodonHQ
MastodonHQ / i3config
Created June 6, 2012 03:16
i3 config
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
#
@MastodonHQ
MastodonHQ / grub.cfg
Created July 20, 2012 07:14
my multiboot grub2 conf
#set timeout="10"
#set default="0"
menuentry "FreeBSD 9.0 Release" {
set isofile="/boot/iso/FreeBSD-9.0.iso"
loopback loop $isofile
kfreebsd (loop)/boot/kernel/kernel
kfreebsd_module (loop)/boot/mfsroot.gz type=mfs_root
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/md0
}
@MastodonHQ
MastodonHQ / functor.cpp
Created August 8, 2012 03:47
A Functor that takes a string and a function pointer
#include <boost/thread.hpp>
#include <iostream>
#include <string>
using namespace std;
using namespace boost;
class worker
{
public: