Skip to content

Instantly share code, notes, and snippets.

View buzztiaan's full-sized avatar
🍑
peachy

buZz buzztiaan

🍑
peachy
View GitHub Profile
@buzztiaan
buzztiaan / three-phone-stand.scad
Last active October 10, 2022 02:15
Three Phone Stand
// a stand for THREE phones, hahaha
// 2022 buZz nurdspace.nl
// not aiming for flexibility , just a dumb thing
// perfect if you need/want to have a charged and active N900, Droid 4 -and- Pinephone on your desk somewhere
$fa=1; $fs=1;
difference() {
@buzztiaan
buzztiaan / lampclamp.scad
Created September 1, 2022 14:51
Lampclamp for my microphone arm turned webcam holder
// lampclamp
// micarm is 10.4x10mm
// lamp dia is ~5mm and threaded?
// pcb is 47x48mm , 4 mounting holes at 30mm apart squared
// touch is a 15mm diameter circle
$fa=1; $fs=1;
# Melan, 2020
import paho.mqtt.client as mqtt
import os
import coloredlogs
import logging
import json
import re
import threading
import math
@buzztiaan
buzztiaan / webpotato.scad
Created April 4, 2022 14:04
webpotato design
module lcdpanel_22() {
// random ILI9340C 2.2" 240x320 SPI TFT from ebay 253199873513
color("red")
cube([40.6,67.5,2]);
color("grey")
translate([0,6,2])
cube([40.6,55.5,3]);
@buzztiaan
buzztiaan / docamera.sh
Created February 18, 2022 04:05
script to copy files from a PTP or massstorage camera
#!/bin/sh
# docamera.sh , 2004
# buzz@freecode.nl http://buzz.spacedout.nl/
# quite easy script to mount yr camera , download all pictures , upload them to yr gallery and archive them locally
# also implements a 'cache' for offline times ;)
# wrote this for galleryadd.pl ( http://jpmullan.com/galleryupdates/other/galleryadd.pl )
@buzztiaan
buzztiaan / metalshelving-hook-baseballcap.scad
Created January 20, 2022 15:25
metalshelving-hook-baseballcap.scad
// hook for 'keyhole' metal shelving units
// single 'keyhole' grabbed, just for hanging baseball caps
// buZz 2021
difference() {
linear_extrude(6) {
translate([-1,0,0]) square([3,10]);
translate([3,0,0]) square([3,10]);
translate([-1,-1,0]) square([7,3]);
translate([5.5,11,0]) rotate(-90-50) square([3,25]);
@buzztiaan
buzztiaan / telegraf.conf
Created June 22, 2021 11:59
Telegraf config for IdleRPG
[[inputs.http]]
urls = [ "https://idlerpg.lolhosting.net/xml.php?player=buZz" ]
data_format = "xml"
[[inputs.http.xml]]
[inputs.http.xml.tags]
username = "/player/username"
[inputs.http.xml.fields_int]
level = "/player/level"
@buzztiaan
buzztiaan / foreverjune.ino
Created November 22, 2020 14:37
ESP8266 with relay, following sunset-sunrise times of a hardcoded month
#include <math.h>
#define PI 3.1415926
#define ZENITH -.83
#include <NTPClient.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <TimeLib.h>
const char *ssid = "xxx";
@buzztiaan
buzztiaan / speld.py
Created October 24, 2020 20:06
rss roulette function
import feedparser
import random
NewsFeed = feedparser.parse("https://speld.nl/feed/")
numberofentries = len(NewsFeed.entries)
pickedentry = random.randint(0,numberofentries-1)
entry = NewsFeed.entries[pickedentry];
print entry.title
@buzztiaan
buzztiaan / grab_infohashes.pl
Created October 21, 2020 11:06
parse big .torrent directories and only grab infohash and name
#!/usr/bin/perl
use warnings;
use Net::BitTorrent::File;
$directory = "./yts.am_26.01.2019/yts.am_torrents_26.01.2019";
#$directory = "./mac-torrents.com_23.01.2019/torrents";
$directory = "./eztv.io_27.01.2019/eztv.io_torrents_27.01.2019";
$directory = "./nostalgic.is_19.12.2019/nostalgic.is_public_torrents/";