Skip to content

Instantly share code, notes, and snippets.

View pReya's full-sized avatar
🧐
Trying to commit to more open source projects

Moritz Stückler pReya

🧐
Trying to commit to more open source projects
View GitHub Profile
@pReya
pReya / vikunja.svg
Created January 19, 2024 14:55
Vikunja Logo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pReya
pReya / list.txt
Last active September 9, 2023 14:06
VOW Mastodon Matrix Bot
@welcomewerkstatt@norden.social
@zam@chaos.social
@maschinenraum@social.bau-ha.us
<?php
declare(strict_types=1);
namespace OCA\SendWelcomeMail\AppInfo;
use OCP\AppFramework\App;
use OCP\User\Events\UserCreatedEvent;
use OCA\SendWelcomeMail\Listener\UserCreatedEventListener;
use OCP\EventDispatcher\IEventDispatcher;
@pReya
pReya / Configuration.h
Created August 13, 2019 19:08
Welcome Werkstatt 3D Printer Marlin Config
/**
* ************** How to use this firmware - READ THIS, yes actually read this. *********************************
*
* Uncomment means removing the 2 // in front of #define.
*
* FLASHING NOTES:
* 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.
*
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <Adafruit_NeoPixel.h>
#define LEDPIN D4
#define NUMBER_PIXELS 1
Adafruit_NeoPixel led = Adafruit_NeoPixel(NUMBER_PIXELS, LEDPIN, NEO_RGB + NEO_KHZ800);
@pReya
pReya / startPaperspace.html
Last active June 13, 2018 12:18
Start your cloud computer from Paperspace (http://www.paperspace.com/) 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 …
<!DOCTYPE html>
<html>
<head>
<title>Start Paperspace machine</title>
<meta charset="UTF-8">
<style>
body {
background-color: black;
}
#main {
@pReya
pReya / palindrome.js
Last active October 22, 2017 21:10
Simple node.js palindrome checker for the command line.
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
pReya / Wohnungssuche.json
Last active October 6, 2017 08:46
This is a "scenario" for apartment hunting in Hamburg, Germany to be used with the Huginn scraper (https://github.com/huginn/huginn). 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…
{
"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
pReya / tempAlarm.c
Created October 30, 2016 05:06
Arduino Temperature Alarm and bar LED script
#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
pReya / keybase.md
Last active February 14, 2016 12:52
Verification for keybase.io

Keybase proof

I hereby claim:

  • I am preya on github.
  • I am preya (https://keybase.io/preya) on keybase.
  • I have a public key ASC3tNZ2F6Xgz0JUG6S7bXcCCC5THLqCfpqlkORZUewJago

To claim this, I am signing this object: