Skip to content

Instantly share code, notes, and snippets.

@HimbeersaftLP
HimbeersaftLP / Dockerfile
Last active May 27, 2022 13:25
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
@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 / 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 / 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"

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 / 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(){
@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!