Skip to content

Instantly share code, notes, and snippets.

View JessicaMulein's full-sized avatar
:octocat:
Mercurial

Jessica Mulein JessicaMulein

:octocat:
Mercurial
View GitHub Profile
@JessicaMulein
JessicaMulein / Installation.md
Created December 2, 2019 19:00 — forked from albertbori/Installation.md
Automatically disable Wifi when an Ethernet connection (cable) is plugged in on a Mac

Overview

This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.

Most the credit for these changes go to Dave Holland.

Requirements

  • Mac OSX 10+
  • Administrator privileges
@JessicaMulein
JessicaMulein / RSAKeys.cs
Last active December 25, 2020 08:07 — forked from ststeiger/RSAKeys.cs
Import and export RSA Keys between C# and PEM format using BouncyCastle
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.OpenSsl;
using Org.BouncyCastle.Security;
using System;
using System.IO;
using System.Security.Cryptography;
namespace MyProject.Data.Encryption
{
@JessicaMulein
JessicaMulein / settings.json
Created November 2, 2020 13:29
Example Windows Terminal profiles for PowerShell, NodeJS, Cygwin, Git Bash, Ubuntu
// A profile specifies a command to execute paired with information about how it should look and feel.
// Each one of them will appear in the 'New Tab' dropdown,
// and can be invoked from the commandline with `wt.exe -p xxx`
// To learn more about profiles, visit https://aka.ms/terminal-profile-settings
"profiles":
{
"defaults":
{
// Put settings here that you want to apply to all profiles.
},
@JessicaMulein
JessicaMulein / keybase.md
Created February 16, 2022 17:02
Keybase verification

Keybase proof

I hereby claim:

  • I am freddiemercurial on github.
  • I am jmulein (https://keybase.io/jmulein) on keybase.
  • I have a public key ASArLU0TovJQYdHHPCX7TOJhgS0jD9Q0l5zGjSaM-ergKAo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am jessicamulein on github.
* I am jmulein (https://keybase.io/jmulein) on keybase.
* I have a public key ASAgPOZGjt1lLyTQAzFpLCLGRutIRatQ3SWsxVjIQ_ty8wo
To claim this, I am signing this object:
@JessicaMulein
JessicaMulein / quorum.md
Last active November 10, 2022 00:18
BrightChain Quorum Quick Rundown

Contents now here: https://github.com/BrightChain/BrightChain/wiki/Quorum and mirrored here for simplicity.

  1. The quorum itself should be composed of a reasonable number of people/organizations (approximately 2 dozen)- ideally charitable organizations with a board.
  • The quorum's makeup is critical- just as it is to pick the right representatives in your government and you are in fact creating a digital government of sorts. Total privacy and anonymity in a digital platform is dangerous, but I think I've found a system of balances
  • The system is designed to have absolute identity and be able to support voting (governmental kind), but the online portion needs a reasonable way to post anonymously but not give free reign to yell "fire" in a theater.
  1. You post secret data with your regular id and sign it- you zero out the ID portion.
  2. The server accepts the signature as it is able to verify it was made with the original, known ID of the user, then the secret data (anything) is encrypted with random key.
@JessicaMulein
JessicaMulein / marked-linkify-it.ts
Created March 2, 2023 01:22
marked-linkify-it with TypeScript
// taken directly from https://github.com/UziTech/marked-linkify-it and strongly typed
import LinkifyIt from 'linkify-it';
import { marked } from 'marked';
import tlds from 'tlds';
export class markedLinkifyIt implements marked.MarkedExtension {
constructor(schemas = {}, options = {}) {
const linkify = new LinkifyIt(schemas, options);
linkify