- download gpr into
~/bin
- change org and repo in the script
chmod +x ~/bin/gpr
- edit
~/.zshrc
addingexport PATH="$HOME/bin:$PATH"
cd your-cloned-dir
thengpr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<link rel="stylesheet" href="http://github.com/jquery/qunit/raw/master/qunit/qunit.css" type="text/css" media="screen" /> | |
<!-- | |
Problema: Mijões | |
Objetivo dados X mictórios e Y mijões, retorne um array contendo VAZIO e MIJAO. | |
Sendo que os mijões devem ser alocados de forma mais distante possível. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/nginx/sites-available/app | |
upstream app_server { | |
server unix:/tmp/.unicorn_app.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name app.com; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'rake' | |
require 'rake/testtask' | |
require File.expand_path('../lib/mongomapper_id2/version', __FILE__) | |
Rake::TestTask.new(:test) do |test| | |
test.libs << 'lib' << 'test' | |
test.pattern = 'test/{functional,unit}/**/*_test.rb' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######### install influxdb 0.4.0.rc5.src | |
$ brew uninstall influxdb | |
$ rm /usr/local/etc/influxdb.conf | |
$ rm -rf /usr/local/var/influxdb | |
$ brew update | |
$ brew install influxdb --devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project_name: augury | |
project_root: /Users/pablo/workspace/augury | |
windows: | |
- servers: | |
layout: even-vertical | |
panes: | |
- foreman start | |
- cd /Users/pablo/workspace/augury_admin && rails s -p 4000 | |
- cd /Users/pablo/workspace/spree-2-0-stable/sandbox && rails s | |
- cd /Users/pablo/workspace/persistence_endpoint shotgun config.ru -p 9292 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# foreman start -f Procfile_augury | |
mongo: mongod | |
augury: sh -c 'cd /Users/pablo/workspace/augury && foreman start' | |
augury_admin: sh -c 'cd /Users/pablo/workspace/augury_admin && rails s -p 4000' | |
sandbox: sh -c 'cd /Users/pablo/workspace/spree-2-0-stable/sandbox && rails s' | |
spree_endpoint: sh -c 'cd /Users/pablo/workspace/spree_endpoint rails s -p 5000' | |
persistence_endpoint: sh -c 'cd /Users/pablo/workspace/persistence_endpoint shotgun config.ru -p 9292' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var payload = { parameters: [{ name: 'test', 'value': 'abc' }, { name: 'test2', value: 'def' }] }; | |
function updateParameter(name, value){ | |
payload['parameters'].forEach(function(parameter){ | |
if(parameter['name'] === name){ | |
parameter['value'] = value; | |
return false; // break | |
} | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "mandrill", | |
"display": "Mandrill", | |
"description": "Sends transactional emails using Mandrill", | |
"help": "http://guides.spreecommerce.com/integration/endpoints/mandrill", | |
"url": "http://mandrill-stg.spree.mx", | |
"category": "email", | |
"services": [ | |
{ | |
"name": "order_confirmation", |