This file contains 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 | |
export https_proxy="127.0.0.1:3333" | |
for i in `seq 1 2000` ; do | |
wget https://www.kernel.org/pub/linux/bluetooth/bluez-5.12.tar.xz bluez-5.1-$i.tar.xz | |
sleep 0.3 | |
done | |
This file contains 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 | |
zonefile=$1 | |
zone=$2 | |
test_hosts() { | |
for host in "$@"; do | |
host_=$(echo $host|awk -F ':' '{print $1}') | |
port_=$(echo $host|awk -F ':' '{print $2}') | |
echo | timeout 3 openssl s_client -connect $host_:$port_ >/dev/null 2>&1; |
This file contains 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
#!/usr/bin/env python | |
import sys | |
import gobject | |
import gtk | |
import webkit | |
from itertools import cycle | |
class WebBrowser(gtk.Window): |
This file contains 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
#!/usr/bin/env python | |
""" | |
Prerequisites: | |
- keyring ( optional ) | |
- argh | |
- beautifulsoup4 | |
- requests-ntlm | |
This scripts authenticates you to your SAML provider and writes the |
This file contains 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
# Receives a list of dicts and merges all | |
# sub-dicts into one | |
def flatten_list(l): | |
result = {} | |
for item in l: | |
result.update(item) | |
return result | |
class FilterModule(object): |
This file contains 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
#!/usr/bin/env python | |
#quick and dirty script to find any untagged and detached volumes, | |
#take a snapshot and delete it. | |
import json | |
import boto3 | |
def get_detached_untagged_volumes(ec2_conn): | |
volumes = ec2_conn.describe_volumes() | |
return [ volume['VolumeId'] for volume in volumes['Volumes'] | |
if (len(volume['Attachments'])==0 and |
This file contains 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
--- | |
- hosts: localhost | |
connection: local | |
vars: | |
all_networks: | |
- 10.80.128.0/20 | |
- 10.80.144.0/20 | |
- 10.80.208.0/20 | |
- 10.10.5.0/24 |
This file contains 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
util = require 'util' | |
init_aws = () -> | |
aws = require 'aws-sdk' | |
return aws | |
module.exports = (robot) -> | |
robot.respond /ec2 get-instance (.*)$/i, (msg) -> | |
ins_id = msg.match[1].trim() | |
if ins_id.match /i-.*/ |
This file contains 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
--- | |
- hosts: localhost | |
connection: local | |
gather_facts: no | |
tasks: | |
- name: "Create project VPC" | |
ec2_vpc: | |
state: present | |
region: "{{ project_region }}" |
OlderNewer