Skip to content

Instantly share code, notes, and snippets.

View drmuey's full-sized avatar
👾
Compiling …

drmuey

👾
Compiling …
View GitHub Profile
@drmuey
drmuey / Covid Vaccine Nub.md
Last active March 26, 2021 17:47
Covid Vaccine Nub
@drmuey
drmuey / Cpanel-OS.md
Last active January 20, 2021 20:24
Design doc for os abstraction layer

NAME

Cpanel::OS - Abstract interface to the OS to obviate the need for if-this-os-do-this-elsif-elsif-else tech debt

SYNOPSIS

    my $os = Cpanel::OS->instance;
    my $pm = Cpanel::PackMan->instance;
@drmuey
drmuey / Docker Nub.md
Last active August 13, 2021 17:47
Concise Docker notes
  • CMD
    • spin up image, run CMD, stop
    • w/ docker run arg ➜ run this instead of CMD
    • Same w/ dockder run … CMD
  • ENTRYPOINT
    • spin up image, run ENTRYPOINT, stop
    • w/ docker run arg ➜ append to ENTRYPOINT arguments
    • Same w/ dockder run … --entrypoint=ENTRYPOINT
  • CMD && ENTRYPOINT
  • spin up image, run ENTRYPOINT w/ CMD appended to ENTRYPOINT arguments, stop

Note: If you are using podman feel free to s/docker/podman/g it should work the same.

  1. Ensure that container1 has the NET_ADMIN capability
    • docker inspect --format='cap_add: {{.HostConfig.CapAdd}}' container1
  2. Install tc on container1:
    • apt-get install libterm-readline-perl-perl -y && apt-get update && apt-get install iproute2 iputils-ping -y
  3. Configure latency on the container1:
    • tc qdisc add dev eth0 root netem delay 1000ms
  4. verify there is latency between two images:
  • docker exec container2 ping container1
@drmuey
drmuey / How-to-homescreen-url.md
Last active December 31, 2019 01:56
How to add a URL to your iPhone’s home screen
  1. open Safari
  2. go to the URL you want to get to by clicking on an icon on your home acreen
  3. click the share icon at the bottom (square with an arrow pointing up)
  4. scroll down until you see "add to home screen"
  5. click "add to home screen"
  6. shorten the label (if needed) to fit better on the home screen
  7. click add
  8. move the new icon if you like (same way as an apps icon)
  9. whenever you want to go to that URL click on the new icon
@drmuey
drmuey / Dr. Who.md
Last active December 11, 2019 22:28
How to Watch Dr. Who and Get It™

Much like the Doctor himself, apparently you must bounce around the series in non-linear fashion in order to get the most out of it.

Series Episode # (+/- 1 w/ specials) Episode Name Doctor Writer
3 10 Blink David Tennant Steven Moffat
1 9 The Empty Child Christopher Eccleston Steven Moffat
1 10 The Doctor Dances  Christopher Eccleston Steven Moffat
2 4 The Girl in the Fireplace David Tennant Steven Moffat
3 7 42 David Tennant Chris Chibnall
4 8 Silence in the Library David Tennant Steven Moffat
@drmuey
drmuey / 42 fibonacci.md
Created December 6, 2019 16:42
The `AtLtUaE` via Fibonacci

Generating Pair: 2, 4 = 7th Term

Generating Pair: 21, 21 = 3rd Term

Generating Pair: 42, 42 = 1st and 2nd term

@drmuey
drmuey / Google Suite habits for effective group collaboration.md
Last active June 22, 2021 00:38
Google Suite habits for effective group collaboration

Drive

  • Reuse documents
    • That way link (or other references) to it continues to work 👍
      • If its a spreadsheet just update it
      • If a new version of a document comes out: do not upload the new and delete the old one, upload a new revision of the same document
        • Here is how:
          1. Right-click the file and select Manage versions.
            • Manage versions
  1. Click Upload new version and select a file from your computer.

WiP: Distilled from https://www.txdmv.gov/motorists/buying-or-selling-a-vehicle and common sense.

  1. Seller: Secure the Payment
    1. only accept cash, cashier’s check, or money order
    2. only accept full payment
    3. provide the buyer with a bill of sale, with the words “paid in full” written on it
  2. Seller: Transfer the Title (within 30 days):
    1. fill out transfer section on title
    2. fill out title transfer form from the county
  3. submit "b" and "c" to county office
@drmuey
drmuey / arc.md
Last active November 30, 2018 20:41
[TL;DR] arc workflow

work locally

  1. arc feature <branch>
  2. … work locally …
  3. arc diff (sends to review, creates “revision” D12345) or arc wip (see below)
    • needs work? goto 2
    • approved? goto 4
  4. arc land (merge D12345 to master)
  5. arc close-revision <revision> (closes D12345)