Lost the root/admin password? You can reset it using the command-line. Recipe adapted from gitlab issue #308.
# start the console
sudo gitlab-rails console
package de.themoep.utils; | |
/* | |
* IconRpMapping utils for mapping of Bukkit materials to WolfieMario's | |
* Custom Text Icons Resourcepack (https://s.moep.tv/iconrp) | |
* Copyright (C) 2018 Max Lee aka Phoenix616 ([email protected]) | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or |
package demo; | |
import java.io.Serializable; | |
import java.security.Principal; | |
import java.util.Collection; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.UUID; |
class A { | |
fun shout() = println("go team A!") | |
} | |
class B { | |
fun shout() = println("go team B!") | |
} | |
interface Shoutable { | |
fun shout() |
# Chrono Trigger Soundtrack - Corridors of Time | |
# plug this into http://sonic-pi.net/ | |
# still needs synth pads | |
# global config | |
use_bpm 112 | |
def play_legato_note(note_value, duration) | |
release_duration = duration |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: <NAME> | |
# Required-Start: $local_fs $network $named $time $syslog | |
# Required-Stop: $local_fs $network $named $time $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: <DESCRIPTION> | |
### END INIT INFO |
# Let it Go - Pi Version | |
use_bpm 34 | |
use_synth :pretty_bell | |
quaver = 0.125 #Eight note | |
crotchet = 0.25 #Quarter note | |
minim = 0.5 #Half note | |
semibreve = 1 #Whole note | |
in_thread(name: :rh) {rightHand} |
Lost the root/admin password? You can reset it using the command-line. Recipe adapted from gitlab issue #308.
# start the console
sudo gitlab-rails console
I was curious about making retro gaming sounds using Sonic Pi. A couple of months and a lot of Googling later, here's the original Mario Bros theme as it was heard on the NES console.
I'm (just about) old enough to remember rushing home from school to play this game at Philip Boucher's house, sitting cross-legged in front of the TV till my feet got pins and needles. Working out how to recreate it for Sonic Pi was a lot of fun!
import sys | |
import os | |
import math | |
import urllib2 | |
import json | |
import time | |
import shutil | |
import uuid | |
from nbt import nbt # pip install nbt |
function rtmp_open() { | |
rtmpdump -r $1 --quiet | /Applications/VLC.app/Contents/MacOS/VLC fd://0 --playlist-autostart | |
} |