Skip to content

Instantly share code, notes, and snippets.

dannymcclelland@macbookpro ~/projects/hubot[master]$ git push heroku master
Counting objects: 26, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (20/20), done.
Writing objects: 100% (21/21), 7.79 KiB, done.
Total 21 (delta 4), reused 3 (delta 0)
-----> Heroku receiving push
-----> Node.js app detected
-----> Fetching Node.js binaries
dannymcclelland@macbookpro ~/projects/hubot[master]$ git push heroku master
Counting objects: 1450, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (601/601), done.
Writing objects: 100% (1450/1450), 171.36 KiB, done.
Total 1450 (delta 906), reused 1222 (delta 795)
-----> Heroku receiving push
-----> Node.js app detected
-----> Fetching Node.js binaries
@dannymcc
dannymcc / deploy.coffee
Created October 30, 2011 10:49
Deploy your application with hubot and deploy docus
# Allows Hubot to deploy, using Deploy Docus
#
# deploy <project> on <environment>
#
module.exports = (robot) ->
robot.respond /deploy (.*) (on|to|into) (.*)/, (msg) ->
if msg.message.user.type == "Member"
project = msg.match[1]
environment = msg.match[3]
Oct 30 18:36:31 lamp hvc0: Setting up php5-mysql (5.3.2-1ubuntu4.10) ...
Oct 30 18:36:31 lamp hvc0: Setting up libdbus-1-3 (1.2.16-2ubuntu4.3) ...
Oct 30 18:36:31 lamp hvc0:
Oct 30 18:36:31 lamp hvc0: Setting up libpng12-0 (1.2.42-1ubuntu2.2) ...
Oct 30 18:36:31 lamp hvc0:
Oct 30 18:36:31 lamp hvc0: Setting up linux-image-ec2 (2.6.32.319.20) ...
Oct 30 18:36:31 lamp hvc0: Setting up linux-libc-dev (2.6.32-34.77) ...
Oct 30 18:36:31 lamp hvc0: Processing triggers for libc-bin ...
Oct 30 18:36:31 lamp hvc0: ldconfig deferred processing now taking place
Oct 30 18:36:32 lamp hvc0: [master 562f616] committing changes in /etc after apt run
[Sun Oct 30 19:31:49 2011] [alert] [client 80.175.194.69] /home/godeploy/public/.htaccess: Invalid command 'RewriteEngine', pe$
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
[Sun Oct 30 19:45:35 2011] [error] [client 146.255.106.214] PHP Warning: require_once(Zend/Application.php): failed to open stream: No such file or directory in /home/godeploy/public/index.php on line 18
[Sun Oct 30 19:45:35 2011] [error] [client 146.255.106.214] PHP Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path='/home/godeploy/library:.:/usr/share/php:/usr/share/pear') in /home/godeploy/public/index.php on line 18
dannymcclelland@macbookpro ~/Projects/deploy_docus[master*]$ git pull
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 7 (delta 3), reused 7 (delta 3)
Unpacking objects: 100% (7/7), done.
From git://github.com/evome/deploy_docus
5fe2c5b..2380aec master -> origin/master
* [new tag] v0.0.9 -> v0.0.9
Updating 5fe2c5b..2380aec
Fast-forward
<?php include('perch/runtime.php'); ?>
<!doctype html>
<!--[if lt IE 7 ]> <html class="ie ie6 no-js" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="ie ie7 no-js" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="ie ie8 no-js" lang="en"> <![endif]-->
<!--[if IE 9 ]> <html class="ie ie9 no-js" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--><html class="no-js" lang="en"><!--<![endif]-->
<!-- the "no-js" class is for Modernizr. -->
@dannymcc
dannymcc / mainpractice-wireshark
Created November 14, 2011 08:44
Main Practice (Wireshark)
No. Time Source Destination Protocol Length Info
1 0.000000 192.168.1.45 192.168.3.1 TCP 62 41636 > printer [SYN] Seq=0 Win=8192 Len=0 MSS=1460 SACK_PERM=1
Frame 1: 62 bytes on wire (496 bits), 62 bytes captured (496 bits)
Ethernet II, Src: WistronI_1d:5d:05 (f0:de:f1:1d:5d:05), Dst: Draytek_78:9a:f8 (00:50:7f:78:9a:f8)
Internet Protocol Version 4, Src: 192.168.1.45 (192.168.1.45), Dst: 192.168.3.1 (192.168.3.1)
Transmission Control Protocol, Src Port: 41636 (41636), Dst Port: printer (515), Seq: 0, Len: 0
No. Time Source Destination Protocol Length Info
2 0.144101 192.168.1.45 192.168.1.255 NBNS 92 Name query NB ISATAP<00>