Skip to content

Instantly share code, notes, and snippets.

View germs12's full-sized avatar
:shipit:

James Thullbery germs12

:shipit:
View GitHub Profile
@germs12
germs12 / gist:6766339
Created September 30, 2013 16:25
Check Disk Space Usage Linux
# This will tell folder sizes not file sizes
du -ch --max-depth=1
# Create kpdev user
useradd kpdev
# Install rvm for system
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
# First you need to add all users that will be using rvm to 'rvm' group,
# and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.
@germs12
germs12 / gist:6713332
Last active December 23, 2015 23:59
Puppet on Ubuntun 12.04
# https://help.ubuntu.com/lts/serverguide/puppet.html
# http://docs.puppetlabs.com/puppet_core_types_cheatsheet.pdf
# http://docs.puppetlabs.com/module_cheat_sheet.pdf
# http://docs.puppetlabs.com/references/latest/type.html
# http://docs.puppetlabs.com/puppet/latest/reference/lang_summary.html
@germs12
germs12 / gist:6415750
Last active December 22, 2015 04:18
php 5 fpm
# http://www.howtoforge.com/installing-nginx-with-php5-and-php-fpm-and-mysql-support-on-ubuntu-11.04
$ sudo apt-get install php5-fpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
php-pear
The following NEW packages will be installed:
@germs12
germs12 / gist:6381719
Last active December 21, 2015 23:19
piwik installation
# http://piwik.org/docs/installation/
# http://piwik.org/docs/requirements/
$ sudo chown -R _www:_www /Library/WebServer/Documents/analytics/piwik
# TRACKING CODE #
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
@germs12
germs12 / gist:6381052
Created August 29, 2013 17:35
Mac OS X Enable System PHP
$ sudo subl /private/etc/apache2/httpd.conf
# Uncomment line
LoadModule php5_module libexec/apache2/libphp5.so
# Add lines
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
@germs12
germs12 / gist:6365241
Created August 28, 2013 12:04
Timing Ruby Execution
require "benchmark"
puts(Benchmark.measure { sleep 0.5 })
@germs12
germs12 / gist:6257827
Created August 17, 2013 17:07
linux/unix advanced permissions
setfacl
getfacl
@germs12
germs12 / gist:6201006
Last active December 20, 2015 21:58
phusion passenger install ubuntu server 12.10
# http://www.modrails.com/documentation/Users%20guide%20Nginx.html#_installation
sudo apt-add-repository ppa:brightbox/passenger
Nginx with Passenger support was successfully installed.
The Nginx configuration file (/opt/nginx/conf/nginx.conf)
must contain the correct configuration options in order for Phusion Passenger
to function correctly.
This installer has already modified the configuration file for you! The
@germs12
germs12 / gist:6200759
Created August 10, 2013 15:09
Postgres Install Ubuntu
# http://hendrelouw73.wordpress.com/2012/11/14/how-to-install-postgresql-9-1-on-ubuntu-12-10-linux/