Skip to content

Instantly share code, notes, and snippets.

Trying to commit to more open source projects

Moritz Stückler pReya

Trying to commit to more open source projects
View GitHub Profile
View Application.php
namespace OCA\SendWelcomeMail\AppInfo;
use OCP\AppFramework\App;
use OCP\User\Events\UserCreatedEvent;
use OCA\SendWelcomeMail\Listener\UserCreatedEventListener;
use OCP\EventDispatcher\IEventDispatcher;
pReya / Configuration.h
Created Aug 13, 2019
Welcome Werkstatt 3D Printer Marlin Config
View Configuration.h
* ************** How to use this firmware - READ THIS, yes actually read this. *********************************
* Uncomment means removing the 2 // in front of #define.
* ALL slicers (Simplify3D, Cura, Slic3r, etc) or anything else that connects to the COM port must be CLOSED for the firmware to be flash.
* If anything is connected to the COM port when flashing it will fail, typically "access denied" is listed in the error section of the Arduino IDE.
* You MUST use the Included Arduino IDE to flash the firmware if on Windows and if you are on a Mac or Linux follow the guide in our knowledgebase to setup your IDE to work with the firmware.
View ESP8266MQTTNeopixel.ino
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <Adafruit_NeoPixel.h>
#define LEDPIN D4
Adafruit_NeoPixel led = Adafruit_NeoPixel(NUMBER_PIXELS, LEDPIN, NEO_RGB + NEO_KHZ800);
pReya / startPaperspace.html
Last active Jun 13, 2018
Start your cloud computer from Paperspace ( using a regular web browser (e.g. on a Fire TV stick). Just upload this to your server or webspace and then call it from your desired browser. You need to add the machine id and the api-key to the URL (e.g. startPaperspace.html?machine=ab1c2n345&key=1234567890). Save this to …
View startPaperspace.html
<!DOCTYPE html>
<title>Start Paperspace machine</title>
<meta charset="UTF-8">
body {
background-color: black;
#main {
pReya / palindrome.js
Last active Oct 22, 2017
Simple node.js palindrome checker for the command line.
View palindrome.js
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
rl.question('Please enter potential palindrome: ', checkForPalindrome);
function checkForPalindrome(str)
pReya / Wohnungssuche.json
Last active Oct 6, 2017
This is a "scenario" for apartment hunting in Hamburg, Germany to be used with the Huginn scraper ( It includes a list of about 20 building companies who publish new rental ads on their own website, as well as an agent for the two big real estate platforms Immobilienscout and Immowelt. However it is customised t…
View Wohnungssuche.json
"schema_version": 1,
"name": "wohnungssuche",
"description": "This scenario is for apartment search in Hamburg, Germany. It has several event sources from building companies who have their own property ads on their website.",
"source_url": false,
"guid": "b157be4c66ae64b92ae4725fee342313",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "home",
"exported_at": "2017-10-06T07:33:37Z",
pReya / tempAlarm.c
Created Oct 30, 2016
Arduino Temperature Alarm and bar LED script
View tempAlarm.c
#include <math.h>
float tempRaw, tempAvg;
uint8_t tempPin = 7;
uint8_t speakerPin = 2;
uint8_t barLedPins[] = { 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 };
uint8_t barLedPinsLength = sizeof(barLedPins) / sizeof(barLedPins[0]);
uint8_t lowTempLimit = 24;
pReya /
Last active Feb 14, 2016
Verification for

Keybase proof

I hereby claim:

  • I am preya on github.
  • I am preya ( on keybase.
  • I have a public key ASC3tNZ2F6Xgz0JUG6S7bXcCCC5THLqCfpqlkORZUewJago

To claim this, I am signing this object: