Skip to content

Instantly share code, notes, and snippets.

View surepy's full-sized avatar
🛏️
Zzz

surepy

🛏️
Zzz
  • home
  • bed
  • 12:50 (UTC -07:00)
View GitHub Profile
@Nexarian
Nexarian / xrdp-nvidia-setup.sh
Last active August 13, 2025 15:02
Setup for XRDP using Nvidia Acceleration
#!/usr/bin/env bash
set -e
cd ~
sudo -v
# Make sure system is in a good, updated, clean, state.
sudo apt-get -y update

youtube together scotch tape tutorial

alt text enablbe developer mode

alt text ctrl+shift+i to open devtools (ignore the 8 warnings printed in the console)

alt text go to the network tab (if its messy you can click the clear button which is to the right of the big red record button)

@victornpb
victornpb / deleteDiscordMessages.js
Last active September 4, 2025 14:43
Delete all your messages from DM or Channel in Discord
/*
This file is now hosted here:
https://github.com/victornpb/undiscord
*/
@matthewzring
matthewzring / markdown-text-101.md
Last active October 25, 2025 05:45
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active October 18, 2025 10:01
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@hibiyasleep
hibiyasleep / GodDrinksJava.java
Last active October 5, 2025 04:21
world.execute(me);
package goddrinksjava;
/**
* The program GodDrinksJava implements an application that
* creates an empty simulated world with no meaning or purpose.
*
* @author momocashew
* @lyrics hibiyasleep
*/
@bcahue
bcahue / ConvertNewSteamID.markdown
Created September 24, 2014 15:04
Converting New SteamID Formats in Python

Seeing how SteamIDs have changed recently, I thought I'd write a Gist to help others (including myself!) decypher how to convert these from one format to the other in Python. First, let's go over basics to convert a 64bit CommunityID into a SteamID:

steamid64ident = 76561197960265728

def commid_to_steamid(commid):
  steamid = []
  steamid.append('STEAM_0:')
  steamidacct = int(commid) - steamid64ident