Skip to content

Instantly share code, notes, and snippets.

View booherbg's full-sized avatar

Blaine Booher booherbg

View GitHub Profile
@booherbg
booherbg / scifi-notes.md
Last active April 17, 2018 16:05
Notes on SciFi

This is just a general repository for me to keep track of books that I've read over the years.

2018

  • The Dosadi Experiment (1977), Frank Herbert
  • Snow Crash (1992), Neil Stephenson; This was a doozie. Excellent read.

2017

  • Devil in the White City (2003), Erik Larson
@booherbg
booherbg / for-loops.md
Last active April 22, 2020 20:42
Simple For Loops

Week 3 Stretch Goal Tips

In general there are two types of problems to solve:

  1. "Calculate some value based on all the numbers in the array"
  2. "Find a number in the array and stop once you've found it"

In pretty much all cases, all you need to do is have a way of looping through the array of numbers, keeping track of what you have done so far, and reporting the result at the end.

@booherbg
booherbg / arrow-functions.md
Last active May 27, 2020 15:09
Arrow Functions

Arrow Function Intro

function name(me) {
  console.log('my name is', me);
}

const name = function(me) {
  console.log('my name is', me);
}
@booherbg
booherbg / files.md
Last active June 17, 2020 00:52
EDA HTML/CSS Workshop Code

index.html:

<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>Blaine's World</title>
    <link rel="stylesheet" href="./style.css">
  </head>
  <body>
@booherbg
booherbg / movie-grading.md
Created June 29, 2020 15:07
grading-result

Project Page

  • Client side route that displays projects that are stored in the database
  • Each project should conditionally render a name, description, thumbnail, website, date complete and a tag. Many of the fields are optional, only show properties that aren't null.
  • Include a link to GitHub that opens in a new window
  • Add your name at the top of the page
  • Use Sagas for API requests to your server

Admin Page

# Weekend 12 Challenge - Redux Saga Movies

## Movies Page

- [ ] Client side View that displays a list of movies (image, title, description)
- [ ] View has ability to click on a single movie
- [ ] Clicking on single movie goes to movie details view at `/details`

## Details Page
~/.config/spacebar/spacebarrc
```
spacebar -m config status_bar off
spacebar -m config text_font "Helvetica Neue:Bold:11.0"
spacebar -m config icon_font "FontAwesome:Regular:11.0"
spacebar -m config background_color 0xff202020
spacebar -m config foreground_color 0xffa8a8a8
spacebar -m config space_icon_strip 1 2 3 4 5 6 7 8 9 10
spacebar -m config power_icon_strip  
spacebar -m config space_icon 
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
// ctx.globalCompositeOperation = 'destination-over';
const edge = 200;
const particleScale = 20;
let drawing = false;
@booherbg
booherbg / postgres-upgrade.md
Created July 7, 2021 18:29
Upgrading Postgres from 12 to 13

I have no idea how but postgres was upgraded to 13, but the database was still in 12, so it wouldn't boot.

This URL saved the day: https://quaran.to/Upgrade-PostgreSQL-from-12-to-13-with-Homebrew

brew services stop postgresql
brew postgresql-upgrade-database
./analyze_new_cluster.sh
brew services start postgresql
ps ax | grep postgres
@booherbg
booherbg / certbot-auto.md
Last active August 3, 2021 18:39
Replacing legacy certbot-auto with docker

Replacing existing certbot-auto installation on Ubuntu 14 with Docker

The problem: Legacy certbot-auto is no longer supported, and ACMEv1 challenge has been deprecated and removed. On newer systems, you can simply upgrade certbot using apt-get install --upgrade-only certbot and you'll be good to go.

However, on legacy servers (Ubuntu 14), it isn't possible to upgrade. Installing manually isn't good either because python3 uses python3.4 which has a broken pip installation (ugh).

Docker to the rescue!