Skip to content

Instantly share code, notes, and snippets.

View lunaisnotaboy's full-sized avatar
🏳️‍⚧️
nya

Luna Nova lunaisnotaboy

🏳️‍⚧️
nya
View GitHub Profile
# Add the folder you choose in your config/application.rb
# example:
# config.autoload_paths << Rails.root.join('app/solargraph')
gen_directory = Rails.root.join("app", "solargraph")
# run the script as a rails runner:
# bundle exec rails r ./bin/generate_solar_models.rb
type_translation = {
decimal: "Decimal",
@mkody
mkody / backup.sh
Last active May 13, 2022 11:50
im-in.space's backup script
#!/bin/bash
# Welcome to im-in.space's backup script!
PIDFILE="/tmp/backup.pid"
BUCKETNAME="[your bucket name here]"
if [ -f "$PIDFILE" ]; then
echo "Already running"
exit 1
fi
@disco0
disco0 / opera.d.ts
Last active September 20, 2025 18:50
TypeScript - window.opera typings
// Type definitions for Opera Browser `opera` global object
// Because why not
// Definitions by: disk0 <https://github.com/disco0>
// This definition is based on various external documentation pages online
// https://web.archive.org/save/http://www.howtocreate.co.uk/operaStuff/operaObject.html
/**
* Opera browser specific global `opera` object.
*/
declare interface OperaObject
@FusRoDah061
FusRoDah061 / dump-uwp-apps.md
Created April 3, 2021 01:24
Dump UWP apps files

Overview

Most apps and games downloaded from Microsoft Store on Windows 10 are placed on a special folder (WindowsApps), which the user probably won't have access.

That said, in case you want to use mods in a game, you'll likely need access to the it's files. Even though Microsoft introduced the option to enable mods, not all developers have adopted this yet (if some ever will). This document presents an alternative to get access to the files you may need.

This is basically a copy-paste of u/WiredRawdy's reddit post.

Requirements

The Freenode resignation FAQ, or: "what the fuck is going on?"

IMPORTANT NOTE:

It's come to my attention that some people have been spamming issue trackers with a link to this gist. While it's a good idea to inform people of the situation in principle, please do not do this. By all means spread the word in the communities that you are a part of, after verifying that they are not aware yet, but unsolicited spam is not helpful. It will just frustrate people.

Update 3 (May 24, 2021)

A number of things have happened since the last update.

@dansalvato
dansalvato / SMBDIS.ASM
Last active June 26, 2023 14:55 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@motorailgun
motorailgun / idea.md
Last active July 22, 2025 15:29
Installing Windows and Linux into the same partition

Installing Windows and Linux into the same partition

But WHY?

There was a reddit post about installing Arch on NTFS3 partition. Since Windows and Linux doesn't have directories with same names under the /(C:\), I thought it's possible, and turned out it was actually possible.
If you are not familiar to Linux, for example you've searched on Google "how to dualboot Linux and Windos" or brbrbr... you mustn't try this. This is not practical.

Pre-requirements

  • UEFI system
  • Any Linux live-boot CD/DVD/USB... with Linux kernel newer than 5.15
  • Windows installer USB

Transfem Communication Protocol (TCP)

Section: Introduction

The Transfem Communication Protocol (TCP) is a secure and efficient protocol designed to facilitate seamless data transfer between connected entities. Emphasizing safety and efficiency, TCP establishes a reliable communication channel that ensures the integrity and confidentiality of transmitted data. By employing advanced encryption techniques and error-checking mechanisms, TCP aims to provide a trustworthy platform for exchanging information while minimizing the risk of data compromise or loss. This specification outlines the key principles, features, and mechanisms that govern the operation of the Transfem Communication Protocol, offering a comprehensive guide for developers and users seeking to harness its capabilities for various applications.

Section: Example

Below is an example of a data transfer with a handshake between Host 1 and Host 2.