Skip to content

Instantly share code, notes, and snippets.

View K7TRY's full-sized avatar

Elliott Stoddard K7TRY

View GitHub Profile
@K7TRY
K7TRY / GetCleanPhoneNumber.cs
Created January 28, 2021 21:38
Get Clean Phone Number
using Xunit;
using System.Collections.Generic;
using System.Linq;
public static string GetCleanPhoneNumber(string phone)
{
// Strip all non-digits.
phone = new string(phone.Where(c => char.IsDigit(c)).ToArray());
// This will handle the situation where they put a country code on the phone number.
@K7TRY
K7TRY / pgp.asc
Created October 9, 2020 22:33
Public PGP Keys
-----BEGIN PGP PUBLIC KEY BLOCK-----
xjMEX253RxYJKwYBBAHaRw8BAQdAHsR27JbaTJ673c3F8bljt14HbbkIMV8qznTA5Eqaq9bNHkVs
bGlvdHQgU3RvZGRhcmQgPGVzQGs3dHJ5LmNvPsKRBBMWCAA5FiEEdlAq5L0/teP95z0EOc4Os8Y6
HRsFAl9ud0cFCQWjmoACGwMFCwkIBwIGFQgJCgsCBRYCAwEAAAoJEDnODrPGOh0bU/kBAOgWk9HA
KRPruE82xhg9w7AeBcy0hx7sx+U+szyKhwuFAP0RtmrUgSqSAsqpZUWwLHfauUx81Xd3fGBK/Pu1
EpeBBM44BF9ud0cSCisGAQQBl1UBBQEBB0CZE+YO7I2ALbqw+t2yhWKPrAFywZpWQTjk2HYS2dXJ
SQMBCAfCfgQYFggAJhYhBHZQKuS9P7Xj/ec9BDnODrPGOh0bBQJfbndHBQkFo5qAAhsMAAoJEDnO
DrPGOh0bLtcA/jIoGC7VSHOL25qltmT2GW65ZJ3Tgyj9xcvEq3mJX4SMAP9QoJOM+dqhAwaGEyuk
y7ebSLhNml3zeo/ridybm9tnCQ==
@K7TRY
K7TRY / Keybase.md
Created March 4, 2020 02:03
Keybase proof

Keybase proof

I hereby claim:

  • I am k7try on github.
  • I am k7try (https://keybase.io/k7try) on keybase.
  • I have a public key ASAgDFT30eozp0qHvj5Qzp9G1ZwV8UydjCYpe_9YvhkSzAo

To claim this, I am signing this object:

@K7TRY
K7TRY / rpi-hdmi.sh
Created May 27, 2017 17:27 — forked from quelleck/rpi-hdmi.sh
Enable and disable the HDMI port on the Raspberry Pi: `rpi-hdmi on` to turn on, `rpi-hdmi off` to turn off.
#!/bin/sh
# Enable and disable HDMI output on the Raspberry Pi
is_off ()
{
vcgencmd display_power | grep "display_power=0" >/dev/null
}
case $1 in