Skip to content

Instantly share code, notes, and snippets.

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

Richard Kuhnt r15ch13

👷‍♂️
View GitHub Profile
@r15ch13
r15ch13 / smsc.md
Created April 16, 2013 14:16
How to change the "Short Message Service Centre" (SMSC)

In the event that you receive text messages, but cannot send.

Type *#*#4636#*#* in to your phone, go to Phone information and scroll down to SMSC.

Use Refresh to get the currently configured SMSC or Update to change it.

@r15ch13
r15ch13 / isbn_checksum.php
Last active December 16, 2015 15:59
Calculate ISBN checksum
<?php
/**
* Calculate ISBN checksum
*
* @param string $isbn
* @return integer
*/
function isbn_checksum($isbn) {
$sum = 0; $isbn = str_split(preg_replace('/[^\d]/', '', $isbn));
foreach($isbn as $key => $z) {
@r15ch13
r15ch13 / update-pushbullet.php
Last active August 29, 2015 14:08
Push a list with available linux updates to your Pusbullet Devices
<?php
$accessToken = "ACCESS TOKEN";
$title = "NIFTY TITLE";
$updatesText = exec("aptitude -F'%p - %V > %v' --disable-columns search '~U'", $updatesList);
if(count($updatesList) == 0) {
exit("No updates available.");
} else {
echo $updatesText;
#!/bin/bash
wget "https://plex.tv/downloads?channel=plexpass" -O - | grep -o "http.*plexmediaserver_.*-.*amd64\.deb" | wget -i - -O ./plexmediaserver_update_amd64.deb
dpkg -i ./plexmediaserver_update_amd64.deb
#!/bin/bash
# apt-get install python-crypto python-imaging python-openssl python-pycurl gocr python-django openssl unrar rhino tesseract-ocr tesseract-ocr-deu tesseract-ocr-deu-frak tesseract-ocr-eng
wget "http://get.pyload.org/get/ubuntu-cli/" -O ./pyload-cli-update-all.deb
dpkg -i ./pyload-cli-update-all.deb
@r15ch13
r15ch13 / minecraft-bukki.sh
Created January 11, 2015 00:17
init.d script for bukkit
#!/bin/bash
# /etc/init.d/minecraft
# version 0.3.6 2011-10-17 (YYYY-MM-DD)
### BEGIN INIT INFO
# Provides: minecraft
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
@r15ch13
r15ch13 / nickelodeon-downloader.py
Last active May 28, 2019 17:41
Nickelodeon Downloader
#!/usr/bin/env python3
#
# Downloads episodes from nick.com
# based on http://www.reddit.com/r/TheLastAirbender/comments/28peyk/script_to_download_all_the_episodes_from_nick/
import subprocess
import sys
import os
from ntpath import basename
from urllib import request
using System;
using System.Text.RegularExpressions;
namespace YourNamespace
{
public static class StringExtensions
{
public static string Capitalize(this String s)
{
if (!String.IsNullOrEmpty(s))
@r15ch13
r15ch13 / plexpass-update.py
Last active January 24, 2016 21:10
Plex Pass Updatescript
#!/usr/bin/env python3
# Updates Plex Media Server with Plex Pass
# Licensed under the MIT license - http://r15ch13.mit-license.org/
from bs4 import BeautifulSoup
import requests
import sys
import subprocess
@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