Skip to content

Instantly share code, notes, and snippets.

View faddah's full-sized avatar

Faddah Wolf faddah

View GitHub Profile
@faddah
faddah / .bashrc
Created March 16, 2015 21:43
faddah's ubuntu linux .bashrc - broken on line 116
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@faddah
faddah / .profile
Created March 16, 2015 22:26
faddah's ubuntu .profile file
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
@faddah
faddah / gist:f2d684c0af1a35ebe1e2
Created March 19, 2015 22:41
errors whilst trying to browserify
/* * * * * * * * * *
here is the file, i'm trying to browserify, called dom2json.js —
* * * * * * * * * */
var fs = require('fs');
var parse = require('jsonml').parse;
var jsonML = parse(fs.readFileSync('/home/chronos/user/Downloads/code/say_media_quiz/dom2json.html'));
@faddah
faddah / gist:67c5c0a5aca69cb4c9dd
Last active August 29, 2015 14:17
results back from BeagleTerm
# the result of ifconfig -a —
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 6c:ec:eb:ad:34:1d
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:40
@faddah
faddah / gist:cbd9e7e1a8ca8b840193
Last active August 29, 2015 14:17
beaglebone network interfaces
$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
@faddah
faddah / ifconfig.txt
Last active August 29, 2015 14:17
faddah's ifconfig
# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.7.1 netmask 255.255.255.252 broadcast 192.168.7.3
inet6 fe80::6eec:ebff:fead:341f prefixlen 64 scopeid 0x20<link>
ether 6c:ec:eb:ad:34:1f txqueuelen 1000 (Ethernet)
RX packets 1048 bytes 106629 (104.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1918 bytes 316054 (308.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
@faddah
faddah / trusty-bootstrap.log
Last active August 29, 2015 14:19
trusty-error.log from faddah
+ set -e
+ CROUTON_BRANCH=
+ INSTALLER=crouton
+ URL=https://github.com/dnschneid/crouton/raw/releases/crouton
+ CACHEDIR=/tmp/crouton-installer-cache
+ CACHEFILE=/tmp/crouton-installer-cache/crouton
+ MAXAGE=1800
+ getopts :a:f:k:m:M:n:p:P:r:s:t:T: f
+ [ r = P ]
+ getopts :a:f:k:m:M:n:p:P:r:s:t:T: f
@faddah
faddah / bootstrap_example.html
Last active August 29, 2015 14:24
trying to serve a bootstrap html/css file, works as just "file:///..." in browser, doesn't work served by node.js
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE-edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Example</title>
@faddah
faddah / life.js
Last active August 29, 2015 14:25
my version of Lea Verou's game of life life.js file
(function() {
var _ = self.Life = function(seed) {
this.seed = seed;
this.height = seed.length;
this.width = seed[0].length;
this.prevBoard = [];
this.board = cloneArray(seed);
};
@faddah
faddah / life.js
Created July 25, 2015 08:14
function from Lea Verou's version of Conway's Game Of Life
(function() {
var buttons = {
next: $('button.next')
};
buttons.next.addEventListener('click', function() {
lifeView.next();
});