Skip to content

Instantly share code, notes, and snippets.

View joemccann's full-sized avatar
🕶️
Hit me with those laser beams.

Joe McCann joemccann

🕶️
Hit me with those laser beams.
View GitHub Profile
@joemccann
joemccann / jitsu.sh
Created August 26, 2012 06:45
jitsu deploy error
λ ~work/photopipe/ master* jitsu deploy
info: Welcome to Nodejitsu joemccann
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in node app.js
warn: Local version appears to be old
warn: Your package.json version will be incremented for you automatically
warn: About to write /Users/joemccann/Documents/workspace/photopipe/package.json
warn: Using '*' as version for dependencies may eventually cause issues.
warn: Please use specific versions for dependencies to avoid future problems.
@joemccann
joemccann / error.sh
Created August 18, 2012 23:33
jitsu deploy error
info: Creating snapshot 0.0.1-11
info: Updating app photopipe
info: Activating snapshot 0.0.1-11 for photopipe
info: Starting app photopipe
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
error:
error: NPM Install failed
error: NPM failed to install dependencies
@joemccann
joemccann / coredump.txt
Created July 11, 2012 22:41
coredump 1 -- ATT
attwifinder:~# gdb node core.31195
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
@joemccann
joemccann / perl-fix.sh
Created July 8, 2012 18:25
Fixing the Stupid Perl Issues on Linux
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
apt-get install locales
dpkg-reconfigure locales
@joemccann
joemccann / playlist.md
Created June 25, 2012 20:09
Nodeconf 2012 DJ Playlist

Artist - Track Name

  • Phil Collins - In the Air Tonight
@joemccann
joemccann / dabblet.css
Created January 15, 2012 15:22
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
@joemccann
joemccann / redis-install.sh
Created December 11, 2011 03:12
redis-install
# You probably shouldn't use this
rm -f `which redis-server`
wget http://redis.googlecode.com/files/redis-2.4.10.tar.gz
tar -xf redis-2.4.10.tar.gz
cd redis-2.4.10
make && make install
@joemccann
joemccann / redis.conf
Created December 6, 2011 21:51
Standard Redis Conf with Authentication
# Redis configuration file example
# Note on units: when memory size is needed, it is possible to specifiy
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
@joemccann
joemccann / clicknorm.js
Created November 30, 2011 18:56
Normalize click handler
var clickType
function normalizeClick(){
try {
d.createEvent("TouchEvent")
clickType = 'touchend'
return true
}catch (e){
clickType = 'click'
return false
@joemccann
joemccann / bouncy.conf
Created November 30, 2011 18:05
Monit script for bouncy
check process node with pidfile /etc/init.d/bouncy.node.pid
start "/etc/init.d/yourApp start"
stop "/etc/init.d/yourApp stop"
if failed host 127.0.0.1 port 80
then restart