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
;; database name = connect string | |
;; | |
;; connect string params: | |
;; dbname= host= port= user= password= | |
;; client_encoding= datestyle= timezone= | |
;; pool_size= connect_query= | |
[databases] | |
; foodb over unix socket | |
;foodb = |
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
# Migrate all keys from source to dest using 100 works with a batch of 10 | |
./migr8 --source 1.2.3.4 --dest 2.3.4.5 --workers 100 -b 10 migrate | |
# Migrate keys with prefix apples from source to dest | |
./migr8 --source 1.2.3.4 --dest 2.3.4.5 --workers 100 -b 10 migrate | |
# Migrate keys with prefix apples from source to dest and clear the source as we go | |
./migr8 --source 1.2.3.4 --dest 2.3.4.5 --workers 100 -b 10 --prefix apples -c migrate |
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
# Migrate all keys from source to dest using 100 works with a batch of 10 | |
./migr8 --source 1.2.3.4 --dest 2.3.4.5 --workers 100 -b 10 migrate | |
# Migrate keys with prefix apples from source to dest | |
./migr8 --source 1.2.3.4 --dest 2.3.4.5 --workers 100 -b 10 migrate | |
# Migrate keys with prefix apples from source to dest and clear the source as we go | |
./migr8 --source 1.2.3.4 --dest 2.3.4.5 --workers 100 -b 10 --prefix apples -c migrate |
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
variable "user_home" {} | |
variable "db_pass" {} | |
provider "aws" { | |
region = "us-east-1" | |
} | |
resource "aws_elb" "example" { | |
name = "example" |
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
require 'aws-sdk' | |
require 'elasticsearch' | |
require 'httparty' | |
require 'socket' | |
ec2 = AWS::EC2.new | |
# elasticsearch_cluster is just an array of ip's, so you could manually replace or use your api of choice to get them | |
elasticsearch_cluster = ec2.instances.with_tag('es_cluster_name', 'es_test').filter('instance-state-name', 'running').map{ |i| i.private_ip_address } | |
start_time = Time.now.to_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
Host github.com | |
IdentityFile ~/.ssh/id_rsa | |
Host 10.0.*.* | |
IdentityFile ~/.ssh/reverb.pem |
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
FROM ubuntu:14.04 | |
RUN apt-get update \ | |
&& apt-get install curl -y -q \ | |
&& curl -sL https://deb.nodesource.com/setup | sudo bash - \ | |
&& apt-get install nodejs -y | |
RUN npm install -g angry-caching-proxy | |
RUN mkdir cache |
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
#!/bin/bash | |
# Simple bash deploy script by Adam Enger <[email protected]> | |
# Do what you want with this, no support or warranty given. | |
servers="1.2.3.4 1.2.3.5" | |
local_code_dir="/home/user/code" | |
remote_code_dir="/home/user/code" | |
deploy_user="user" | |
for server in $servers; do |
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
lsof | grep libc | awk '{print $1}' | sort | uniq |
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 apt-get update && sudo apt-get install --only-upgrade libc6 -y && dpkg -s libc6 | grep Version && ./CVE-2015-0235 |