Skip to content

Instantly share code, notes, and snippets.

@hf02
hf02 / connecting-neocities-to-discord.md
Last active April 12, 2025 19:31
Connecting a Neocities website to your Discord profile

Connecting a Neocities website to your Discord profile

This works for a Neocities website without a custom domain.

This should also work for a site with a custom domain, but I haven't tested it.

In the end, you'll get something like this:

image

@pedrobrantes
pedrobrantes / Easter_functions_and_graph_analysis.R
Created April 12, 2025 19:29
This Gist contains an R script that calculates and visualizes the date of Easter over a range of years (2000-2025). It uses the timeDate package to determine Easter dates, dplyr for data manipulation, ggplot2 for creating trend lines, frequency bar charts, and box plots, lubridate for date manipulation, and forecast for analyzing the autocorrela…
# Functions to calculate easter day
library(timeDate)
calculate_easter <- function(year) {
easter_date <- as.Date(Easter(year))
return(easter_date)
}
desired_year <- 2025
easter_date_year <- calculate_easter(desired_year)
@sraibagiwith100x
sraibagiwith100x / gist:e47522628529a1984f9e82e897ee8b18
Created April 11, 2025 21:08
LLM deciphering serialized proto
# Now import the generated module
from person_pb2 import Person
# syntax = "proto3";
# package example;
# message Person {
# string name = 1;
@Popov72
Popov72 / using_pix_with_canary.md
Last active April 12, 2025 19:25
Using PIX with Chrome

In PIX, Select Target Process => Launch Win32 and set the following 2 entries according to where Canary / Chrome is installed:

  • Path to executable: "C:\Users\alexis\AppData\Local\Google\Chrome SxS\Application\chrome.exe"
  • Working directory: "C:\Users\alexis\AppData\Local\Google\Chrome SxS\Application"
  • Command line arguments: --disable-gpu-sandbox --disable-direct-composition
    • You can add those arguments if you want to be able to see the disassembled shader code: --enable-dawn-features=emit_hlsl_debug_symbols,disable_symbol_renaming
  • Launch Suspended unchecked, Launch for GPU capture and Force D3D11On12 checked

Then click on "Launch".

Important: you should close all your Canary / Chrome windows/processes before clicking on the "Launch" button!

@subrezon
subrezon / openwrt-on-proxmox.md
Last active April 12, 2025 19:24
How to set up an OpenWRT VM in Proxmox
  1. Go to OpenWRT release page, select the latest release stable release, then targets -> x86 -> 64. Right-click generic-ext4-combined.img.gz (not the "efi"!) and copy the link.

  2. On the Proxmox host, download the archive and unpack it:

wget *paste link here*
gunzip openwrt-*.img.gz
  1. Resize the image to be the size you want your VM's disk to be (example with 8 GiB):
@ncase
ncase / hello.html
Last active April 12, 2025 19:19
herp derp
<h3>THIS IS A WOBSITE</h3>
<br>
Hello World!
@ipenywis
ipenywis / cursor-memory-bank-rules.md
Last active April 12, 2025 19:16
Cursor Memory Bank

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD
@infosecn1nja
infosecn1nja / eternalblue7_exploit.py
Created July 22, 2017 01:04 — forked from worawit/eternalblue7_exploit.py
Eternalblue exploit for Windows 7/2008
#!/usr/bin/python
# This file has no update anymore. Please see https://github.com/worawit/MS17-010
from impacket import smb
from struct import pack
import sys
import socket
'''
EternalBlue exploit for Windows 7/2008 by sleepya
The exploit might FAIL and CRASH a target system (depended on what is overwritten)
{-# LANGUAGE TemplateHaskell #-}
module Mayhem.Engine.Effects.GHCi where
import Cleff
import Data.Dynamic
import Data.Typeable
import Control.Concurrent.MVar
import UnliftIO.Exception
import Mayhem.Engine.Effects.Expansion
@archagon
archagon / gdc-downloader.py
Last active April 12, 2025 19:12
A quick and dirty script to download GDC Vault videos.
# GDC Vault videos can't be watched on mobile devices and this is a very sad thing indeed!
# (Note: this has changed for GDC2013, which lets you watch raw MP4 streams. Kudos!)
# This script is designed to circumvent this by downloading the lecture and slideshow
# videos which can then be re-encoded into whatever format you wish. Obviously, you
# won't be able to do this without access to the Vault. This is strictly for the
# convenience of legitimate Vault users!
# Note: this code is rather flimsy and was written as fast as possible for my own personal use.
# The code only works for the most recent GDC Vault videos, since they all use the same player
# format. If the XML format used to run the player is changed (as it has in the past), the code