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
-verbose:gc \ | |
-XX:+PrintGCDetails \ | |
-XX:+PrintGCDateStamps \ | |
-XX:+PrintGCTimeStamps \ | |
-XX:+PrintHeapAtGC \ | |
-XX:+PrintTenuringDistribution \ | |
-XX:+PrintGCApplicationStoppedTime \ | |
-XX:+PrintGCApplicationConcurrentTime \ | |
-XX:+UseGCLogFileRotation \ | |
-XX:NumberOfGCLogFiles=5 \ |
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
sshto() { | |
ssh ubuntu@`knife ec2 server list | grep $1 | awk '{print $3}'` | |
} | |
# ex usage: sshto i-12341234 |
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
launch_terms () { | |
until [ -z "$1" ] # Until uses up arguments passed... | |
do | |
/usr/bin/osascript <<-EOF | |
tell application "iTerm" | |
make new terminal | |
tell the current terminal | |
activate current session | |
launch session "Default Session" | |
tell the last session |
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
https://papertrailapp.com/systems/setup | |
# sudo sh | |
# cd /etc | |
# wget https://papertrailapp.com/tools/syslog.papertrail.crt | |
# yum install rsyslog-gnutls |
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
$i = null; | |
echo $i++; echo ' ... '; echo $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
<?php | |
use ORM; | |
class User { | |
protected $userId; | |
protected $userName; | |
protected $role; | |
protected $row = null; | |
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
# Use this to run SSH Commands on a remote host. Arguments must be global variables before running runRemoteCmds() | |
# remoteHost string, required | |
# remoteUser string, required | |
# remoteKey string, optional | |
# remoteCmds array of strings, required | |
# | |
# Example: | |
# | |
# remoteHost="my.server.com" | |
# remoteUser="sshuser" |
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
http://easycaptures.com/fs/uploaded/710/7202210039.gif | |
Here is my outline. I have some code examples and details that I am going to | |
mix in as I talk. It's a bit more rough than I wanted it to be, but oh well. | |
It's an informal training session and I can talk through it. | |
Quick Testbeds: JSBin.com , JSFiddle.net , TinkerBin.com | |
Fundamentals | |
============ |
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
#download the JDK | |
#oracle's rpm.bin gets pulled down as corrupt..zzz | |
#wget --no-cookies --header "Cookie: gpw_e24=xxx" "http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-x64-rpm.bin" -O jdk-7-linux-x64-rpm.bin | |
#updated for version 7u11 | |
wget --no-cookies --header "Cookie: gpw_e24=xxx" http://download.oracle.com/otn-pub/java/jdk/7u11-b21/jdk-7u11-linux-x64.rpm -O jdk-7u11-linux-x64.rpm | |
sudo rpm -ivh jdk-7u11-linux-x64.rpm | |
sudo alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000 |
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
sudo yum install git | |
#need IAM credentials for read for all services, see https://github.com/Netflix/edda/wiki/AWS-Permissions | |
export AWS_ACCESS_KEY_ID=xxx | |
export AWS_SECRET_KEY=xxx | |
export JAVA_OPTS="-XX:MaxPermSize=256M -Xmx1g" | |
git clone git://github.com/Netflix/edda.git | |
cd edda | |
./gradlew build | |
cd .. | |
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.8.tgz |
OlderNewer