This file contains 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
/. | |
/etc | |
/etc/init.d | |
/etc/init.d/atop | |
/etc/logrotate.d | |
/etc/logrotate.d/atop | |
/etc/logrotate.d/psaccs_atop | |
/etc/logrotate.d/psaccu_atop | |
/usr | |
/usr/bin |
This file contains 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
[branch "master"] | |
merge=refs/heads/master | |
remote=origin |
This file contains 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
test |
This file contains 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); |
This file contains 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 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 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 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 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 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 |
OlderNewer