Skip to content

Instantly share code, notes, and snippets.

View sp0ok3r's full-sized avatar
🎯
Focusing

sp0ok3r sp0ok3r

🎯
Focusing
View GitHub Profile
@danielb7390
danielb7390 / config.rsc
Last active April 20, 2025 18:48
Mikrotik Vodafone IPTV Configuration
# Configuration for Vodafone Portugal IPTV service.
# Tested with VBOX Pro 4k.
# Also tested with a older Cisco Mediaroom, needs some more stuff, check the end of the file.
# Feel free to leave comments with suggestions and/or improvements!
# Credit to the original users that provided the pfsense config found at https://forum.zwame.pt/threads/iptv-net-vodafone-com-pfsense.1049250
# 2023-08-01 20:57:50 by RouterOS 7.10.1
# model = RB5009UPr+S+
# example interfaces using a sfp module
@franklinmoy3
franklinmoy3 / opkg_updater.sh
Last active July 6, 2025 21:40
OpenWRT OPKG update all installed packages
#!/bin/sh
# Example of job definition (as add job using crontab -e):
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
# 30 02 15,28 * * /root/opkg_updater.sh
//-----------------------------------------------------------------------
//
// 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 10, 2025 21:52
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 September 5, 2024 15:01
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 March 22, 2025 03:01
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)
@Informatic
Informatic / README.md
Last active March 26, 2025 00:18
Minimal Tor hidden service on OpenWRT
  1. Format your storage
  2. Configure networking (it's easiest with LuCI, or just take a look at OpenWRT howtos)
  3. Configure /storage by adding proper options in /etc/config/fstab, or, again, just clicking around in LuCI
  4. opkg update && opkg install tor
  5. Copy proper configuration, namely /etc/tor/torrc and /etc/config/uhttpd
  6. Reboot (or /etc/init.d/uhttpd restart && /etc/init.d/tor restart)
  7. Check /etc/tor/hidden_service/hostname for your public .onion address
  8. ...
  9. PROFIT!