Skip to content

Instantly share code, notes, and snippets.

View jeffersonsouza's full-sized avatar

Jefferson Souza jeffersonsouza

View GitHub Profile
@jeffersonsouza
jeffersonsouza / nginx.install.sh
Created May 30, 2015 04:15
Nginx Latest Stable on Ubuntu 14.04
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx
# print the nginx version
nginx -v
@jeffersonsouza
jeffersonsouza / docker.sh
Created May 20, 2015 11:33
Run Docker without sudo
sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo service docker restart # in some ubuntu versions use "sudo service docker.io restart"
newgrp docker
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@jeffersonsouza
jeffersonsouza / gist:bef9ae3bb5b45a7e09a5
Created March 24, 2015 14:43
Android SDK paths - Ubuntu
echo "ANDROID_HOME=~/android-sdk-linux" >> /home/youruser/.bashrc
echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386" >> /home/youruser/.bashrc
echo "PATH=\$PATH:~/android-sdk-linux/tools:~/android-sdk-linux/platform-tools" >> /home/youruser/.bashrc
{
"directory": "components"
}
@jeffersonsouza
jeffersonsouza / ionic-framework-resources.md
Last active August 29, 2015 14:11
Ionic Framework Resources
#!/bin/bash
## Author: Ken Goldfarb <[email protected]>
## https://github.com/kengoldfarb
##
## This script will install Nginx+Pagespeed with PHP-FPM 5.5.x
## It's testsed working on a stock AWS Ubuntu 14.04 image
##
## BONUS: Oh-my-zsh installation included!
{
"bold_folder_labels": true,
"draw_white_space": "all",
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"indent_to_bracket": true,
/*
See dev dependencies https://gist.github.com/isimmons/8927890
Compiles sass to compressed css with autoprefixing
Compiles coffee to javascript
Livereloads on changes to coffee, sass, and blade templates
Runs PHPUnit tests
Watches sass, coffee, blade, and phpunit
Default tasks sass, coffee, phpunit, watch
*/