This file contains hidden or 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
# ~$> gedit ~/.bashrc | |
# Add this lines | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "; | |
# Remember, only one 'export' line, separated by ';' |
This file contains hidden or 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
"http://unicode.org/emoji/charts/full-emoji-list.html" | |
//http://unicodey.com/ | |
//Navigator Console | |
//$0 === table | |
//Quitar fila titulo | |
$0.children[0].children[0].remove(); | |
//Quitar dos primeras columnas |
This file contains hidden or 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
.landing-bloque-contadores.parallax_section_holder { | |
padding: 10em 0; | |
background-size: cover; | |
} | |
.landing-bloque-contadores .q_counter_holder { | |
opacity: 1; | |
text-shadow: 0 0 12px rgb(0, 0, 0); | |
} |
This file contains hidden or 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
echo -n "Carlos Oropesa" | md5sum | |
#5ccb46f23b0693211f76c3d325a9720b |
This file contains hidden or 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
/** | |
* @param {number} numero | |
* @returns {String} | |
*/ | |
var number2commaString = function( number ) { | |
var parts = number.toString().split( "." ); | |
parts[ 0 ] = parts[ 0 ].replace( /\B(?=(\d{3})+(?!\d))/g, "," ); | |
return parts.join("."); | |
}; |
This file contains hidden or 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
var num2camelString = function( numero ) { | |
var string = numero + ""; // 4 23 132 30 | |
if( string.length === 1 ) { // t f f f | |
string = "0" + string; // 04 23 132 30 | |
} | |
string = string.substring( 0, string.length - 1 ) // 0 2 13 3 | |
+ "-" // - - - - | |
+ string.substr( string.length - 1, 1 ); // 4 3 2 0 | |
if( string.lastIndexOf( "0" ) === string.length -1 ) { |
This file contains hidden or 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 | |
/** | |
* Hide adminbar in frontpage | |
*/ | |
add_filter( 'show_admin_bar', function() { return false; } ); |
This file contains hidden or 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 | |
function alisios_add_user_column_registered( $columns ) { | |
$columns[ 'user_registered' ] = 'Register Date'; | |
return $columns; | |
} | |
add_filter( 'manage_users_columns', 'alisios_add_user_column_registered' ); | |
function alisios_add_user_sortable_column_registered( $columns ) { | |
$columns[ 'user_registered' ] = 'user_registered'; | |
return $columns; |
This file contains hidden or 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. Install SSH2 and PHP mod, and restart Apache2 | |
|- #> sudo apt-get install libssh2-1-dev libssh2-php | |
\- #> sudo service apache2 restart | |
2. Generate RSA keys, Create authorized_keys, and Update permissions | |
|- #> ssh-keygen | |
|- TIP: do not save them in your web directory | |
|- #> cd .ssh/ | |
|- #> cp id_rsa.pub authorized_keys | |
|- #> cd ../ | |
|- #> chmod 775 .ssh |
This file contains hidden or 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. Make PHPStorm ignore .idea folder | |
|- File > Settings > Version Control > Ignored Files > Add(+) > Ignored all files under > select directory .idea | |
2. Clean PhpStorm Git Cache | |
|- Open Terminal (Left+Down) #> "C:\Program Files (x86)\Git\cmd\git.exe" rm -f --cached .idea/* | |
or | |
|- Open Terminal (Left+Down) #> git rm -f --cached .idea/* | |
3. Reboot PhpStorm | |
\- Done! |