Skip to content

Instantly share code, notes, and snippets.

View crbyxwpzfl's full-sized avatar
🖖
lower decks

f, crbyxwpzfl

🖖
lower decks
View GitHub Profile
# general info - circuitpython test for adafruit feather esp32 S3, requires adafrui libs connection manager, minimqtt, ticks, asyncio, neopixel, settings.toml with wifi cerdentials and mqtt adress, port, topic
# this lifts a servo for your segnificant other on the same mqtt topic and vice versa. please share your tipps about async i clearly dont understand it.. see below
# trubleshoot - yes theres no real logging.. semi usefull self recoverable errors are published to mqtt.. hard faults well.. you no send me tracback.. me no fix shit.. this shit flawless.. ez..
# ok so for the patient to find serial port via 'ls /dev/ttyACM*' then connect to repl via eg. 'screen /dev/tty.ACM0 115200'.. wait for error then copy paste below for me to fix shit..
@crbyxwpzfl
crbyxwpzfl / pymath.md
Last active April 15, 2024 05:14
some python math browser
import sympy 
import numpy 
import scipy

x,y,z = sympy.symbols("x, y, z")
system = [
    sympy.Eq(3*x + 4*y, 7),
 sympy.Eq(5*x + 6*y, 8)
@crbyxwpzfl
crbyxwpzfl / fidnordel.scpt
Last active November 12, 2022 17:16
apple script find a imessage to automate tapback for any message
on run argv
tell application "System Events" to tell process "Messages"
set frontmost to true
tell application "System Events" to keystroke "f" using command down
tell application "System Events" to keystroke item 1 of argv
tell application "System Events" to keystroke return
delay 1
@crbyxwpzfl
crbyxwpzfl / crypto.c
Last active October 24, 2022 17:22
bunch a c scripts jsut tests
#include <stdio.h>
#include <string.h>
void crypto(char *str);
int main() {
char s1[] = "Ingenieur", s2[] = "", s3[] = "x";
crypto(&s1); printf("*%s*\n", s1); //// Ãœbergabe von s1
crypto(&s2); printf("*%s*\n", s2); //// Ãœbergabe von s2
crypto(&s3); printf("*%s*\n", s3); //// Ãœbergabe von s3
return 0; }
@crbyxwpzfl
crbyxwpzfl / parsedata.py
Last active October 24, 2022 16:31
webscraper tries
import time
from msedge.selenium_tools import Edge, EdgeOptions
from bs4 import BeautifulSoup
from selenium import webdriver
import requests
import json
options = EdgeOptions()
options.use_chromium = True
@crbyxwpzfl
crbyxwpzfl / other.xml
Created October 24, 2022 16:27
xml tries
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?mso-application progid="Word.Document"?>
<w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" w:macrosPresent="no" w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve"><o:DocumentProperties></o:DocumentProperties><w:fonts><w:defaultFonts w:ascii="Times New Roman" w:fareast="Times New Roman" w:h-ansi="Times New Roman" w:cs="Times New Roman"/></w:fonts><w:docPr>w:defaultTabStop w:val="720"/></w:docPr><w:body><wx:sect><w:p><w:pPr></w:pPr><w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:h-ansi="Helvetica" w:cs="Helvetica"/><wx:font wx:val="Helvetica"/><w
tell application "Messages" to activate
delay 2
tell application "System Events" to keystroke "f" using command down
tell application "System Events" to keystroke "L"
delay 2
tell application "System Events" to keystroke tab using control down
delay 1
tell application "System Events" to keystroke tab using control down
delay 1
tell application "System Events" to keystroke tab using control down
import sys; sys.path.append('/Users/mini/Downloads/transfer/reps/privates/'); import secs # fetch secrets
from requests.auth import HTTPDigestAuth
import requests
import fileinput
import pathlib # for calling itself for overwrite
import subprocess
import urllib3
import os
from http.server import BaseHTTPRequestHandler, HTTPServer
import time
active = "none"
#I have not a good understanding of what is happening!
class Server(BaseHTTPRequestHandler):
def do_GET(self):
if self.path == '/':
@crbyxwpzfl
crbyxwpzfl / tisch.py
Created February 21, 2022 12:03
python for hb standing desk via optocouplers
#neues problem wenn ontime < compensation dann negative ontime
import time
#import privates variable
import sys
characteristic = sys.argv[3].strip("''")
Heightpath = "/home/pi/spinala/hight.txt"
accbrakecompensation = 0