This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
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
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" | |
} | |
export PS1='\u@\h \[\033[1;33m\]\w\[\033[0m\]$(parse_git_branch)$ ' |
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
background no | |
font Sans:size=10 | |
xftfont Sans:size=10 | |
use_xft yes | |
xftalpha 0.9 | |
update_interval 3.0 | |
total_run_times 0 | |
own_window yes | |
own_window_transparent yes | |
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager |
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 | |
namespace My\Custom\Doctrine2\Function; | |
/** | |
* RandFunction ::= "RAND" "(" ")" | |
*/ | |
class Rand extends FunctionNode | |
{ | |
public function parse(\Doctrine\ORM\Query\Parser $parser) |
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 "> Update Symfony2 by getting the last vendors files and additional deps" | |
date | |
# Testing arguments | |
EXPECTED_ARGS=1 | |
E_BADARGS=65 | |
if [ $# -ne $EXPECTED_ARGS ] | |
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
alias sf2cc='sudo rm -rf app/cache/* && sudo chmod -R 777 app/cache && touch app/cache/index.html && sudo rm -rf app/logs/* && sudo chmod -R 777 app/logs && touch app/logs/index.html' | |
source ~/Dropbox/scripts/git_completion.sh | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[00m\]@\h\[\033[01;34m\] \W$(__git_ps1 "\[\033[01;32m\] <%s>")\[\033[00m\]\$ ' |
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
$date = new DateTime('2012-01-31 00:00:00', new DateTimeZone('UTC')); | |
for ($m = 1; $m <= 3; $m++) { | |
echo $date->format('Y-m-d H:i:s') . PHP_EOL; | |
$date->modify('next month'); | |
} | |
// 2012-01-31 00:00:00 | |
// 2012-03-02 00:00:00 | |
// 2012-04-02 00:00:00 |
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 | |
$items = array( | |
'Nada sobre esta tierra puede detener al hombre que posee la correcta actitud mental para lograr su meta. Nada sobre esta tierra puede ayudar al hombre con la incorrecta actitud mental.', | |
'Un optimista ve oportunidades en toda calamidad. Un pesimista, ve calamidades en toda oportunidad.', | |
'Nunca tendrás una segunda oportunidad para dar una primera impresión.', | |
'Siempre que te pregunten si puedes hacer un trabajo, contesta que sí y ponte enseguida a aprender cómo se hace.', | |
'La confianza en sí mismo es el primer secreto del éxito.', | |
'El triunfo no está en vencer siempre, sino en nunca desanimarse.', | |
'Un mar calmado no hace marineros.', |
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
# Description: The goal of this rule is to force the use of a particular hostname, in preference to other hostnames which may be used to reach the same site. For example, if you wish to force the use of www.example.com instead of example.com, you might use a variant of the following recipe. | |
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] | |
RewriteCond %{HTTP_HOST} !^$ | |
RewriteRule ^/(.*) http://www.example.com/$1 [L,R] |
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
# File: /etc/bash.bashrc | |
# System-wide .bashrc file for interactive bash(1) shells. | |
# To enable the settings / commands in this file for login shells as well, | |
# this file has to be sourced in /etc/profile. | |
# If not running interactively, don't do anything | |
if [[ -z "$PS1" ]]; then |
OlderNewer