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 | |
set -e | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 filename.pfx" >&2 | |
exit 1; | |
fi | |
if [ ! -e "$1" ]; then | |
echo "File not found: $1" >&2 |
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 | |
# | |
# Usage: | |
# ./make_certs.sh test.example.com | |
# | |
# The required input to make_certs.sh is the path to your pfx file without the .pfx prefix | |
# | |
# test.example.com.key | |
# test.example.com.crt (includes ca-certs) |
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
---------------------------------------------- | |
> Show Conflits: | |
git config --global alias.conflicts "diff --name-only --diff-filter=U" | |
Use: git conflicts | |
---------------------------------------------- | |
> Log | |
git config --global alias.l "log -n 20 --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" |
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
1. instala docker | |
2. instala zsh através do babun: | |
(configuração de tema) https://www.sorendam.com/take-control-of-your-console-in-windows-with-babun-oh-my-zsh-and-powerline-fonts/ | |
3. instala git flow | |
https://github.com/nvie/gitflow/wiki/Windows | |
4. adiciona plugin git-flow no zsh | |
5. instala ruby + rubygems | |
https://github.com/babun/babun/issues/93#issuecomment-160977126 |
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
<?php | |
public function & get($property, array $conditions = array()) | |
{ | |
if (array_key_exists($property . '_en', static::properties())) { | |
return parent::get($property . '_en', $conditions); | |
} else { | |
return parent::get($property, $conditions); | |
} | |
} |
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
############################################################################################################## | |
# Configuração bash | |
# | |
# Adaptadas de: | |
# https://plus.google.com/u/0/114896277363762090056/posts/SiB4um66RtL | |
# http://pastebin.com/MzYSzLGy | |
############################################################################################################## | |
if [ -f /etc/bash_completion ]; then |
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
<? | |
/** | |
Transforms: | |
$data = array( | |
'user' => array( | |
'email' => 'user@example.com', | |
'name' => 'Super User', | |
'address' => array( | |
'billing' => 'Street 1', | |
'delivery' => 'Street 2' |
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 | |
# FuelPHP Install Script | |
# | |
# @author Kenji Suzuki https://github.com/kenjis | |
# @copyright 2011 Kenji Suzuki | |
# @license MIT License http://www.opensource.org/licenses/mit-license.php | |
if [ $# -lt 2 ]; then | |
echo "Install FuelPHP and Create Application Repository" |