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
| var kue = require('kue'), | |
| jobs = kue.createQueue(), | |
| util = require('util'), | |
| noop = function() {}; | |
| jobs.CLEANUP_MAX_FAILED_TIME = 30 * 24 * 60 * 60 * 1000; // 30 days | |
| jobs.CLEANUP_MAX_ACTIVE_TIME = 1 * 24 * 60 * 60 * 1000; // 1 day | |
| jobs.CLEANUP_MAX_COMPLETE_TIME = 5 * 24 * 60 * 60 * 1000; // 5 days | |
| jobs.CLEANUP_INTERVAL = 5 * 60 * 1000; // 5 minutes |
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
| # encoding: utf-8 | |
| module Constants | |
| JSON_VALIDATOR_RE = /( | |
| # define subtypes and build up the json syntax, BNF-grammar-style | |
| # The {0} is a hack to simply define them as named groups here but not match on them yet | |
| # I added some atomic grouping to prevent catastrophic backtracking on invalid inputs | |
| (?<number> -?(?=[1-9]|0(?!\d))\d+(\.\d+)?([eE][+-]?\d+)?){0} | |
| (?<boolean> true | false | null ){0} | |
| (?<string> " (?>[^"\\\\]* | \\\\ ["\\\\bfnrt\/] | \\\\ u [0-9a-f]{4} )* " ){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
| if which rbenv > /dev/null; then eval "$(rbenv init - --no-rehash)"; fi |
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
| # recursively delete original files after a git merge failure | |
| find . -name *.orig -delete |
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
| sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction |
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
| # inspired by http://ariejan.net/2010/08/23/resque-how-to-requeue-failed-jobs | |
| # retry all failed Resque jobs except the ones that have already been retried | |
| # This is, for instance, useful if you have already retried some jobs via the web interface. | |
| Resque::Failure.count.times do |i| | |
| Resque::Failure.requeue(i) unless Resque::Failure.all(i, 1)['retried_at'].present? | |
| end | |
| # retry all :) | |
| Resque::Failure.count.times do |i| |
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
| container_commands: | |
| 01_build: | |
| command: "PATH=$NODE_HOME/bin:$PATH $NODE_HOME/bin/npm run build" |
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
| var pushRight = slate.operation("push", { | |
| "direction": "right", | |
| "style": "bar-resize:screenSizeX/2" | |
| }); | |
| var pushLeft = slate.operation("push", { | |
| "direction": "left", | |
| "style": "bar-resize:screenSizeX/2" | |
| }); |
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
| # The upstream server doesn't need a prefix! no need for wss:// or http:// because nginx will upgrade to http1.1 in the config below | |
| upstream yeomanserver { | |
| server localhost:3000; | |
| } | |
| server { | |
| listen 443; | |
| server_name legionofevil.org; | |
| root html; |
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
| # Initiate Domain Transfer | |
| aws route53domains transfer-domain-to-another-aws-account --domain-name yourdomain.tld --account-id 123456789101 | |
| # Cancel Domain Transfer | |
| aws route53domains cancel-domain-transfer-to-another-aws-account --domain-name yourdomain.tld | |
| { | |
| "OperationId": "MNOP-MNOP-MNOP-MNOP-MNOP", | |
| "Password": "XYZXYZXYZXYZ" | |
| } | |
| # Accept Domain Transfer | |
| aws route53domains accept-domain-transfer-from-another-aws-account --domain-name yourdomain.tld --password "XYZXYZXYZXYZ" |
OlderNewer