View bash_utils.sh
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
# ---------------------------------------------------------------------------------------------------- | |
# Renames all files in a directory removing the inital 3 digits from its filename | |
# "001 Potato.sh" => "Potato.sh" | |
# "002-Carrot.sh" => "Carrot.sh" | |
# "003.Letuce.sh" => "Letuce.sh" | |
# "1003. Tomato.sh" => "Tomato.sh" | |
# | |
# Source: https://stackoverflow.com/a/28305274 | |
# MV is a DESTRUCTIVE command. Check if the mv command is correct. |
View angular_header.js
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
# app/application.js | |
# require_tree app/controllers | |
angular.module('myApp').controller('fooCtrl', ctrlImpl); | |
function ctrlImpl () { | |
"use strict"; | |
var ctrl = myApp.ctrlHeader; | |
View gist:9a3e06e95e5b8c220f86
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
Verifying that +acdesouza is my blockchain ID. https://onename.com/acdesouza |
View brew install
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
brew install openssl bash bash-completion brew-cask git heroku-toolbelt imagemagick node mysql postgresql |
View .slate
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
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
# Resize Bindings | |
bind m:ctrl;alt corner top-left resize:screenSizeX;screenSizeY | |
# Push Bindings | |
bind right:ctrl;alt push right bar-resize:screenSizeX/3 | |
bind left:ctrl;alt push left bar-resize:screenSizeX/3 |
View _config_deploy.rb
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 'bundler/capistrano' | |
set :application, "<nome_projeto>" | |
set :scm, :git | |
set :repository, 'git://<url_do_projeto>' | |
set :user, '<user_allowed_to_connect_with_ssh_on_servers>' | |
set :domain, '<URL_do_servidor>' | |
# Using Vagrant? See also: https://gist.github.com/3490513 |
View bootstrap
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
#!/bin/bash | |
clear | |
echo "------------------------------------------------------------------------------------------------------" | |
echo "Fresh install development enviroment" | |
echo "Check if you need export http_proxy, before running ;)" | |
echo "------------------------------------------------------------------------------------------------------" | |
############################################################################################################# | |
# Install rvm | |
############################################################################################################# | |
if ! type rvm >/dev/null 2>&1; then |
View gist:1226564
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
Sete Atitudes para Hackear a Indústria de Software | |
By Klaus Wuestefeld | |
1) Torne-se excelente. | |
Seja realmente bom em alguma coisa. Não fique só choramingando ou | |
querendo progredir às custas dos outros. Não pense q pq vc sentou 4 | |
anos numa faculdade ouvindo um professor falar sobre software q vc | |
sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo |
View .bash_profile
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
export LC_CTYPE="utf-8" | |
export EDITOR=vim | |
# Turn terminal colors on | |
export CLICOLOR=1 | |
################################################################################ | |
# Bash PS1 | |
################################################################################ |
View openmailto.sh
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
#!/bin/sh | |
google-chrome -remote "openurl(https://mail.google.com/mail?view=cm&tf=0&to=` | |
echo $1 | sed 's/mailto://'`,new-tab)" |