This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| // munged from https://github.com/simontime/Resead | |
| namespace sead | |
| { | |
| class Random | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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. |
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.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
