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
| find . -name "*.php" | xargs sed -i 's/<*.*eval(base64_decode(".*"));*.*>//g' *.php |
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
| function RfcEmpresa(rfcStr) { | |
| var re = /^(([A-Za-z]){3})([0-9]{6})(([A-Z]|[a-z]|[0-9]){3})$/; | |
| var str = rfcStr; | |
| if(re.test(str) ==true){ | |
| return true; | |
| }else{ | |
| 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
| @mixin breakpoint($point){ | |
| @if ($point == lg){ | |
| @media (min-width: 1200px){ @content } | |
| } | |
| @else if ($point == md){ | |
| @media (min-width: 992px) and (max-width: 1199px){ @content } | |
| } | |
| @else if ($point == sm){ |
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
| @mixin breakpoint($point) | |
| @if $point == lg | |
| @media (min-width: 1200px) | |
| @content | |
| @else if $point == md | |
| @media (min-width: 992px) and (max-width: 1199px) | |
| @content | |
| @else if $point == sm |
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
| Instalacion de Minergate: | |
| sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb | |
| Espeficicar E-mail moneda cores: | |
| minergate-cli -user <usuario@email> -bcn 4 |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am juanjosezg on github. | |
| * I am juanjosezg (https://keybase.io/juanjosezg) on keybase. | |
| * I have a public key ASBib1CwRFgUl5PQDafdkTYsZoKTTG1wh1_TGzyn6TqkLwo | |
| To claim this, I am signing this object: |
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
| function struuid($entropy) | |
| { | |
| $s=uniqid("",$entropy); | |
| $num= hexdec(str_replace(".","",(string)$s)); | |
| $index = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; | |
| $base= strlen($index); | |
| $out = ''; | |
| for($t = floor(log10($num) / log10($base)); $t >= 0; $t--) { | |
| $a = floor($num / pow($base,$t)); |
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
| /** | |
| * multipleEventsListeners.js | |
| * Add the capability to attach multiple events to an element, just like jQuery does | |
| * https://gist.github.com/juanbrujo/a1f77db1e6f7cb17b42b | |
| */ | |
| function multipleEventsListeners(elem, events, func) { | |
| var event = events.split(' '); | |
| for (var i = 0; i < event.length; i++) { | |
| elem.addEventListener(event[i], func, 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 | |
| /* Hide Wordpress Notifications */ | |
| function remove_core_updates(){ | |
| global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,); | |
| } | |
| add_filter('pre_site_transient_update_core','remove_core_updates'); // For WordPress | |
| add_filter('pre_site_transient_update_plugins','remove_core_updates'); // For all plugins | |
| add_filter('pre_site_transient_update_themes','remove_core_updates'); // For all themes |
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
| #!/bin/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro (https://gist.github.com/macbleser/9136424) | |
| # | |
| WP_ROOT=${1:-.} # <-- wordpress root directory, current directory by default | |
| [ -e "$WP_ROOT/wp-config.php" ] || { echo "Usage: $0 /path/to/wordpress"; exit; } # <-- detect that the directory is a wordpress root | |
| WP_OWNER=$(id -u $(logname)) # <-- wordpress owner (This assumes the wordpress owner is the logged in user) |
OlderNewer