Skip to content

Instantly share code, notes, and snippets.

@HimbeersaftLP
HimbeersaftLP / plugin.yml
Last active November 18, 2016 15:57
AutoMoney for EconomyAPI
name: AutoMoney
main: AutoMoney\main
version: 1.0
api: [2.1.0]
author: HimbeersaftLP
description: Give players money automatically!
@HimbeersaftLP
HimbeersaftLP / movetitle.php
Created April 16, 2017 21:38
Demonstration of the addTitle function in pmmp
<?php
namespace HimbeersaftLP\MoveTitle;
use pocketmine\plugin\PluginBase;
use pocketmine\event\Listener;
use pocketmine\Player;
use pocketmine\event\player\PlayerMoveEvent;
class main extends PluginBase implements Listener{
public function onEnable(){

Keybase proof

I hereby claim:

  • I am HimbeersaftLP on github.
  • I am himbeersaftlp (https://keybase.io/himbeersaftlp) on keybase.
  • I have a public key whose fingerprint is F010 2DE6 8917 0064 483B 4C6B 1A2D C48F 45EF 7989

To claim this, I am signing this object:

@HimbeersaftLP
HimbeersaftLP / instaload.py
Last active January 14, 2020 21:03
Instagram downloader, supports albums, images, videos and albums with images and videos.
import sys, os, json, re
import urllib.request as req
if (len(sys.argv) < 2):
print("Usage: instaload.py <url>")
sys.exit(1)
url = sys.argv[1]
url = re.sub(r"\?.*", "", url)
url = url + "?__a=1"
@HimbeersaftLP
HimbeersaftLP / morse_bruteforce.py
Last active September 8, 2020 23:13
Morse bruteforce
'''
Brute-force a morse code message where the spaces between letters have been lost,
but the spaces between words still exist
Big thanks to this Stackoverflow post: https://stackoverflow.com/a/8375498/
Instructions:
1. Put your "broken" morse message into the morseString variable below
2. Put a newline seperated dictionary into the same folder as this script and name it dict.txt
e.g. from https://github.com/oprogramador/most-common-words-by-language
3. Run the script
@HimbeersaftLP
HimbeersaftLP / deepspeech_test.py
Created March 13, 2021 17:10
Minimal Python DeepSpeech Example
import sys
import deepspeech as ds
# https://deepspeech.readthedocs.io/en/v0.9.3/Python-Examples.html
# English and Chinese: https://github.com/mozilla/DeepSpeech/releases
# German: https://github.com/AASHISHAG/deepspeech-german#trained-models
print("Loading model...")
model = ds.Model("deepspeech-0.9.3-models.pbmm")
@HimbeersaftLP
HimbeersaftLP / Dockerfile
Last active July 21, 2024 11:22
grafana-mqtt-docker
FROM golang:alpine as plugin-builder
RUN apk add --no-cache yarn git
RUN git clone https://github.com/magefile/mage --depth=1
RUN git clone https://github.com/grafana/mqtt-datasource.git --depth=1
RUN cd mage && go run bootstrap.go
RUN cd mqtt-datasource && yarn install && yarn build