Skip to content

Instantly share code, notes, and snippets.

View grahamg's full-sized avatar

Graham Greenfield grahamg

View GitHub Profile
{
"meta": {
"theme": "short"
},
"basics": {
"name": "Graham Greenfield",
"label": "Software Engineer",
"image": "https://avatars.githubusercontent.com/u/21362",
"summary": "I've worked at a variety of startups and large corporate environments so I'm used to filling a variety of roles as a programmer. I'm used to prioritising user feedback first and foremost in short predictable two-week cycles.",
"website": "https://grahamg.dev",

Keybase proof

I hereby claim:

  • I am grahamg on github.
  • I am graham_g (https://keybase.io/graham_g) on keybase.
  • I have a public key ASCkc1nreswzI2ZQpJ42g_JoC4CGdb4PwT1n3UNTeRB-mgo

To claim this, I am signing this object:

@grahamg
grahamg / Github Bootcamp Talk
Last active July 15, 2022 16:18
Github Bootcamp Talk
Introduction to Git and Github at a high level: https://github.com/skills/introduction-to-github
0. Installing and configuring git, adding ssh key for use with Github
0.1 Mac OS comes pre-installed with git, command line client for interacting with github
0.2 Windows requires manual installation, can be obtained from https://git-scm.com/download/win
0.3 Using git client on local computer requires adding your ssh key to the github ui.
Follow the directions at for adding or creating a SSH key
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
1. Starting a new local repository
@grahamg
grahamg / Dockerfile
Last active May 10, 2020 10:37
Dockerfile for local development environment.
#
# mkdir DockerLocalDevelopmentEnvironment
# curl -o Dockerfile <this file>
# docker build -t dev-env .
# docker run -it -d dev-env:latest /bin/bash
# docker ps
# docker attach <randomly assigned instance name>
#
FROM phusion/baseimage:latest
" Use Vim settings rather than Vi settings
" Required to be at the beginning of file
set nocompatible
" Required
filetype off
" Turn on syntax highlighting
syntax on
@grahamg
grahamg / docker_devlounge_pt2.txt
Last active June 19, 2018 11:28
Docker DevLounge Notes (6/18/18)
*Dockerfile*
FROM php:7.0.17-apache
RUN apt-get update
RUN apt-get install -y apt-utils vim curl sqlite3
RUN pecl install xdebug
ADD ./db/test.db /test.db
ADD ./php.ini /usr/local/etc/php
@grahamg
grahamg / The Technical Interview Cheat Sheet.md
Created May 8, 2018 14:09 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@grahamg
grahamg / .vimrc
Last active June 26, 2019 22:11 — forked from anonymous/.vimrc
For use at job
" Use Vim settings rather than Vi settings
" Required to be at the beginning of file
set nocompatible
" Required
filetype off
" Turn on syntax highlighting
syntax on
@grahamg
grahamg / .tmux.conf
Created August 25, 2016 15:16
Tmux Configuration
# Ring the bell if any background window rang a bell
set -g bell-action any
# Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal screen-256color
# Keep your finger on ctrl, or don't
bind-key ^D detach-client
# Split panes using | and -