Skip to content

Instantly share code, notes, and snippets.

View GregDMeyer's full-sized avatar

Greg Kahanamoku-Meyer GregDMeyer

View GitHub Profile
@GregDMeyer
GregDMeyer / show_wifi_qr.sh
Last active April 14, 2022 21:35
a script to generate and show a QR-code containing the SSID and passphrase for the currently-connected WiFi network
#!/usr/bin/env bash
# a script to generate and show a QR-code containing the SSID and passphrase
# for the currently-connected WiFi network, for systems using NetworkManager
# the network device
DEVICE=wlp0s20f3
# need root to get password
if [ "$EUID" -ne 0 ]
@GregDMeyer
GregDMeyer / plot_bits.py
Last active January 7, 2019 14:21
Solution to 538 Riddler "What are these dang bits!"
from matplotlib import pyplot as plt
import numpy as np
from sys import argv
def f(x,y):
'''
Count the number of iterations for Euclid's algorithm computing gcd(x,y),
and return whether it is odd or even.
'''

Keybase proof

I hereby claim:

  • I am gregdmeyer on github.
  • I am gregmeyer (https://keybase.io/gregmeyer) on keybase.
  • I have a public key ASAzw3r74Q4TJ0CyM4dY5VYlmEHzprGtyzfeB8e1rZ47owo

To claim this, I am signing this object: