Skip to content

Instantly share code, notes, and snippets.

@StefanIGit
StefanIGit / WifiUDP_Remote_Debugger.ino
Created May 17, 2017 19:47
WiFi remote serial monitor
/* This is a WiFi remote serial monitor
* It reads stuff from Serial and sends it by WiFi UDP broadcast to a receiver like
* Url : http://sockettest.sourceforge.net/
*
* I use it on a ESP-01 to install in stuff :)
*
* by Stefan Schmidt 2017-05-17
*/
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
'''
Ride.py test plugin to see the "selected" TCs
issue 1571 https://github.com/robotframework/RIDE/issues/1571
'''
from robotide.pluginapi import Plugin
from robotide.pluginapi import RideTreeSelection, RideSaved
from robotide.publish.messages import RideTestSelectedForRunningChanged
class EventLisener(Plugin):
@StefanIGit
StefanIGit / run.sh
Created September 6, 2018 07:36
I had trouble to start it so this should fix that
#!/bin/bash
source ~/nettest-venv/bin/activate
cd ~/ct-net-tester-master
python ./ct-net-tester.py
if [ $? -gt 0 ]; then
python3 ./ct-net-tester.py
fi
if [ $? -gt 0 ]; then
2018-09-22 19:57:37,317 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2018-09-22 19:57:37,323 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2018-09-22 19:57:37,323 - octoprint.server - INFO - OctoPrint 1.3.9
2018-09-22 19:57:37,329 - octoprint.plugin.core - INFO - 24 plugin(s) registered with the system:
| Action Command Prompt Support (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/action_command_prompt
| Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements
| Automatic Shutdown (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_automaticshutdown
| BLTouch Plugin (0.2.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_BLTouch
| Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/corewizard
| !CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/
@StefanIGit
StefanIGit / importputty.py
Created October 2, 2018 09:26
Quick and dirty import of putty / kitty sessions into RDP-Manager 4.9.72 x64
'''
Quick and dirty import of putty / kitty sessions into RDP-Manager 4.9.72 x64
MAKE a BACKUP before you they this!!!111!1 you have been warned :D
StefaniGit@knallakoff.de 2018-10-02
!!Read the comments, there are some preconditiones, manual tasks, things you have to change in the script.
'''
import uuid
'''
l293d speed ramp test
'''
import time
import socket
server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
server.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)