Skip to content

Instantly share code, notes, and snippets.

View Rotron's full-sized avatar

Federico Saccà Rotron

View GitHub Profile
select distinct
# uncomment these rows for debugging
# p.ID,
# v.ID,
if( isnull(vm_sku.meta_value), pm_sku.meta_value, vm_sku.meta_value ) as 'sku',
p.post_title,
# need to cast prices to decimal because the datatype is not enforced otherwise
@Rotron
Rotron / chrome-plugins.txt
Created November 9, 2015 23:22 — forked from mike-gusiev/chrome-plugins.txt
Sublime Text 3 Plugins
Switcher
Web developer
ColorZilla
PerfectPixel
Yslow
Page Ruler
Adblock
Joxy
Livereload
LiveStyle
@Rotron
Rotron / onion-gen.js
Created October 26, 2016 11:22 — forked from ttaubert/onion-gen.js
Generating custom .onion names with the WebCrypto API
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
/*
* thirty-two
* https://github.com/chrisumbel/thirty-two
*
@Rotron
Rotron / NewGoogleDorks.md
Created November 7, 2016 14:20 — forked from cmbaughman/NewGoogleDorks.md
New Google Dorks for open directories.

Open Directories


Ebooks examples

Paste this in the search box or use the URL that follows:

+(.MOBI|.CBZ|.CBR|.CBC|.CHM|.EPUB|.FB2|.LIT|.LRF|.ODT|.PDF|.PRC|.PDB|.PML|.RB|.RTF|.TCR) PUT EBOOK NAME HERE intitle:"index of" -inurl:(jsp|pl|php|html|aspx|htm|cf|shtml) -inurl:(listen77|mp3raid|mp3toss|mp3drug|index_of|wallywashis)
@Rotron
Rotron / angular-bootstrap.html
Created July 6, 2017 09:16
AngularJS & Bootstrap page template
<!doctype html>
<html lang="en" ng-app>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Document</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap -->
use_debug false
use_bpm 130
# Our mixer!
master = (ramp *range(0, 1, 0.01))
kick_volume = 1
bass_volume = 1
revbass_volume = 1
snare_volume = 0.5
hats_volume = 0.5
use_bpm 130
samps = "path_to_breaks" ## download from http://www.junglebreaks.co.uk/breaks.html
ch1 = [61,68,78]
ch2 = [61,68,76]
ch3 = [64,71,76]
ch4 = [59,66,75]
ch5 = [59,66,76]
ch6 = [57,64,76]
@Rotron
Rotron / awesome-php.md
Created December 19, 2017 15:01 — forked from mardix/awesome-php.md
Awesome PHP Libraries
@Rotron
Rotron / playwav.c
Created May 3, 2018 10:08 — forked from armornick/playwav.c
Play a sound with SDL2 (no SDL_Mixer)
#include <SDL2/SDL.h>
#define MUS_PATH "Roland-GR-1-Trumpet-C5.wav"
// prototype for our audio callback
// see the implementation for more information
void my_audio_callback(void *userdata, Uint8 *stream, int len);
// variable declarations
static Uint8 *audio_pos; // global pointer to the audio buffer to be played
@Rotron
Rotron / android_instructions_23.md
Created October 26, 2018 12:49 — forked from agrcrobles/android_instructions_29.md
Setup Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew: