Skip to content

Instantly share code, notes, and snippets.

View r15ch13's full-sized avatar
👷‍♂️

Richard Kuhnt r15ch13

👷‍♂️
View GitHub Profile
@r15ch13
r15ch13 / activate.php
Created July 6, 2016 17:39
MyBB activation with redirect to configured homepage.
<?php
/**
* MyBB activation with redirect to configured homepage.
*
* Add link to this script to `email_activateaccount`, `email_activateaccount1`,
* `email_activateaccount2` in `inc/languages/<language>/messages.lang.php`
*
* @author Richard Kuhnt <r15ch13+git@gmail.com>
*/
define('MYBB_PATH', 'MyBB');
@r15ch13
r15ch13 / convert-aax-to-m4a.cmd
Last active December 18, 2023 18:45
Convert aax to m4a
@echo off
setlocal enableextensions
chcp 65001
set input=%1
set device=%2
set loglevel=quiet
for %%i in ("%~f1") do set dirname=%%~dpi
for %%i in ("%~f1") do set extension=%%~xi
set tempfile=%dirname%%RANDOM%-temp.m4a
server {
listen 80;
server_name ~^(www\.)?(?<sname>.+?).local.com$;
root /home/vagrant/Code/$sname/public;
index index.html index.htm index.php;
charset utf-8;
location / {
@r15ch13
r15ch13 / hdareaorg.json
Last active April 27, 2016 20:29
HD-Area.org Huginn Scenario
{
"schema_version": 1,
"name": "HDAreaOrg",
"description": "No description provided",
"source_url": false,
"guid": "0d737f7bc26134af7657aa612b9b623f",
"tag_fg_color": "#e9e9e9",
"tag_bg_color": "#2491e4",
"exported_at": "2016-04-27T20:29:37Z",
"agents": [
@r15ch13
r15ch13 / serienjunkies.json
Last active April 27, 2016 20:18
SerienJunkies Huginn Scenario
{
"schema_version": 1,
"name": "SerienJunkies",
"description": "No description provided",
"source_url": false,
"guid": "6e7fc2ab9dcb0fa63217f2c52f4b0685",
"tag_fg_color": "#8a3207",
"tag_bg_color": "#cccccc",
"exported_at": "2016-04-27T20:18:33Z",
"agents": [
<?php
header("Connection: close"); // not sure we need this one
header("Content-Encoding: none");
include ("config.php");
use Carbon\Carbon;
ignore_user_abort( true );
set_time_limit(0);
register_shutdown_function('shutdown');
@r15ch13
r15ch13 / stretching or shrinking audio.md
Last active March 12, 2016 22:32
stretching or shrinking audio

stretching or shrinking audio

Found in on ffmpeg.gusari.org

To convert from 25 fps to 23.976fps (ntsc film)

atempo=0.959040959040959

atempo=1.042708333333333

This is simply the float value of 25025/24000 ( =25/[24000/1001] )

@r15ch13
r15ch13 / teamspeak.sh
Created January 14, 2016 19:13
Teamspeak 3 startscript
#!/bin/sh
### BEGIN INIT INFO
# Provides: teamspeak
# Required-Start: $all
# Required-Stop: $all
# Should-Start: tsdns
# Should-Stop: tsdns
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Teamspeak3 init script
private static string insert(string text, string wort, int pos)
{
if (pos == 0)
return wort + " " + text;
var newText = "";
var wordCounter = 0;
var inserted = false;
for (var i = 0; i < text.Length; i++)
@r15ch13
r15ch13 / config.yml
Created September 21, 2015 16:58
shanaproject + flexget + plex
# set the folder format in your shanaproject.com settings to: {title} ({year})
templates:
global:
magnets: no
thetvdb_lookup: yes
transmission:
enabled: yes
host: 127.0.0.1