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 | |
| echo "Installing Dependencies for Ubuntu ONLY" | |
| sudo apt-get update | |
| sudo apt-get install git git-core curl build-essential openssl libssl-dev wget vim pkg-config make autoconf automake gcc g++ ccache tcl-dev libexpat1-dev libpcre3-dev libcap-dev libcap2 bison flex | |
| echo "Installing dependencies complete." |
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
| # Global .gitignore | |
| ## Dirs | |
| node_modules | |
| tmp | |
| temp | |
| ## Generic | |
| *~ |
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
| ''' | |
| _) ___| | | _) _| | |
| | \___ \ __| __| _` | __| | | | | | |
| | | | | ( | | | __| | | | |
| _| _____/ \__| _| \__,_| \__| _| _| \__, | | |
| ____/ | |
| @author: jasong@apache.org |
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
| # Basic Keygen | |
| # Briefly used at my startup | |
| # Note: be mindful of any console logging or stdout logging when running this. | |
| # | |
| # By Jason Giedymin | |
| # jasong _-@-_ apache -dot- org | |
| # | |
| crypto = require "crypto" | |
| rbytes = require "rbytes" |
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
| -Xss2048k | |
| -Xms768m | |
| -Xmx1408m | |
| -XX:MaxPermSize=512m | |
| -XX:ReservedCodeCacheSize=1280m | |
| -XX:+AggressiveOpts | |
| -XX:ParallelGCThreads=16 | |
| -XX:+UseConcMarkSweepGC | |
| -XX:+UseParNewGC | |
| -XX:+ExplicitGCInvokesConcurrent |
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
| # Jason Giedymin | |
| # jasong _-@-_ apache _dot_ org | |
| # Try these options for your 64bit JVM. | |
| # Aggressive collection, Large-ish Memory footprint | |
| -Xss1024k -Xms512m -Xmx1408m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=1024m -XX:+AggressiveOpts -XX:ParallelGCThreads=16 -XX:+UseConcMarkSweepGC -XX:+ExplicitGCInvokesConcurrent -XX:+UseCompressedOops | |
| # Aggressive collection but use memory if needed | |
| -Xss1024k -Xms128m -Xmx1408m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=1024m -XX:+AggressiveOpts -XX:ParallelGCThreads=4 -XX:+UseConcMarkSweepGC -XX:+ExplicitGCInvokesConcurrent -XX:+UseCompressedOops |
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
| # Find and remove all .svn folders recursively starting from pwd. | |
| find ./ -iname ".svn" -print0 | xargs -0 rm -R |
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 time import strftime | |
| import math | |
| ''' | |
| Parse `input.conf`, store [access_key] in dict with tupple of IPs. | |
| # `input.conf` file | |
| access1, key1, 192.168.0.1; 192.168.0.2; 192.168.0.3 | |
| access2, key1, 192.168.0.1; 192.168.0.2; 192.168.0.3 | |
| access3, key1, 192.168.0.1; 192.168.0.2; 192.168.0.3 |
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
| # | |
| # Don't want to run PostgreSQL as a service? Want to manually start and stop it? | |
| # >> bundle exec rake rabbitmq:mac:start | |
| # >> bundle exec rake rabbitmq:mac:stop | |
| # | |
| namespace :rabbitmq do | |
| namespace :mac do | |
| desc "Starts a Mac brew installed RabbitMQ server." |
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
| # | |
| # Don't want to run PostgreSQL as a service? Want to manually start and stop it? | |
| # >> bundle exec rake postgresql:mac:start | |
| # >> bundle exec rake postgresql:mac:stop | |
| # | |
| namespace :postgresql do | |
| namespace :mac do | |
| desc "Starts a Mac brew installed Postgres DB." |