Skip to content

Instantly share code, notes, and snippets.

@msfjarvis
msfjarvis / openpgp.txt
Created February 4, 2019 13:23
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:c5286e5857905f0be3411333c2e74282c2133d62]

Keybase proof

I hereby claim:

  • I am msfjarvis on github.
  • I am msf_jarvis (https://keybase.io/msf_jarvis) on keybase.
  • I have a public key whose fingerprint is C528 6E58 5790 5F0B E341 1333 C2E7 4282 C213 3D62

To claim this, I am signing this object:

Command Mean [s] Min [s] Max [s] Relative
cargo build --release 72.265 ± 0.867 70.685 73.215 2.0
cargo build 40.077 ± 0.210 39.742 40.432 1.1
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build --release 69.561 ± 0.489 68.854 70.228 1.9
RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build 36.394 ± 0.289 36.082 36.898 1.0
@msfjarvis
msfjarvis / benchmark.md
Last active February 1, 2020 10:09
rustc benchmark with and without LLD as linker

Tests are run on a fairly powerful AMD Ryzen 5 1600 (12) @ 3.200GHz under as low system stress as possible. All non-critical applications were shutdown before this test.

The project being tested is fairly small so your mileage as far as improvements are considered will vary.

@msfjarvis
msfjarvis / index.ts
Last active June 15, 2020 19:24
GitHub branch renamer powered by OctoKit
import { Octokit } from '@octokit/rest';
import { renameBranch } from 'octokit-plugin-rename-branch';
import { Endpoints } from '@octokit/types';
/*
* Here's the standard disclaimer about how this worked for me, may not work for you,
* and that I am not responsible in the slightest to make it work for you. There's no huge story
* to go with this, I just decided this is something I wanted to do so I did it.
*/
@msfjarvis
msfjarvis / extensions.json
Last active December 14, 2021 11:39
My VS Code settings
[
{
"id": "bierner.github-markdown-preview",
"name": "github-markdown-preview",
"publisher": "bierner",
"version": "0.0.2"
},
{
"id": "bierner.markdown-emoji",
"name": "markdown-emoji",
@msfjarvis
msfjarvis / dependency-updates.gradle.kts
Last active January 5, 2022 04:30
Gradle init script to configure `com.github.ben-manes:gradle-versions-plugin`
initscript {
repositories { gradlePluginPortal() }
dependencies { classpath("com.github.ben-manes:gradle-versions-plugin:0.41.0") }
}
allprojects {
apply<com.github.benmanes.gradle.versions.VersionsPlugin>()
fun isNonStable(version: String): Boolean {
@msfjarvis
msfjarvis / mullvad-vpn-speedtest-suite.md
Created January 9, 2019 14:28
Collection of bash hackery to determine which Mullvad WireGuard server is the lowest latency from your location
  • Grab all your wireguard configs from Mullvad and dump them in a folder. For this test, this folder is ~/wireguard/.
  • Add the following function to generate a list of all servers you have configs for
lswg ()  { 
    ls ~/wireguard/ | cut -d '-' -f 2 | sed 's/\.conf//'
}
  • Ping each server 10 times to determine latency.
lswg | xargs -I {} ping -c 10 {}-wireguard.mullvad.net | tee mullvadwgstats
@msfjarvis
msfjarvis / sepolicy.md
Last active December 16, 2023 20:50
How to write sepolicy to fix a denial
diff --git a/src/kotlin/kage/errors/Bech32Exception.kt b/src/kotlin/kage/errors/Bech32Exception.kt
index 63ca56903cd2..47d0d22f1e06 100644
--- a/src/kotlin/kage/errors/Bech32Exception.kt
+++ b/src/kotlin/kage/errors/Bech32Exception.kt
@@ -6,7 +6,5 @@
package kage.errors
/** Thrown when encoding or decoding Bech32 */
-public class Bech32Exception(
- message: String? = null,