Download the Heroku backup that you want
Get list of backups
heroku pgbackups --app $APP
Get url for backup, and download
heroku pgbackups:url $backupId --app $APP
| #! /usr/bin/env python | |
| from littleworkers import Pool | |
| # Define your commands. | |
| commands = [ | |
| "cd repo1; git fetch", | |
| "cd repo2; git fetch", | |
| "cd repo3; git fetch", | |
| "cd repo4; git fetch", |
| #! /usr/bin/env python | |
| curnum = 2 | |
| nums = [] | |
| while True: | |
| prime = True | |
| for num in nums: | |
| if curnum % num == 0: | |
| prime = False |
| #! /usr/bin/perl | |
| die "usage volume.pl NUMBER" if @ARGV == 0; | |
| $vol = $ARGV[0]; | |
| $command = 'sudo osascript -e "set Volume ' . $vol .'"'; | |
| system($command); |
| #! /usr/bin/perl | |
| #Turn your mac into your (not) so humble servant, Jarvis! | |
| #Version 1.0 5/12/2010 Cody Hanson | |
| #Macintosh only, sorry! | |
| #Dedicated to Mr Tony Stark, who is a badass. | |
| use strict; | |
| use warnings; |
| #! /usr/bin/env node | |
| function gen(val){ | |
| return function(){ | |
| console.log('My value is:' + val); | |
| } | |
| } | |
| var a = [1, 2, 3, 4, 5]; | |
| var fps = []; |
| #!/usr/bin/env node | |
| function asyncCall(callback){ | |
| console.log('Starting Async Function'); | |
| setTimeout(callback,1000); | |
| } | |
| try { | |
| asyncCall(function (){ | |
| var err = new Error('MyError'); |
Download the Heroku backup that you want
Get list of backups
heroku pgbackups --app $APP
Get url for backup, and download
heroku pgbackups:url $backupId --app $APP
| var _ = require('underscore'); | |
| var sprintf = require('sprintf-js').sprintf; | |
| var words = _.chain(require('fs').readFileSync('wordsEn.txt').toString().split("\r\n")).compact().sortBy('length').value(); | |
| var chains = []; | |
| function contains(smaller, bigger) { | |
| if (smaller.length >= bigger.length) return false; | |
| for (var i = 0; i < smaller.length; i++) if (_.indexOf(bigger, smaller[i]) == -1) return false; | |
| return true; | |
| } | |
| for (var i = 0; i < words.length; i++) { |
| # !/usr/python | |
| # The FIN scan utilizes the FIN flag inside the TCP packet, | |
| # along with the port number to connect to on the server. | |
| # If there is no response from the server, then the port is open. | |
| import logging | |
| logging.getLogger("scapy.runtime").setLevel(logging.ERROR) | |
| from scapy.all import * | |
| #!/bin/bash | |
| # Example Output and Usage | |
| # clh@mint ~ $ ./curlloop.sh google.com | |
| # 0: http://www.google.com/ - 200 | |
| # 1: http://www.google.com/ - 200 | |
| # 2: http://www.google.com/ - 200 | |
| # 3: http://www.google.com/ - 200 | |
| COUNT=0 |