Skip to content

Instantly share code, notes, and snippets.

View sp0ok3r's full-sized avatar
🎯
Focusing

sp0ok3r sp0ok3r

🎯
Focusing
View GitHub Profile
//-----------------------------------------------------------------------
//
// Load the script
// script_execute swapmodels
//
// Swap every player and bot models to 'MODEL'. Case insensitive
// ( all lowercase, all uppercase, or correct name )
// script s( MODEL )
//
// Example:
@rufik
rufik / sdm630_to_mqtt.py
Created June 12, 2019 20:14
Python script to read SDM630 power meter and publish to mqtt
#!/usr/bin/python
import minimalmodbus
import paho.mqtt.client as mqtt
import paho.mqtt.publish as pub
# RS485 serial settings
DEVICE="/dev/ttyUSB0"
SLAVE=2
DEBUG=False
FUNCODE=4
@2E0PGS
2E0PGS / gigabyte-usb3-fix.md
Last active May 2, 2024 11:56
GIGABYTE GA-970A-DS3 USB3 fix for Ubuntu x64

Ok so for anyone with "GIGABYTE GA-970A-DS3" I have done alot of testing and research. The best config I found to get USB3 working is this:

Edit Grub config:

sudo nano /etc/default/grub

Edit the line that looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

@jurosh
jurosh / RPi_I2C_driver.py
Created March 4, 2017 11:21 — forked from DenisFromHR/RPi_I2C_driver.py
RaspberryPi I2C LCD Python stuff
# -*- coding: utf-8 -*-
"""
Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic
Made available under GNU GENERAL PUBLIC LICENSE
# Modified Python I2C library for Raspberry Pi
# as found on http://www.recantha.co.uk/blog/?p=4849
# Joined existing 'i2c_lib.py' and 'lcddriver.py' into a single library
# added bits and pieces from various sources
# By DenisFromHR (Denis Pleic)
@Senorsen
Senorsen / csr-caps-lock-osd-mute.reg
Last active June 16, 2024 05:24
CSR Bluetooth 'Caps Lock' OSD notification mute
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Cambridge Silicon Radio\Harmony\Default]
"OSD"=dword:00000000
@FlareNetwork
FlareNetwork / sinusbot.sh
Created December 21, 2016 18:02
[LINUX]Teamspeak 3 MusicBot | SinusBot Installer
apt-get update
apt-get upgrade
apt-get install x11vnc xinit xvfb libxcursor1 ca-certificates bzip2 curl libglib2.0-0 nano
adduser bot
x
x
x
x
x
Y
@Ne3tCode
Ne3tCode / README.MD
Last active May 24, 2024 04:34
Community Pillar

Community tasks

  • View a broadcast
  • Add a game to your wishlist (Ricochet)
  • Rate an item on the Workshop (random TF2 map upvote)
  • Subscribe to an item in the Steam Workshop (subscribe + unsubscribe)
  • Set an avatar on your Community profile (not changed)
  • Set your real name on your Community profile (same as profile name)
  • Set a profile background (not changed)
  • Join a group (Steam Trading Cards Group)
@igrr
igrr / OTATest.ino
Created June 11, 2015 15:24
ESP8266 Arduino OTA example v1
#include <ESP8266WiFi.h>
#include <WiFiUDP.h>
const char* ssid = "..........";
const char* password = "...........";
WiFiUDP listener;
void setup() {
Serial.begin(115200);
@kriegsman
kriegsman / DemoReel100.ino
Last active April 15, 2023 09:22
FastLED "100-line" demo reel
#include "FastLED.h"
// FastLED "100-lines-of-code" demo reel, showing just a few
// of the kinds of animation patterns you can quickly and easily
// compose using FastLED.
//
// This example also shows one easy way to define multiple
// animations patterns and have them automatically rotate.
//
// -Mark Kriegsman, December 2014
@rannmann
rannmann / SteamUserFunctions.php
Last active August 31, 2023 15:03
Convert Steam IDs to and from Community IDs and User IDs
<?php
/* Examples
toSteamID(25490879) // STEAM_0:1:12745439
toSteamID(76561197985756607) // STEAM_0:1:12745439
toSteamID("STEAM_0:1:12745439") // STEAM_0:1:12745439
toUserID(25490879) // 25490879
toUserID(76561197985756607) // 25490879
toUserID("STEAM_0:1:12745439") // 25490879