Ruby style programming was built on two simple ideas:
- Code must be crystal clear
- Code must be concise
Example:
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
This is a mix between two sources:
basically the first resource is great but didn't work for me: I had to remove the trailing "/*" in the resource string to make it work. I also noticed that setting the policy on the source bucket was sufficient. In the end these are the exact steps I followed to copy data between two buckets on two accounts
Basically the idea there is:
$ brew install geos proj gdal libxml2 json-c | |
$ wget http://download.osgeo.org/postgis/source/postgis-2.1.4.tar.gz | |
$ tar xvfz postgis-2.1.4.tar.gz | |
$ cd postgis-2.1.4 | |
$ ./configure --with-projdir=path-to-proj --with-jsondir=path-to-json-c (example: ./configure --with-projdir=/opt/boxen/homebrew/Cellar/proj/4.8.0 --with-jsondir=/opt/boxen/homebrew/Cellar/json-c/0.11) | |
$ make | |
$ sudo make install | |
$ cd path-to-your-postgres-previously-installed/contrib/postgis-2-1 (example: cd /opt/boxen/homebrew/Cellar/postgresql/9.3.2-boxen/share/postgresql/contrib/postgis-2.1) | |
$ createdb template_postgis | |
$ createlang plpgsql template_postgis |
Running something like
bundle install --without nothing
should clear the cache, not sure if it is recommended though. This is one seems a lot better
rm .bundle/config
See this issue apparently it was already fix :D
Imagine that you want to erase completely the file under config/secrets.yml
from your commits history
Move to the working directory where the config folder is placed
cd dummy/
Run git filter-branch
, forcing (--force
) Git to process—but not check out (--index-filter
)—the entire history of every branch and tag (--tag-name-filter cat -- --all
), removing the specified file (git rm --cached --ignore-unmatch Rakefile
) and any empty commits generated as a result (--prune-empty
). Note that you need to specify the path to the file you want to remove, not just its filename.
The previous was taken from Github documentation
git filter-branch --force --index-filter \
This guide assumes that you recently run brew upgrade postgresql
and discovered to your dismay that you accidentally bumped from one major version to another: say 9.3.x to 9.4.x. Yes, that is a major version bump in PG land.
First let's check something.
brew info postgresql
The top of what gets printed as a result is the most important: