Skip to content

Instantly share code, notes, and snippets.

View BoKKeR's full-sized avatar

Norbert Takács BoKKeR

View GitHub Profile
@BoKKeR
BoKKeR / aws.js
Last active July 22, 2023 13:54
Tampermonkey/Greasemonkey script to change AWS ID and navbar color based on the aws user id.
// ==UserScript==
// @name Rewrite user id to stage/prod in AWS
// @match https://*.console.aws.amazon.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
@BoKKeR
BoKKeR / blender.py
Created December 3, 2017 17:48
Python script that visualises the L3G4200D gyro sensor
import threading
import time
import bpy
import serial
import re
import sys
arduino = serial.Serial('COM4', 115200, timeout=.1)
class RotateCubeThread (threading.Thread):
@BoKKeR
BoKKeR / L3G4200D.ino
Created December 3, 2017 17:41
L3G4200D gyro arduino script
//
// This is a simple program for testing the STMicroelectrics 3-axis gyroscope sold by Parallax.
//
// If you are new to the sensor you'll find all you need here. Just rip out what you don't want to save RAM.
//
// If you are using an Arduino Uno R3 like me, connect the SCL line to pin A5. Connect the SDA line to pin A4.
// I don't know anything about the other boards. I'm new to Arduino.
//
// The sample code at Parallax is incorrect in a couple of places. This code follows the application notes from STM. In
@BoKKeR
BoKKeR / button.py
Created July 20, 2016 19:05
basic button
API = "enter octoprint api key"
import RPi.GPIO as GPIO
import time
import json
import requests
headers = {'X-Api-Key': API,"Content-Type":"application/json"}