- download and unzip stable RealtimePi distro
- write the extracted .img to sdcard with Etcher
| patches: | |
| Cheesy Jazz: | |
| 1: FluidR3_GM.sf2:000:007 | |
| 5: FluidR3_GM.sf2:000:032 | |
| 10: FluidR3_GM.sf2:128:033 | |
| midiplayers: | |
| jazz: | |
| file: nonamejazz2.mid | |
| mask: [prog] | |
| tempo: 110 |
| #!/usr/bin/env python3 | |
| from sys import argv | |
| from mido import MidiFile | |
| if len(argv) < 2: | |
| exit("Usage: midifile [filename]") | |
| mid = MidiFile(argv[1]) | |
| channels = set() |
| #include "FastLED.h" | |
| // How many leds in your strip? | |
| #define NUM_LEDS 8 | |
| // Data pin for the LEDs | |
| #define DATA_PIN 17 | |
| // Potentiometer pins | |
| #define POT_0_PIN A0 |
| <?php | |
| add_filter( 'authenticate', 'rkv_disable_username_logins', 20, 3 ); | |
| /** | |
| * Disable admin username and redirect to Google (or another site). | |
| * | |
| * @param object $user The WP_User object. | |
| * @param string $username The entered username. | |
| * @param string $password The entered password. | |
| * |
| #!/bin/bash | |
| # | |
| # Prints all hooks in a dir to a .log file. | |
| # | |
| # Permissions issues: | |
| # run: chmod +x gethooks | |
| # | |
| # gist: https://gist.github.com/ramiabraham/e8356e00130351ddcbe2c62125e6c52a | |
| # | |
| # Easy usage: |
| <?php | |
| /** | |
| * Plugin Name: AffiliateWP - Modify Referral If Virtual Product (WC) | |
| * Plugin URI: https://affiliatewp.com | |
| * Description: Modify referral rate | |
| * Author: AffiliateWP Team | |
| * Author URI: https://affiliatewp.com | |
| * Version: 1.0 | |
| */ | |
| function prefix_affwp_modify_referral_if_virtual( $referral_amount, $affiliate_id, $amount, $reference, $product_id ) { |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name robertnealan.com; | |
| root /var/www/ghost/system/nginx-root; | |
| location / { | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Proto $scheme; |
| <?php | |
| class Beer { | |
| const NAME = 'Beer!'; | |
| public static function printed(){ | |
| echo 'static Beer:NAME = '. static::NAME . '<br />'; | |
| } | |
| } | |
| class Ale extends Beer { |