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
git branch | grep "ESM" | xargs git branch -D | |
git branch | grep "release" | xargs git branch -D |
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
import os | |
from boto.s3.connection import S3Connection | |
def main(): | |
backup_folder = "<your_path>" | |
access_key = "<s3_access_key>" | |
secret_key = "<s3_secret_key>" | |
bucket_name = "<s3_bucket_name>" |
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
source 'https://rubygems.org' | |
gem 'aws-sdk-s3', '1.17.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
dd if=/dev/zero bs=1M count=60 | tr "\000" "1" >1.dat | |
dd if=/dev/zero bs=1M count=2 | tr "\000" "2" >2.dat | |
dd if=/dev/zero bs=1M count=7 | tr "\000" "3" >3.dat | |
dd if=/dev/zero bs=1M count=10 | tr "\000" "4" >4.dat | |
dd if=/dev/zero bs=1M count=15 | tr "\000" "5" >5.dat | |
dd if=/dev/zero bs=1M count=5 | tr "\000" "6" >6.dat | |
dd if=/dev/zero bs=1M count=23 | tr "\000" "7" >7.dat | |
dd if=/dev/zero bs=1M count=40 | tr "\000" "8" >8.dat | |
dd if=/dev/zero bs=1M count=33 | tr "\000" "9" >9.dat | |
dd if=/dev/zero bs=1M count=3 | tr "\000" "0" >10.dat |
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
#Install on Ubuntu: | |
#sudo apt-get install libpqxx-3.1 | |
#sudo apt-get install libpqxx3-dev | |
all: RunPostgresConnect | |
RunPostgresConnect: PostgresConnect.o | |
g++ -o $@ $< -lpqxx -lpq | |
PostgresConnect.o: PostgresConnect.cpp |
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
package main | |
// go get github.com/lib/pq | |
import ( | |
_ "github.com/lib/pq" | |
"database/sql" | |
"fmt" | |
) | |
func main() { | |
db, err := sql.Open("postgres", "user=marcmaron password=boomerlives! dbname=wtfpodcast") |
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
package main | |
import ( | |
"fmt" | |
"bufio" | |
"os" | |
"strconv" | |
) | |
func ReadLinesFromFile(file_path string) ([]string, error) { |