Skip to content

Instantly share code, notes, and snippets.

View sumodirjo's full-sized avatar

Muhammad Panji sumodirjo

View GitHub Profile
@sumodirjo
sumodirjo / restart-jenkins
Last active August 29, 2015 14:11
Restart Jenkins on Mac
#!/bin/bash
# restart-jenkins
#
# Jenkins restart script for Mac
# (c) 2014 Muhammad Panji - sumodirjo at gmail dot com
# Defining Sleep Time
SLEEP=10
echo "Stopping Jenkins"
@sumodirjo
sumodirjo / docker-latest-installer-ubuntu-14.04.sh
Created November 7, 2014 04:03
Install Docker Latest on Ubuntu 14.04
#!/bin/bash
echo "Check HTTPS Transport support for APT"
# Check that HTTPS transport is available to APT
if [ ! -e /usr/lib/apt/methods/https ]; then
echo "Installing apt-transport-https"
sudo apt-get update
sudo apt-get install -y apt-transport-https
fi
@sumodirjo
sumodirjo / install-nginx-ubuntu-14.04
Last active August 29, 2015 14:07
Install nginx Ubuntu 14.04 (Trusty Tahr)
wget -c -O- http://nginx.org/keys/nginx_signing.key | sudo apt-key add -
echo "deb http://nginx.org/packages/ubuntu/ trusty nginx" | sudo tee -a /etc/apt/sources.list.d/nginx.list > /dev/null
echo "deb-src http://nginx.org/packages/ubuntu/ trusty nginx" | sudo tee -a /etc/apt/sources.list.d/nginx.list > /dev/null
sudo apt-get update
sudo apt-get install nginx
@sumodirjo
sumodirjo / rails-mysql-db-backup.sh
Last active August 29, 2015 14:06
Rails MySQL Database Backup Script
#!/bin/bash
# (c) 2014 - 2015 Muhammad Panji - sumodirjo at gmail dot com / panji at icehousecorp dot com
# Rails MySQL Database Backup
# This script read database config from rails database.yml
# it use shyaml python module to read the config :)
# You can install the module using
# pip install shyaml
# or
# sudo pip install shyaml
@sumodirjo
sumodirjo / install-pip.sh
Created September 10, 2014 09:14
Install pip
#!/bin/bash
echo "Downloading get-pip.py"
wget -c https://bootstrap.pypa.io/get-pip.py
echo "Installing pip"
sudo python get-pip.py
@sumodirjo
sumodirjo / AWS ELB Health Check Best Practice
Last active December 29, 2016 09:12
AWS Elastic Load Balancer Health Check Best Practice
If we're using default AWS ELB config, we'll get 503 for several minutes after app deployment. Use this config to minimize 503. We might still get 503 message for 10-20 seconds.
Ping Target HTTP:3000/
Timeout 5 seconds
Interval 10 seconds
Unhealthy Threshold 10
Healthy Threshold 2
@sumodirjo
sumodirjo / newrelic-installer-ubuntu.sh
Created September 9, 2014 02:08
Install NewRelic Server Monitoring Ubuntu / Debian
echo "deb http://apt.newrelic.com/debian/ newrelic non-free" | sudo tee -a /etc/apt/sources.list.d/newrelic.list > /dev/null
wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install newrelic-sysmond
sudo nrsysmond-config --set license_key=<YOUR LICENSE HERE>
sudo /etc/init.d/newrelic-sysmond start
@sumodirjo
sumodirjo / gist:1d0d29af48042eb57532
Created September 4, 2014 04:09
Install Oracle Java 7 Ubuntu
sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java7-installer
@sumodirjo
sumodirjo / gist:248d0fb5307eeaa9c87b
Created September 4, 2014 04:09
Install Oracle Java 8 Ubuntu
sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java8-installer

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.