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 |
Magic words:
psql -U postgresSome 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 ([email protected]) 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 ([email protected]) | |
| ## | |
| ####################### | |
| ## Regular device mount | |
| ## | |
| ## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...> | |
| ## label - Label for the volume |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |