http://semicomplete.com/files/logstash/logstash-1.1.0beta6-monolithic.jar
java -jar logstash-1.1.0beta6-monolithic.jar agent -c logstash-sender.conf
java -jar logstash-1.1.0beta6-monolithic.jar agent -c logstash-receiver.conf
| #!/usr/bin/env ruby | |
| # s3-delete-bucket.rb | |
| # Fog-based script for deleting large Amazon AWS S3 buckets (~100 files/second) | |
| # Forked from this excellent script: https://github.com/SFEley/s3nuke | |
| require 'rubygems' | |
| require 'thread' | |
| require 'fog' |
| #! /usr/bin/env python | |
| import redis | |
| import random | |
| import pylibmc | |
| import sys | |
| r = redis.Redis(host = 'localhost', port = 6389) | |
| mc = pylibmc.Client(['localhost:11222']) |
http://semicomplete.com/files/logstash/logstash-1.1.0beta6-monolithic.jar
java -jar logstash-1.1.0beta6-monolithic.jar agent -c logstash-sender.conf
java -jar logstash-1.1.0beta6-monolithic.jar agent -c logstash-receiver.conf
| <?php | |
| /** | |
| * Super-simple AWS CloudFront Invalidation Script | |
| * | |
| * Steps: | |
| * 1. Set your AWS access_key | |
| * 2. Set your AWS secret_key | |
| * 3. Set your CloudFront Distribution ID | |
| * 4. Define the batch of paths to invalidate | |
| * 5. Run it on the command-line with: php cf-invalidate.php |
| ## place this file to same directory of `Vagrantfile' then simply require "snap.rb" in Vagrantfile | |
| module Snap | |
| module VBox | |
| class SnapShot | |
| require "forwardable" | |
| extend Forwardable | |
| def_delegators :@snap, :name, :uuid, :time_stamp | |
| @@snaps = [] | |
| class << self |
| # via http://blog.zerosum.org/2011/03/02/better-aws-access-control-with-iam-and-fog.html | |
| require 'fog' | |
| username = 'testuser' | |
| bucket = 'uniquebucketname1234' | |
| aws_credentials = { | |
| :aws_access_key_id => 'YOUR-ACCESS-KEY-ID', | |
| :aws_secret_access_key => 'YOUR-SECRET-ACCESS-KEY' |
| import boto.ec2 | |
| import os, time | |
| # define region_name to be region you want to connect to | |
| region_name = 'eu-west-1' | |
| conn = boto.ec2.connect_to_region(region_name) | |
| # First upload a public key to use for SSH'ing to instance. Use "ssh-keygen" to generate. | |
| fp = open(os.path.expanduser('~/.ssh/mykey.pub')) | |
| material = fp.read() |
| #!/bin/sh | |
| # | |
| # a simple way to parse shell script arguments | |
| # | |
| # please edit and use to your hearts content | |
| # | |
| ENVIRONMENT="dev" |
| include $(GOROOT)/src/Make.inc | |
| GOFMT=gofmt -spaces=true -tabindent=false -tabwidth=4 | |
| all: | |
| $(GC) jsontest.go | |
| $(LD) -o jsontest.out jsontest.$O | |
| format: | |
| $(GOFMT) -w jsontest.go |
| #!/usr/bin/env python | |
| """ | |
| twitter_archiver.py written by Jehiah Czebotar 2010 <jehiah@gmail.com> http://jehiah.cz/ | |
| this uses the great 'python twitter tools' library by Mike Verdone | |
| http://mike.verdone.ca/twitter/ | |
| usage: | |
| $ pip install twitter |