Skip to content

Instantly share code, notes, and snippets.

View JeremyIglehart's full-sized avatar

Jeremy Iglehart JeremyIglehart

  • Downingtown, PA
View GitHub Profile
@JeremyIglehart
JeremyIglehart / create_new_user.md
Last active February 8, 2023 18:36
How to create a new user and remove the `pi` user on a Raspberry Pi

How to create a new user and remove the pi user on a Raspberry Pi

Note: This has been tested in Rasbian Buster released on 2019-06-20

Important: replace jeremy below with whatever username you'd like as your new user.

  1. sudo adduser jeremy
    • You will be asked to enter a password
    • When filling out basic information about the user, you may leave it blank
@JeremyIglehart
JeremyIglehart / index.js
Last active April 9, 2022 04:16
Visualizing Directional Exploration of a Matrix
/*
Visualizing Directional Exploration of a Matrix
A little homework for myself. I find it difficult at times to visualize a
matrix when it's represented as an array. Specifically when I'm setting up
some array of directions for BFS style matrix searching - I always have to
think very about the array I setup for exploring different directions.
So, I wrote this - to prove it out for myself and run it in a browser console.
Thanks Chroms for your awesome console.log display :)
@JeremyIglehart
JeremyIglehart / config
Created July 18, 2019 05:18
.ssh/config for SSH Multiplexing
Host *
ControlMaster auto
ControlPath ~/.ssh/master-%r@%h:%p.socket
TCPKeepAlive no
@JeremyIglehart
JeremyIglehart / k8s-pi.md
Created November 6, 2018 20:21 — forked from alexellis/k8s-pi.md
K8s on Raspbian

Kubernetes on (vanilla) Raspbian Lite

Yes - you can create a Kubernetes cluster with Raspberry Pis with the default operating system called Raspbian. This means you can carry on using all the tools and packages you're used to with the officially-supported OS.

This is part of a blog post Serverless Kubernetes home-lab with your Raspberry Pis written by Alex Ellis.

Copyright disclaimer: Please provide a link to the post and give attribution to the author if you plan to use this content in your own materials.

Pre-reqs:

#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
@JeremyIglehart
JeremyIglehart / install-latest-compose.sh
Created October 10, 2018 21:07 — forked from deviantony/install-latest-compose.sh
Install latest version of Docker Compose
#!/bin/bash
# get latest docker compose released tag
COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.tag_name')
# Install docker-compose
sh -c "curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
chmod +x /usr/local/bin/docker-compose
sh -c "curl -L https://raw.githubusercontent.com/docker/compose/${COMPOSE_VERSION}/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose"
@JeremyIglehart
JeremyIglehart / Endure to the end.md
Last active October 3, 2016 23:29
Family Home Evening Lesson Plan - How to Endure to the End

How to endure to the end

The word endure often leads to a miserable line of thought. From the thesaurus we fine: "undergo", "cope with", "deal with", "face", "suffer", "tolerate", "put up with", "brave", "bear", "withstand", "sustain", "weather" and then in a slightly more upbeat tone, but still kind of dismal we can continue in that same way to find "go through", "live through" and "experience".

When I first think about enduring to the end and try to think about it in an upbeat practical way the first thought that comes to mind has to do with training for an endurance sport. Like, doing an Ironman marathon. But, I mean... come on, look at me... This thought creates all kinds of other feelings inside.

We have to try a little harder than that to find a better meaning to attach to this idea of Enduring to the end. If we stop at the surface level, I think that most of us would tend to think "That's too hard" and turn to an easier path. It is mankind's tendency after-all to follow the path of least res

@JeremyIglehart
JeremyIglehart / discussionTopic.md
Created September 21, 2016 01:43
maxOS Sierra Taking Forever to Install

Installing macOS Sierra Taking Forever?

I downloaded the Sierra installer at 1:30pm today (Before it was even on the "Front" page of the App Store). I noticed today while installing it is says that it should take "6 Minutes" to install, but it's been... I dunno, longer than 20 by now. It still says About 4 minutes remaining. The progress bar marches forward in chunks. Maybe it's because I'm using a MicroSDHC Card (40mb/s) in the Apple Card Reader slot through an adapter.

I dunno - Anyone else have thoughts on this?

@JeremyIglehart
JeremyIglehart / README.md
Created August 31, 2016 23:04
Setting Meteor Session from the "Server" - or really?

This is probably bad design, Don't do this in real life.

I'm writing this gist in response to a comment on forums.meteor.com

I guess it's working... I wonder what is actually happening on the server side of things :X

Heh, oh well.

Thanks for the pointers aadams

@JeremyIglehart
JeremyIglehart / iTunesVSSpotify.md
Created August 20, 2016 16:30
iTunes vs Spotify

iTunes vs Spotify

A few months ago I switched from Spotify Premium to iTunes' Music Membership service. I switched because they were offering it for free for three months.

Since I've switched, I have to say I really really miss Spotify.

Here is a list of my observations

What Apple Does Wrong: