Skip to content

Instantly share code, notes, and snippets.

View gabrieljoelc's full-sized avatar

Gabriel Chaney gabrieljoelc

View GitHub Profile
@gabrieljoelc
gabrieljoelc / find_replace_dirs_and_then_files.sh
Created August 30, 2019 05:16
Run twice to rename all directories and then all files
find . -name 'NamespaceToKeep.NamespaceToDeleted*' -exec rename 's/NamespaceToKeep.NamespaceToDeleted/NamespaceToKeep/' '{}' \;
@gabrieljoelc
gabrieljoelc / steps.md
Last active March 1, 2024 05:59
Android Emulator Scanner/Camera Setup

Prerequisite:

  • Android Studio
  • You have a highish res barcode or QR code image (download one from Google images)

Steps:

  1. Following the steps here
  2. Start the emulator
  3. Click on "More" in the emulator panel to open the "Extended controls" window
  4. Click on "Camera"
  5. Click "ADD IMAGE" in "Wall" section

GistID: 363067bd30d0afa000bf18bd757f4c00

GraphQL + Frontend App Journey

I want tools that give me as much as possible for a production-ready app. Something as easy as Ruby On Rails':

rails new

%author: Gabriel Chaney %date: 2019-06-25

-> Mind of a Chef Software Engineer <-

-> What a non-engineer should know about how an engineer thinks. <-


GistID: ae7484b3f9e3edd077015865878b4bb5

Goals

  • Build software as a platform via decomposition into components (i.e. microservices)
  • Drive microservice architecture through asynchronous inter-service communication (e.g. messaging)
  • Reduce developer friction when doing inter-service communication
  • Bus subscriptions via conventions over configuration

GistID: 542f7e36d786c83f389a916313b07945

Steps to setup (or fetch local) terraform state for azurerm provider:

  1. terraform init -backend-config="access_key=<access key to Azure Storage Account>"
  2. terraform workspace new (if creating new Workspace) or select (if selecting an existing one) <workspace name>
  3. terraform plan

Pass in variables to terraform plan for things like database credentials:

terraform plan -var 'login=mylogin' -var 'login-password=mypassword'
@gabrieljoelc
gabrieljoelc / .tmux.conf
Last active February 4, 2019 23:49
WSL Debian tmux conf
# GistID: 7c626b801ddf4f5744e0f7c15388345d
# see https://sanctum.geek.nz/arabesque/vi-mode-in-tmux/
set-window-option -g mode-keys vi
# https://www.johnhawthorn.com/2012/09/vi-escape-delays/
set -s escape-time 0
# https://unix.stackexchange.com/a/35932/275026
# Start windows and panes at 1, not 0
@gabrieljoelc
gabrieljoelc / .vimrc
Last active February 4, 2019 23:43
WSL Debian vim config
" GistID: 77a7bd2a9092f6c87a691762d56a02f6
set number
syntax on
filetype plugin indent on
" show existing tab with 2 spaces width
set tabstop=2
" " when indenting with '>', use 2 spaces width
set shiftwidth=2
" " On pressing tab, insert 2 spaces

GistID:

Categories of things I comment on in PR:

  • Access modifiers