Skip to content

Instantly share code, notes, and snippets.

View NyCodeGHG's full-sized avatar

Marie NyCodeGHG

View GitHub Profile
@ipetkov
ipetkov / audit.nix
Last active January 26, 2025 19:49
Find all enabled-by-default options of a NixOS configuration
# Run this via
# nix build -f ./audit.nix --arg flakePath 'toString ./.' --argstr hostname THEHOST
{ pkgs ? import <nixpkgs> { }
, flakePath ? toString ./.
, hostname
}:
let
inherit (pkgs) lib;
flake = builtins.getFlake flakePath;
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 29, 2025 11:33
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
@rokam
rokam / fix_fallguys.sh
Created March 30, 2022 03:21
Bash script to run the proton experimental fall guys fix
#!/bin/bash
STEAMAPPS_PATH=${1-~/.steam/steam/steamapps}
FALLGUYS_PATH=$STEAMAPPS_PATH/common/Fall\ Guys
if [ ! -d "$FALLGUYS_PATH" ]; then
echo Unable to find Fall Guys Path.
exit
fi
#Create symlink
ln -s "$FALLGUYS_PATH/EasyAntiCheat/easyanticheat_x64.so" "$FALLGUYS_PATH/FallGuys_client_game_Data/Plugins/x86_64/easyanticheat_x64.so"
@rainbowdashlabs
rainbowdashlabs / sh
Last active June 15, 2021 16:44
disney plus pin finder in bash
#!/bin/bash
# This script can help you when you forgot the pin for your disney plus profile.
# Dont use it to get access to other members of your account. This is only for your own profile :3
# Arguments: <start> <end> <profile_id> <token>
# start and end are the first and last pin to be checked. zeros will be added by the script.
# the profile id can be found in the url url when you have to enter your pin
# the token can be found in any request which requires authentification. try a pin to get it for example.
# the token has to be entered without the "Bearer" in front of it.
FIRST=$1
LAST=$2
@JohnnyJayJay
JohnnyJayJay / DurationFormatter.java
Created May 13, 2020 19:06
util for simple duration formatting
import java.time.Duration;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
/**
* @author Johnny_JayJay (https://www.github.com/JohnnyJayJay)
*/
public final class DurationFormatter {
@Treeki
Treeki / TurnipPrices.cpp
Last active April 21, 2025 04:42
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@jeroenknoef
jeroenknoef / Controller.kt
Last active September 1, 2021 16:34
Micronaut - KMongo - Jackson
// Example controller
@Controller
@Validated
class DemoBeanController(
private val service: Service // Injected by Micronaut
) {
@Get("/{id}")
// Micronaut 1.3 supports coroutines, this also works in earlier versions.
@chrisroos
chrisroos / gpg-import-and-export-instructions.md
Created September 9, 2011 10:49
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...