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 | |
# | |
# Pomodoro script. | |
# | |
# Displays an alert after 25 minutes job / 5 minutes pause. | |
# | |
# Shell script for a simple Pomodoro technic | |
# | |
# Author: Bruno Almeida <[email protected]> | |
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
# ~/.gitconfig | |
[core] | |
fileMode = false | |
[user] | |
email = [email protected] | |
name = Bruno Almeida | |
[alias] | |
lg = log --pretty=format:'%Cblue%h | %Cred%ad | %C(yellow)%an | %Cgreen%d %Creset%s' --date=short | |
st = !git lg -10 && git branch && git status | |
pom = push origin master |
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
Index: /home/wwwbruno/translation_fest/doc-pt_BR/pt_BR/appendices/migration51.xml | |
=================================================================== | |
--- /home/wwwbruno/translation_fest/doc-pt_BR/pt_BR/appendices/migration51.xml (revision 0) | |
+++ /home/wwwbruno/translation_fest/doc-pt_BR/pt_BR/appendices/migration51.xml (working copy) | |
@@ -0,0 +1,766 @@ | |
+<?xml version="1.0" encoding="utf-8"?> | |
+<!-- EN-Revision: 334587 Maintainer: none Status: ready --><!-- CREDITS: [email protected], [email protected] --> | |
+<appendix xml:id="migration51" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
+ <title>Migrando do PHP 5.0.x para PHP 5.1.x</title> | |
+ <para> |
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
# Atualizar meu repositório local | |
git pull origin master | |
# Faço as alterações necessárias no código | |
# Verifico o que foi modificado | |
git status (opcional) | |
# Caso precise de mais detalhes | |
git diff (opcional) |
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
# Reference https://github.com/globalize/globalize | |
# To create new records when using Globalize | |
# to enter in rails console | |
rails c | |
# set the locale to English | |
I18n.locale = :en | |
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
# Get doctrine entity manager | |
$em = $this->getDoctrine()->getManager(); | |
# Get repository | |
$user = $em->getRepository('AcmeAdminBundle:User')->find($id); | |
# Get logged user | |
$this->getUser(); |
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
RewriteEngine on | |
# Redirecionamento para o subdominio de producao | |
RewriteCond %{HTTP_HOST} ^site.com.br$ [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.site.com.br$ | |
RewriteCond %{REQUEST_URI} !site/ | |
RewriteRule (.*) site/$1 [L] | |
# Redirecionamento para o subdominio de teste | |
RewriteCond %{HTTP_HOST} ^teste.site.com.br$ |
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
# Cache, logs, sessions and spool | |
/app/cache/* | |
/app/logs/* | |
/app/sessions/* | |
/app/spool/* | |
!app/cache/.gitkeep | |
!app/logs/.gitkeep | |
!app/sessions/.gitkeep | |
!app/spool/.gitkeep |
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 npm | |
sudo apt-get install npm | |
# install gulp globally | |
sudo npm install -g gulp | |
# go to your project directory | |
cd project | |
# install gulp dependencies for your dev project |
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
# installing on Ubuntu | |
sudo add-apt-repository ppa:git-core/ppa | |
apt-get update | |
sudo apt-get install git-svn |