Skip to content

Instantly share code, notes, and snippets.

@calimaborges
calimaborges / Default (OSX).sublime-keymap
Created August 31, 2012 04:02
Sublime OS X Shortcuts
/*
On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings,
and don't need to be repeated here. Anything listed here will take precedence, however.
*/
[
{ "keys": ["super+shift+n"], "command": "new_window" },
{ "keys": ["super+shift+w"], "command": "close_window" },
{ "keys": ["super+o"], "command": "prompt_open" },
{ "keys": ["super+shift+t"], "command": "reopen_last_file" },
{ "keys": ["super+alt+up"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} },
@calimaborges
calimaborges / gitsvn.md
Last active May 20, 2018 21:09
Atalhos para o Git e Git-Svn

#Configuração Inicial

Primeiro inicie o repositório apontando para o svn

$ git svn init http://svn.endereco.repo.com/ nome_da_pasta_local

depois, baixe o repositório (esse passo demora... muito.)

$ git svn fetch
@calimaborges
calimaborges / environement.md
Created October 22, 2012 18:29
Sugestions to environment variables

Proxy config

http_proxy="http://carlosb@senha:172.19.100.35:8080/"
https_proxy="https://carlosb@senha:172.19.100.35:8080/"
ftp_proxy="ftp://carlosb@senha:172.19.100.35:8080/"

PS1

RESET="\[\017\]"
@calimaborges
calimaborges / rails.md
Created November 10, 2012 21:53
Ruby on Rails commands
rails generate scaffold post name:string title:string content:text
@calimaborges
calimaborges / gist:4496977
Created January 9, 2013 21:09
Rails pt-br inflections
# encoding: utf-8
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
@calimaborges
calimaborges / Gemfile
Created March 18, 2013 17:57
Ruby: Gemfile Example
source 'https://rubygems.org'
gem 'nokogiri'
Configuração Composer Proxy
===========================
export HTTPS_PROXY_REQUEST_FULLURI=false
@calimaborges
calimaborges / vagrant_config.md
Last active December 19, 2015 13:59
Configuring vagrant to redirect 80 to 8080
@calimaborges
calimaborges / Vagrantfile
Last active December 20, 2015 08:59
Vagrant file
Vagrant.configure("2") do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://**/vagrant/boxes/precise32.box"
config.vm.synced_folder ".", "/vagrant", :id => "vagrant-root", :owner => "www-data", :group => "www-data"
config.vm.provision :shell, :path => "vagrant/bootstrap.sh"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network :private_network, ip: "127.0.0.1"
config.vm.hostname = "localhost.projeto"
config.hostsupdater.aliases = ["dev.projeto"]
end
@calimaborges
calimaborges / laravel.md
Last active December 28, 2015 04:09
Laravel helpful snippets

Create project

composer create-project laravel/laravel project-name