Skip to content

Instantly share code, notes, and snippets.

View malarisch's full-sized avatar

Mala malarisch

View GitHub Profile
@malarisch
malarisch / ptp4l.conf
Created April 28, 2026 15:23
PTP4L Aes67 Conf
[global]
#
# Default Data Set
#
twoStepFlag 1
clientOnly 0
socket_priority 0
priority1 20
priority2 128
domainNumber 0
@malarisch
malarisch / index.html
Created January 24, 2017 22:55
Bowser Meme Generator
<!DOCTYPE html>
<html>
<body>
<h1>Nintendo Switch Bowser Meme Generator</h1><br>
<form action="v.php" method="post" enctype="multipart/form-data">
Select very bad image:
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Upload Image" name="submit">
</form>
@malarisch
malarisch / sf.txt
Created December 30, 2016 00:39
spaceflow-concept.txt
{
"msg_type": "status",
"author": "bob@example.com",
"payload": {
"text:" obvious,
"last_sig": hash
"media_link": http link //optional
"quoted_tweet_id": siehe unten //optional, wenn da mitteilung an autor pushen
"geo": Cords halt
},
@malarisch
malarisch / makov-twitter-bio.js
Last active October 10, 2016 15:46
generate your twitter bio based on your followers
var twitter = require("twitter");
var client = new twitter({
consumer_key: '',
consumer_secret: '',
access_token_key: '',
access_token_secret: ''
});
var markov = require('markov');
@malarisch
malarisch / discord-markov.js
Last active September 6, 2016 20:34
Q&D Discord Markov Bot
// Quick & Dirty Discord Markov Bot
// Written in Node.js
// install: npm install markov discord.io fs
// then insert a discord bot token and start it (be sure to have write permissions - it will store it's model in a simple text file)
var Discord = require('discord.io');
var bot = new Discord.Client({
token: "",
autorun: true
});
@malarisch
malarisch / howtoletsencrypt.txt
Last active January 2, 2016 22:43
Let's Encrypt einrichten
1. Runterladen: git clone https://github.com/letsencrypt/letsencrypt
2. Ins Verzeichnis: cd letsencrypt
3. Zertifikat generieren: ./letsencrypt-auto certonly -w /var/www/html -d kirschn.de -d www.kirschn.de
Obrige Zeile generiert ein Zertifikat für die Domains www.kirschn.de und kirschn.de, Webroot vom Webserver ist /var/www/html
Let's Encrypt erstellt dort eine Datei, auf welche dann vom Dienst zugegriffen wird.
Besteht Zugriff auf dise Datei von allen mit -d gekennzeichneten Domains lassen sich danach die Zertifikate sowie dier Keychain in
/etc/letsencrypt/live/ur.domain/ finden
4. Nach neunzig Tagen Zertifikat erneuern
4.1 Wieder in das Let's Encrypt Verzeichnis
4.2 ./letsencrypt-auto certonly -w /var/www/html -d kirschn.de -d www.kirschn.de