Skip to content

Instantly share code, notes, and snippets.

View cameri's full-sized avatar
∞/21M

Ricardo Arturo Cabral Mejía cameri

∞/21M
View GitHub Profile
function aes_cbc_encrypt(data, rawKey) {
const iv = window.crypto.getRandomValues(new Uint8Array(16));
return aes_cbc_key(rawKey).then(function(key) {
return window.crypto.subtle.encrypt(
{
name: "AES-CBC",
//Don't re-use initialization vectors!
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>http://www.menu.com.do/#!/n/3mariachis</loc><lastmod>2014-08-18T14:51:44-04:00</lastmod><changefreq>weekly</changefreq><priority>1</priority><image:image><image:loc>http://res.cloudinary.com/menucomdo/image/upload/t_business_teaser_logo/h6vg2bpps1uxzyflhs1z.jpg</image:loc><image:caption>Logo de 3 Mariachis</image:caption><image:title>3 Mariachis</image:title></image:image><image:image><image:loc>http://res.cloudinary.com/menucomdo/image/upload/t_slideshow_widget_slide/hegg6nkkdlwkes2dvv2v.jpg</image:loc><image:title>Foto de3 Mariachis #1</image:title></image:image><image:image><image:loc>http://res.cloudinary.com/menucomdo/image/upload/t_slideshow_widget_slide/vjhmzv7gz63bcpjs5fc4.jpg</image:loc><image:title>Foto de3 Mariachis #2</image:title></image:image></url><url><loc>http://w
@cameri
cameri / runner.js
Last active August 29, 2015 14:15 — forked from anonymous/runner.js
var system = require('system'), fs=require('fs'), webpage=require('webpage');
var base_url = "http://www2.menu.com.do/#!/";
var base_output = "snapshots/";
var content = fs.read('businesses.json');
var content_obj = JSON.parse(content);
var businesses = content_obj.result;
var pages = [
{ url: '', output: 'index.html' },
{ url: 'intersticial', output: 'intersticial.html' },
{ url: 's/a:*', output: 's/a:_.html' },
@cameri
cameri / config.yml
Last active August 29, 2015 14:11 — forked from anonymous/config.yml
GriefPrevention:
SeaLevelOverrides:
world: -1
world_nether: -1
world_the_end: -1
minijuegoslobby2: -1
peaceful: -1
minijuegoslobby1: -1
minijuegos1: -1
minijuegos2: -1
@cameri
cameri / messages.yml
Last active August 29, 2015 14:11 — forked from anonymous/messages.yml
log:
enabledPlugin: '%TAG%N%name%&a&k + %N%version% is now Enabled. Made by %A%autors%%N.'
disabledPlugin: '%TAG%N%name%&c&k - %N%version% is now Disabled. Made by %A%autors%%N.'
help:
info: '%NDisplays the plugin''s info.'
help: '%NShows a list of commands.'
reload: '%NReloads all configs.'
join: '%NJoins a BlockHunt game.'
leave: '%NLeave a BlockHunt game.'
list: '%NShows a list of available arenas.'
prefix: '&7[&3SG&7] &6'
no-permission: '&cYou don''t have permission to do this!'
cmd-error: '&cError: %0%'
join-unknown-game: '&cThe lobby %0% does not exist!'
join-game-running: '&cThis game is already running!'
join-vehicle: '&cYou can''t join SurvivalGames in a vehicle!'
join-game-full: '&cSorry, this lobby is full!'
join-success: '%0% joined the lobby! &7(&e%1%&7/&e%2%&7)'
fulljoin-kick: '&cI''m sorry, you''ve been kicked to make a free slot for a donator
or a team member!'
log:
enabledPlugin: '%TAG%N%name%&a&k + %N%version% is now Enabled. Made by %A%autors%%N.'
disabledPlugin: '%TAG%N%name%&c&k - %N%version% is now Disabled. Made by %A%autors%%N.'
help:
info: '%NDisplays the plugin''s info.'
help: '%NShows a list of commands.'
reload: '%NReloads all configs.'
join: '%NJoins a BlockHunt game.'
leave: '%NLeave a BlockHunt game.'
list: '%NShows a list of available arenas.'
@cameri
cameri / .xbindkeysrc
Last active August 29, 2015 14:04 — forked from anonymous/.xbindkeysrc
# Play/Pause
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
XF86AudioPlay
# Next
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
XF86AudioNext
# Previous
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"