Skip to content

Instantly share code, notes, and snippets.

Avatar
Vacationing

Harsh Shandilya msfjarvis

Vacationing
View GitHub Profile
@msfjarvis
msfjarvis / index.ts
Last active Jun 15, 2020
GitHub branch renamer powered by OctoKit
View index.ts
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 / benchmark.md
Last active Feb 1, 2020
rustc benchmark with and without LLD as linker
View benchmark.md

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.

View rustc_bench.md
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 / extensions.json
Last active Aug 4, 2020
My VS Code settings
View extensions.json
[
{
"id": "adpyke.codesnap",
"name": "codesnap",
"publisher": "adpyke",
"version": "1.0.27"
},
{
"id": "bbenoist.Nix",
"name": "Nix",
View keybase.md

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:

@msfjarvis
msfjarvis / openpgp.txt
Created Feb 4, 2019
OpenKeychain Linked Identity
View openpgp.txt
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]
@msfjarvis
msfjarvis / mullvad-vpn-speedtest-suite.md
Created Jan 9, 2019
Collection of bash hackery to determine which Mullvad WireGuard server is the lowest latency from your location
View mullvad-vpn-speedtest-suite.md
  • 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 Oct 16, 2020
How to write sepolicy to fix a denial
View sepolicy.md
You can’t perform that action at this time.