Skip to content

Instantly share code, notes, and snippets.

View shanebarringer's full-sized avatar

Shane Barringer shanebarringer

View GitHub Profile

Deep Work

  • Core Idea
    • A quick summary by the author on the key points of the book
  • How I ONLY work 4 hours a day
    • An excellent summary by a highly successful youtuber
  • Book
  • Caveday
    • remote co-working that provides opportunity, encouragement, and accountability for Deep Work
@shanebarringer
shanebarringer / GitHub protocol comparison.md
Created August 10, 2021 16:43
A comparison of protocols offered by GitHub (for #git on Freenode).

Primary differences between SSH and HTTPS. This post is specifically about accessing Git repositories on GitHub.

Protocols to choose from when cloning:

plain Git, aka git://github.com/

  • Does not add security beyond what Git itself provides. The server is not verified.

    If you clone a repository over git://, you should check if the latest commit's hash is correct.

@shanebarringer
shanebarringer / Amethyst.md
Last active August 6, 2021 19:43
Notes on Amethyst - tiling window manager

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get a single character ${VARNAME[index]}
Get the string from a specific index ${VARNAME[index,-1]}

GraphQL

  • GraphQL Foundations
  • Server-Side GraphQL
    • Go
    • Node/Express
      • JoinMonster
      • Prisma/yoga
    • Python
  • Client Side GraphQL
// Write a function named convert() that takes string values and changes each value to number, and returns a single array
const convert = (...values) => {
return values.map(v => parseInt(v, 10)).filter(num => !isNaN(num));
};
module.exports = convert;
@shanebarringer
shanebarringer / sed
Last active August 27, 2018 14:53 — forked from mendezcode/sed.js
forked from sed.js
#! /bin/node
var fs = require('fs');
var util = require('util');
function main() {
var args = process.argv.slice(2);
if (args.length === 3) {
#!/bin/bash
#
# This script is meant for quick & easy install via:
# 'curl -sSL https://get.replicated.com/docker | sudo bash'
# or:
# 'wget -qO- https://get.replicated.com/docker | sudo bash'
#
# This script can also be used for upgrades by re-running on same host.
#
@shanebarringer
shanebarringer / AllBuses.jsx
Created September 6, 2017 16:33
react-router match and props
import React, {Component} from 'react'
import {Link} from 'react-router-dom'
import Bus from './bus'
const busses = (match, busses) => busses.map((bus, index) => (
<Link key={index} to={`${match.path}/${bus.VEHICLE}`}>
<Bus
busNumber={bus.VEHICLE}
busRoute={bus.ROUTE}
nextStop={bus.TIMEPOINT}/>
@shanebarringer
shanebarringer / podcasts.md
Created June 1, 2017 19:01
A collection of code related podcasts
  • The Changelog Podcast - A weekly conversation that gets to the heart of open source technologies and the people who create them.
  • Code Newbie - the most supportive community of programmers and people learning to code.
  • Node Up - Deep dive into NodeJS
  • JavaScript Jabber - a weekly discussion about JavaScript, front-end development, community, careers, and frameworks.
  • JS Party - A community celebration of JavaScript and the web.
  • React 30 - Promise not to waste more than 30 minutes of your time
  • 5 Minutes of React - podcast about React hot topics and JavaScript ecosystem
  • Developer Tea - A podcast for developers designed to fit inside your tea break
  • Shop Talk Show - UX and Front End podcast