Skip to content

Instantly share code, notes, and snippets.

View faddah's full-sized avatar

Faddah Wolf faddah

View GitHub Profile
@faddah
faddah / results of "ps ax | grep ssh"
Last active April 24, 2016 03:19
Arch Linux openssh sshd_config file
# ps ax | grep ssh
1817 ? Ss 0:00 /usr/bin/sshd -D
1886 ? Ss 0:00 /usr/bin/ssh-agent -s
3074 pts/0 S+ 0:00 sudo vim /etc/ssh/sshd_config
3075 pts/0 S+ 0:00 vim /etc/ssh/sshd_config
3165 pts/1 S+ 0:00 grep ssh
$ npm ls -g --depth=0
/Users/yuetsu/.npm-packages/lib
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
@faddah
faddah / index.html
Last active January 5, 2016 20:54
dave mcfarland's treehouse example of arrays music playlist
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Musical Playlist</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<h1>My Music Playlist</h1>
<script src="js/playlist.js"></script>
@faddah
faddah / gist:bf10e607f3f660112366
Created December 21, 2015 18:46
results of grepping for apache2 & php on faddah's vagrant
$ ps aux | grep apache
root 1446 0.0 3.9 333700 19728 ? Ss 14:08 0:01 /usr/sbin/apache2 -k start
www-data 2926 0.0 5.8 338284 29464 ? S 16:35 0:01 /usr/sbin/apache2 -k start
www-data 2927 0.0 6.6 339524 33212 ? S 16:35 0:01 /usr/sbin/apache2 -k start
www-data 2928 0.0 5.8 338132 29272 ? S 16:35 0:01 /usr/sbin/apache2 -k start
www-data 2929 0.0 7.2 340120 36460 ? S 16:35 0:02 /usr/sbin/apache2 -k start
www-data 2930 0.0 6.6 341632 33516 ? S 16:35 0:01 /usr/sbin/apache2 -k start
www-data 3101 0.0 6.1 337500 30800 ? S 16:35 0:01 /usr/sbin/apache2 -k start
www-data 3104 0.0 5.6 338756 28548 ? S 16:38 0:01 /usr/sbin/apache2 -k start
www-data 3105 0.0 7.6 344192 38284 ? S 16:38 0:01 /usr/sbin/apache2 -k start
CompileXIB Fuzzy\ Bizz\ Programming\ Challenge/MyViewController.xib
cd "/Users/yuetsu/Documents/code/projects/Fuzzy Bizz Programming Challenge"
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module Fuzzy_Bizz_Progamming_Challenge --output-partial-info-plist /Users/yuetsu/Library/Developer/Xcode/DerivedData/Fuzzy_Bizz_Programming_Challenge-cqplutvqrbelwodchpedxtfjekfm/Build/Intermediates/Fuzzy\ Bizz\ Programming\ Challenge.build/Release-iphonesimulator/Fuzzy\ Bizz\ Progamming\ Challenge.build/MyViewController-PartialInfo.plist --auto-activate-custom-fonts --target-device iphone --target-device ipad --minimum-deployment-target 9.0 --output-format human-readable-text
@faddah
faddah / err.sh
Created July 30, 2015 02:33
error in Mac OS X 10.10.4 Yosemite when doing "npm install -g" without "sudo"
$ npm install -g caniuse-cmd
npm ERR! tar.unpack untar error /Users/yuetsu/.npm/caniuse-cmd/1.0.0/package.tgz
npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "caniuse-cmd"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! path /usr/local/lib/node_modules/caniuse-cmd
npm ERR! code EACCES
npm ERR! errno -13
@faddah
faddah / index.html
Last active August 29, 2015 14:26
a triangle of asterisks in a div done by plain JavaScript
<!DOCTYPE html>
<html>
<head>
<title>
The Triangle of Asterisks!
</title>
</head>
<body>
<h1>The Triangle of Asterisks!</h1>
<div id="asterisks">
@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();
});
@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 / 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>