Skip to content

Instantly share code, notes, and snippets.

View faddah's full-sized avatar

Faddah Wolf faddah

View GitHub Profile
@faddah
faddah / gist:6531570
Created September 12, 2013 00:08
node.js 0.10.18 server error since updating from 0.10.10
django:angular-phonecat yuetsu$ sudo ./scripts/web-server.js
Password:
Http Server running at http://localhost:8000/
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:901:11)
at Server._listen2 (net.js:1039:14)
@faddah
faddah / gist:6597711
Created September 17, 2013 17:34
Wraithan's node.js quick & easy web server
var http = require('http')
http.createServer(function(req, res) {
if (req.url === '/') {
res.write('ohai');
res.end()
}
}).listen(9748)
@faddah
faddah / gist:6632097
Created September 20, 2013 01:13
results of dlmanning's watch.js test
rename : .subl782.tmp
rename : .subled8.tmp
rename : .sublf43.tmp
rename : .subl898.tmp
@faddah
faddah / gist:7310433
Created November 4, 2013 22:37
mac os x 10.9 "maverick" finder crash log - repetitive finder crash (every 10 - 15 seconds)
Process: Finder [2877]
Path: /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
Identifier: com.apple.finder
Version: 10.9 (10.9)
Build Info: Finder_FE-885000002000000~2
Code Type: X86-64 (Native)
Parent Process: launchd [379]
Responsible: Finder [2877]
User ID: 502
@faddah
faddah / gist:7329054
Created November 6, 2013 00:51
step three of code academy recursion #FAIL
// my answer to step three in code academy module on recursion in JavaScript
var stack = [];
function countDown(int) {
stack.push(int);
if (int === 1) {
return 1;
}
@faddah
faddah / gist:2a86eb3507250bc268e7
Created August 21, 2014 00:06
result of $ brew doctor on my Mac OS X system with Homebrew 0.9.5
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Broken symlinks were found. Remove them with `brew prune`:
/usr/local/lib/node_modules/libulockmgr.0.0.0.dylib
Warning: Your XQuartz (2.7.5) is outdated
Please install XQuartz 2.7.6:
@faddah
faddah / gist:f686cc4048e23eef39e7
Created August 21, 2014 01:24
Gist of output of my $ brew install -v /usr/local/Library/Taps/josegonzalez/homebrew-php/Formula/php55.rb
$ brew install -v /usr/local/Library/Taps/josegonzalez/homebrew-php/Formula/php55.rb
Warning: php55-5.5.15 already installed
@faddah
faddah / gist:2c963c48b3fb0f8668c4
Created August 21, 2014 02:30
My output of $ running brew update && brew upgrade && brew install php55 - per homebrew-php upgrade issues instructions.
$ brew update && brew upgrade && brew install php55
Already up-to-date.
==> Upgrading 5 outdated packages, with result:
couchdb 1.6.0_1, git 2.1.0, icu4c 53.1, mongodb 2.6.4, node 0.10.31
==> Upgrading couchdb
==> Installing couchdb dependency: icu4c
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/icu4c-53.1.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring icu4c-53.1.mavericks.bottle.tar.gz
==> Caveats
@faddah
faddah / output_homebrew_php55_uninstall_reinstall
Created August 22, 2014 06:00
my output of brew doctor, fixes & linking, brew update, brew upgrade, rm -rf /usr/local/php5*, and reinstalling with brew install php55
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Your XQuartz (2.7.5) is outdated
Please install XQuartz 2.7.6:
https://xquartz.macosforge.org
Warning: Your Homebrew is outdated.
@faddah
faddah / httpd.conf
Created September 16, 2014 19:12
faddah's httpd.conf file from his Mac OS X 10.9.4 set-up with apache 2.2.26
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure