One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/bin/bash | |
# Install dependencies | |
# older ubuntus | |
#apt-get install build-essential libsqlite3-dev ruby1.9.1-dev | |
# xenial | |
apt install build-essential libsqlite3-dev ruby-dev | |
# Install the gem | |
gem install mailcatcher --no-ri --no-rdoc |
vagrant box add opscode_ubuntu-12.04_chef-11.4.0 https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.4.0.box
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
# check swap usage | |
sysctl vm.swapusage | |
# disable encrypted swap - SNOW LEOPARD | |
sudo defaults write /Library/Preferences/com.apple.virtualMemory UseEncryptedSwap -boolean no | |
# disable encrypted swap - LION | |
sudo defaults write /Library/Preferences/com.apple.virtualMemory DisableEncryptedSwap -boolean yes | |
# disable swap |
#!/bin/bash | |
# | |
# Debian GNU/Linux Installation Script for LAMP + ISPConfig3 | |
# Script written by Aris S Ripandi (riespandi@gmail.com) 15/01/2012 | |
# | |
# Referensi: | |
# - http://www.howtoforge.com/how-to-run-your-own-name-server-with-ispconfig-3-and-fast-hosts | |
# - http://www.howtoforge.com/perfect-server-debian-squeeze-with-bind-and-courier-ispconfig-3 | |
# - http://www.howtoforge.com/installing-mydns-ng-and-mydnsconfig-on-debian-squeeze | |
# - http://www.howtoforge.com/how-to-run-your-own-name-server-with-ispconfig-3-and-fast-hosts |
## Vold 2.0 fstab for HTC Passion | |
# | |
## - San Mehat (san@android.com) | |
## | |
####################### | |
## Regular device mount | |
## | |
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...> | |
## label - Label for the volume |