Skip to content

Instantly share code, notes, and snippets.

View JasonGiedymin's full-sized avatar
Localized in the quantum field of probabilities.

Jason Giedymin JasonGiedymin

Localized in the quantum field of probabilities.
View GitHub Profile
@JasonGiedymin
JasonGiedymin / ubuntu-essentials.sh
Created August 4, 2012 04:53
Ubuntu essentials
#!/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."
@JasonGiedymin
JasonGiedymin / .gitignore
Created August 4, 2012 04:46
Global .gitignore
# Global .gitignore
## Dirs
node_modules
tmp
temp
## Generic
*~
@JasonGiedymin
JasonGiedymin / simple_password_generator.py
Created April 18, 2012 01:52
Simple password generator created and used at my startup
'''
_) ___| | | _) _|
| \___ \ __| __| _` | __| | | | |
| | | | ( | | | __| | |
_| _____/ \__| _| \__,_| \__| _| _| \__, |
____/
@author: jasong@apache.org
@JasonGiedymin
JasonGiedymin / keygen.coffee
Created April 18, 2012 01:49
Basic KeyGen CoffeeScript
# 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"
@JasonGiedymin
JasonGiedymin / idea64.vmoptions
Created April 17, 2012 17:51
Intellij64BitSpeedUps
-Xss2048k
-Xms768m
-Xmx1408m
-XX:MaxPermSize=512m
-XX:ReservedCodeCacheSize=1280m
-XX:+AggressiveOpts
-XX:ParallelGCThreads=16
-XX:+UseConcMarkSweepGC
-XX:+UseParNewGC
-XX:+ExplicitGCInvokesConcurrent
@JasonGiedymin
JasonGiedymin / jvm_tuning_64bit
Created April 17, 2012 17:42
JVM Performance Tuning
# 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
@JasonGiedymin
JasonGiedymin / gist:2401614
Created April 16, 2012 21:24
Find and remove all .svn folders recursively starting from pwd.
# Find and remove all .svn folders recursively starting from pwd.
find ./ -iname ".svn" -print0 | xargs -0 rm -R
@JasonGiedymin
JasonGiedymin / parseing_test.py
Created November 25, 2011 22:47
Testing some parsing.
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
@JasonGiedymin
JasonGiedymin / rabbitmq.rake
Created November 19, 2011 21:34
Easy RabbitMQ Start/Stop Rake tasks for OSX
#
# 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."
@JasonGiedymin
JasonGiedymin / postgresql.rake
Created November 18, 2011 20:33
Easy PostgreSQL Start/Stop Rake tasks for OSX
#
# 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."