As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
-- From http://geospatial.nomad-labs.com/2006/12/24/postgis-template-database/ | |
-- $ sudo su postgres | |
-- $ psql template1 | |
\c template1 | |
CREATE DATABASE template_postgis WITH template = template1; | |
-- set the 'datistemplate' record in the 'pg_database' table for | |
-- 'template_postgis' to TRUE indicating its a template | |
UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template_postgis'; |
# Setting up a local solr instance on a mac | |
# install solr with homebrew | |
brew install solr | |
# create the base solr index directory | |
mkdir -p /data/solr | |
# make sure you can write to the solr logs | |
sudo chown -R `whoami` /usr/local/Cellar/solr/ |
# ~/.tmux.conf | |
# | |
# See the following files: | |
# | |
# /opt/local/share/doc/tmux/t-williams.conf | |
# /opt/local/share/doc/tmux/screen-keys.conf | |
# /opt/local/share/doc/tmux/vim-keys.conf | |
# | |
# URLs to read: | |
# |
name = VoxPelli OAuth Test | |
core = 7.x | |
dependencies[] = oauth_common | |
dependencies[] = http_client |
# 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/ |
git log --shortstat --since="2011-9-1" --until="2011-11-15" \ | |
| grep "commit\|Author\|Merge:" \ | |
| awk '{\ | |
if ($1 == "Merge:") {\ | |
merge = 1;\ | |
}\ | |
if ($1 == "commit") {\ | |
merge = 0;\ | |
commit = $2;\ | |
}\ |
git log\ | |
| grep "Merge pull request.*{INSERT STORY ID HERE}" -B 5\ | |
| awk '{\ | |
if ($1=="commit") {\ | |
print system("git diff " $2 "^ " $2);\ | |
}\ | |
}' |
(originally from: http://elytra.net/2011/03/31/hello-world/)
Install nginx+PHP:
brew install https://raw.github.com/ampt/homebrew/php/Library/Formula/php.rb --with-fpm --with-mysql --enable-cgi
brew install nginx