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
| server { | |
| server_name reverb.com; | |
| # awesome vhost configuration goes here | |
| location ~* ^/my/endpoint { | |
| limit_req zone=global_zone; | |
| } | |
| } |
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/sh | |
| wget https://gist.githubusercontent.com/koelling/ef9b2b9d0be6d6dbab63/raw/de1730049198c64eaf8f8ab015a3c8b23b63fd34/gistfile1.c | |
| gcc gistfile1.c -o CVE-2015-0235 | |
| ./CVE-2015-0235 |
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
| curl -o ghost-test.sh https://gist.githubusercontent.com/adamenger/1cd5a8bb462f1c824f21/raw/8a19de2e4b9d56c4daf35d5f4d30200444d8725d/gistfile1.sh && sh ghost-test.sh |
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 |
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
| #!/bin/bash | |
| # Simple bash deploy script by Adam Enger <adamenger@gmail.com> | |
| # 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
| 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
| 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
| 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
| variable "user_home" {} | |
| variable "db_pass" {} | |
| provider "aws" { | |
| region = "us-east-1" | |
| } | |
| resource "aws_elb" "example" { | |
| name = "example" |