This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "AWSTemplateFormatVersion": "2010-09-09", | |
| "Description": "Webservices", | |
| "Parameters": { | |
| "aaPrefix": { | |
| "Type": "String", | |
| "Default": "prod" | |
| }, | |
| "ProjectName": { | |
| "Type": "String", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| server_tokens off; | |
| listen 80 default_server; | |
| server_name tickets.me.com; | |
| client_max_body_size 5M; | |
| keepalive_timeout 0; | |
| fastcgi_read_timeout 120; | |
| fastcgi_send_timeout 60; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby --version | |
| ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin13.0.2] | |
| cap --version | |
| Capistrano v2.15.5 | |
| gem query --local | |
| *** LOCAL GEMS *** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this.before(function(){ | |
| var res = this.response; | |
| if ('OPTIONS' == this.request.method) { | |
| res.setHeaders(200,{ | |
| 'Content-Type': 'text/plain', | |
| 'Access-Control-Allow-Origin': '*', | |
| 'Access-Control-Allow-Methods': 'GET, PUT, POST, DELETE, OPTIONS', | |
| 'Access-Control-Allow-Headers': 'Content-Type, Authorization, X-Requested-With', | |
| 'Access-Control-Max-Age': 5184000 //2 months |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #@see rynop.com for details | |
| sudo apt-get install xbindkeys | |
| ####now put the following in ~/.xbindkeysrc: | |
| #KeyboardPlay | |
| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" | |
| XF86AudioPlay | |
| #KeyboardStop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class DynamoDbException extends Exception | |
| { | |
| //DyanmoDB exceptions. @see http://docs.amazonwebservices.com/amazondynamodb/latest/developerguide/ErrorHandling.html | |
| const AccessDeniedException = 1; | |
| const ConditionalCheckFailedException = 2; | |
| const IncompleteSignatureException = 3; | |
| const LimitExceededException = 4; | |
| const MissingAuthenticationTokenException = 5; | |
| const ProvisionedThroughputExceededException = 6; | |
| const ResourceInUseException = 7; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/hubot$ ~/hubot/bin/hubot -a hipchat -n Hubot | |
| npm http GET https://registry.npmjs.org/hubot-hipchat | |
| npm http GET https://registry.npmjs.org/hubot/2.1.4 | |
| npm http GET https://registry.npmjs.org/hubot-scripts | |
| npm http GET https://registry.npmjs.org/optparse/1.0.3 | |
| npm http 304 https://registry.npmjs.org/hubot/2.1.4 | |
| npm http 304 https://registry.npmjs.org/hubot-hipchat | |
| npm http 304 https://registry.npmjs.org/hubot-scripts | |
| npm http 304 https://registry.npmjs.org/optparse/1.0.3 | |
| npm http GET https://registry.npmjs.org/wobot/0.6.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/hubot# bin/hubot | |
| npm http GET https://registry.npmjs.org/hubot-hipchat | |
| npm http 304 https://registry.npmjs.org/hubot-hipchat | |
| npm http GET https://registry.npmjs.org/wobot/0.6.0 | |
| npm http 304 https://registry.npmjs.org/wobot/0.6.0 | |
| npm http GET https://registry.npmjs.org/node-xmpp | |
| npm http GET https://registry.npmjs.org/underscore | |
| npm http 304 https://registry.npmjs.org/node-xmpp | |
| npm http 304 https://registry.npmjs.org/underscore | |
| npm http GET https://registry.npmjs.org/node-expat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :~/hubot# cat package.json | |
| { | |
| "name": "hosted-hubot", | |
| "version": "2.1.4", | |
| "author": "GitHub Inc.", | |
| "keywords": "github hubot campfire bot", | |
| "description": "A simple helpful Robot for your Company", | |
| "licenses": [{ | |
| "type": "MIT", | |
| "url": "http://github.com/github/hubot/raw/master/LICENSE" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $this->imgMetadata['format'] = strtolower($this->imagickObj->getImageFormat()); | |
| $this->imgMetadata['width'] = $this->imagickObj->getImageWidth(); | |
| $this->imgMetadata['height'] = $this->imagickObj->getImageHeight(); | |
| $x = $y = 0; | |
| switch ($gravity) { | |
| case 'center': | |
| // $gravity = \Imagick::GRAVITY_CENTER; | |
| $x = ($this->imgMetadata['width']/2) - ($width/2); |