Skip to content

Instantly share code, notes, and snippets.

View skipzero's full-sized avatar
Seeking new opportunities

Skip McBride skipzero

Seeking new opportunities
View GitHub Profile
@skipzero
skipzero / readme.md
Created May 27, 2025 05:31 — forked from anthonyray/readme.md
Setting up OhMyZsh on a rapsberry Pi
  1. Connect to your raspberry Pi with SSH
  2. Install zsh : sudo apt-get update && sudo apt-get install zsh
  3. Edit your passwd configuration file to tell which shell to use for user pi : sudo vim /etc/passwd and change /bin/bash and /bin/zsh
  4. Reconnect to your raspberry, and check that zsh is the shell with echo $0.
  5. Switch to root : sudo su
  6. Install OhMyZsh : sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  7. Disconnect from your instance and reconnect it.
@skipzero
skipzero / Sticks.js
Created March 17, 2023 15:06
a hackerrank/leetcode type problem for finding the amount of array items (sticks) it would take to get to a given sum (k)
/**
* in tackling this problem, I simply sorted the array, putting the larger sizes first.
* Once I had the array sorted, I started with the biggest size and worked my way through it.
* basically just sor tthe array and subtract from the length needed (k)
*
* I'm not sure if this passes the Big O notation requirement, I assume so with it being
* super simple and only having one for loop. That should help keep complexity down.
*
*
*/
@skipzero
skipzero / mazetest.js
Created September 12, 2020 18:12
instructions
/**
so essentially you've a 2 dimensional array that you need to find a path from top to bottom and you can go left or right.
a couple practice examples are below.
if you can pass all the way through, return true, if you can't return false. you can only go on 0s, 1s are blocked.
**/
// passes
const potA = [
[1,1,1,0,1],
[1,1,0,0,1],
@skipzero
skipzero / Brewfile
Last active September 24, 2023 08:06
workMachine - Brew bundle file for quick setup 28.5.2019
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-drivers"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"
tap "keith/formulae"
tap "mas-cli/tap"
tap "teamookla/speedtest"
@skipzero
skipzero / workColours.iterm
Created April 24, 2019 06:45
Iterm 2 colour pallette from somewhere else... ;p
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
@skipzero
skipzero / config
Last active September 24, 2023 08:09
git configs for local or global styles
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
editor = vscodium
[user]
name = skip
@skipzero
skipzero / nginx-default
Last active September 24, 2023 08:10
http2 nginx config for angerbunny.com
server {
listen 80;
listen [::]:80;
server_name angerbunny.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2 default_server;
@skipzero
skipzero / config.cson
Created August 3, 2018 04:22
Atom config file backup for new machines
"*":
"apathy-theme":
altStyle: "Color Pop"
enableTreeViewBorder: true
enableTreeViewStyles: true
syntaxSaturation: "100%"
"atom-beautify":
general:
_analyticsUserId: ""
"atom-ide-ui":
@skipzero
skipzero / iTerm2Profile.json
Created June 29, 2018 21:19
iTerm2 Profile json file. terminal, CLI, custom, settings
{
"Use Non-ASCII Font" : false,
"Tags" : [
],
"Ansi 12 Color" : {
"Red Component" : 0.40937519073486328,
"Color Space" : "sRGB",
"Blue Component" : 1,
"Alpha Component" : 1,
@skipzero
skipzero / .nanorc
Created May 25, 2018 06:21
nanorc file mainly for syntax colouring in iTerm
## Don't wrap text at all.
set nowrap
## Fix Backspace/Delete confusion problem.
# set rebinddelete
## Allow nano to be suspended.
set suspend
## Convert typed tabs to spaces.