Skip to content

Instantly share code, notes, and snippets.

Avatar
💻

Martin Refseth HDR

💻
View GitHub Profile
@HDR
HDR / RS3Console.md
Last active October 26, 2022 09:55
Undocumented Runescape Console functionality
View RS3Console.md

Undocumented Console functionality

Command Description Example
<col=ffffff> Changes the color of text <col=ff0000>This text is red
<sprite=1> Prints a sprite in console Looks like it's <sprite=69>
<img=1> Prints a chat badge in console Look at my JMOD crown! <img=1>
<lt> Prints a "less-than" symbol <lt> Hello World
<gt> Prints a "Greater-than" symbol <gt> Hello World
@HDR
HDR / ProjectRed_Segment_Display_Gate.md
Last active September 11, 2022 00:39
ProjectRed Segment Display Gate
View ProjectRed_Segment_Display_Gate.md

ProjectRed Segment Display gates are controlled using Bundled Cables, each bundled cable has 16 colors, in this case the first 8 (1-8) control the right display, while the last 8 (9-16) control the left display.

Right Display

Numbers represent the decimal value for each segment

Digit (DP) G F E D C B A Hex Dec
@HDR
HDR / EmbeddedActivities.md
Last active December 4, 2021 01:21
Discord Embedded Activities List (Embedded Application ID's)
View EmbeddedActivities.md
Activity ID
Awkword 879863881349087252
Betrayal.io 773336526917861400
Checkers in the park 832013003968348200
Chess in the park 832012774040141894
Doodle Crew 878067389634314250
Fishington.io 814288819477020702
Letter Tile 879863686565621790
Poker Night 755827207812677713
@HDR
HDR / argon1.sh
Last active September 19, 2021 10:46
Argon One script (Pi3/Pi4)
View argon1.sh
#!/bin/bash
argon_create_file() {
if [ -f $1 ]; then
sudo rm $1
fi
sudo touch $1
sudo chmod 666 $1
}
View JoeyBootloader.ino
const char joey_firmware[]={
0x00, 0x50, 0x00, 0x20, 0x95, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@HDR
HDR / M5StickDatasheet.ino
Last active January 29, 2020 12:07
The M5StickC Datasheet, hosted on the M5StickC itself (Requires https://github.com/tzapu/WiFiManager/tree/development)
View M5StickDatasheet.ino
#include <M5StickC.h>
#include <WiFi.h>
#include <DNSServer.h>
#include <WiFiClient.h>
#include <WebServer.h>
#include <WiFiManager.h>
#include <ESPmDNS.h>
#include <WiFiClient.h>
WebServer webServer(80);
@HDR
HDR / RPi_I2C_driver.py
Created January 14, 2019 20:17 — forked from DenisFromHR/RPi_I2C_driver.py
RaspberryPi I2C LCD Python stuff
View RPi_I2C_driver.py
# -*- 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)
@HDR
HDR / srgb.py
Last active July 25, 2018 22:22
Blinkt single pixel RGB & brightness
View srgb.py
#!/usr/bin/env python
import sys
import blinkt
def usage():
print("Usage: {} <pixel(0-7)> <r> <g> <b> <brightness(0-10)>".format(sys.argv[0]))
sys.exit(1)
@HDR
HDR / DS_Power_LED_Swap.md
Last active June 1, 2022 07:15
DS Lite | Power LED Swap
View DS_Power_LED_Swap.md

Welcome to a quick and simple guide on replacing the power LED on a DS Lite.

Please note that i am not responsible for any damage caused to your consoles while following this guide, do this at your own risk.

What you will need:

  • A soldering iron (Irons with smaller tips are better)
  • Tweezers
  • Any color of 0603 SMD LEDs with the following specs: "Forward Voltage: 2.2V, Forward Current: 20mA"
  • A solder wick will help in cleaning up some solder.
  • Some patience