Skip to content

Instantly share code, notes, and snippets.

View faddah's full-sized avatar

Faddah Wolf faddah

View GitHub Profile
@faddah
faddah / httpd -V
Created September 16, 2014 19:26
result of faddah's httpd -V
$ httpd -v
Server version: Apache/2.2.26 (Unix)
Server built: Dec 10 2013 22:09:38
django:Sites yuetsu$ httpd -V
Server version: Apache/2.2.26 (Unix)
Server built: Dec 10 2013 22:09:38
Server's Module Magic Number: 20051115:33
Server loaded: APR 1.4.5, APR-Util 1.3.12
Compiled using: APR 1.4.5, APR-Util 1.3.12
Architecture: 64-bit
@faddah
faddah / gist:6f8628fb0eaeed01aead
Created September 23, 2014 23:44
Record Album JSON examples
{
"The Rise and Fall of Ziggy Stardust and the Spiders From Mars" : {
"artist" : "David Bowie"
"songs" : ["Five Years","Soul Love","Moonage Dream","Starman","It Ain't Easy","It Ain't Easy","Lady Stardust","Star","Hang On To Yourself","Ziggy Stardust","Sufragette City","Rock 'N' Roll Suicide"]
"label" : ["Emi","RCA Records"]
"yearReleased" : 1972
}
"Olé ELO": {
"artist" : ["Electric Light Orchestra","ELO"]
"songs" : ["10538 Overture","Kuiama","Roll Over Beethoven","Shut Down","Ma-Ma-Ma Belle","Can't Get It Out Of My Head","Boy Blue","Evil Woman","Strange Magic"]
@faddah
faddah / o
Created October 5, 2014 01:20
error on trying to do npm search
// this is on an acer C720P booting into Ubuntu Linux 14.04 LTS, i have node 0.10.32 installed and in use via nvm
//
// from the terminal error -
$ sudo npm search
[sudo] password for user:
Sorry, try again.
[sudo] password for user:
npm WARN Building the local index for the first time, please be patient
npm http GET https://registry.npmjs.org/-/all
@faddah
faddah / gist:cf686a94a80393ca7a63
Created December 6, 2014 23:05
why ain't dis AJAX function woikin'??!
<script>
var xhr = new XMLHttpRequest();
var bringItAJAXButton = document.getElementById('load');
xhr.onreadystatechange = function() {
if(xhr.readyState === 4) {
document.getElementById('ajax').innerHTML = xhr.responseText;
}
};
xhr.open('GET', 'sidebar.html');
function sendAJAX() {
@faddah
faddah / npm-debug.log
Created March 13, 2015 21:06
my npm-debug.log from 13-Mar.-2015
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/.nvm/versions/node/v0.12.0/bin/node',
1 verbose cli '/usr/local/.nvm/versions/node/v0.12.0/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'bonescript' ]
2 info using npm@2.5.1
3 info using node@v0.12.0
4 silly cache add args [ 'bonescript', null ]
5 verbose cache add spec bonescript
@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