Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am brittharr on github.
  • I am brittharr (https://keybase.io/brittharr) on keybase.
  • I have a public key ASCGduCTzLXpU-y9U9nETJ-SjABdYd-1vCm1r5J7dFPHcAo

To claim this, I am signing this object:

@brittharr
brittharr / install.sh
Last active September 13, 2018 20:41
VSCode extensions
code --install-extension DotJoshJohnson.xml
code --install-extension EditorConfig.EditorConfig
code --install-extension Equinusocio.vsc-material-theme
code --install-extension GrapeCity.gc-excelviewer
code --install-extension PKief.material-icon-theme
code --install-extension QassimFarid.ejs-language-support
code --install-extension TaodongWu.ejs-snippets
code --install-extension bierner.emojisense
code --install-extension bierner.markdown-emoji
code --install-extension christian-kohler.npm-intellisense
@brittharr
brittharr / .gitconfig
Last active December 18, 2017 17:55
gitconfig
[core]
pager = diff-highlight | diff-so-fancy | less -r
[alias]
st = status
ci = commit
br = branch
co = checkout
unstage = reset HEAD --
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
amend = commit --amend --no-edit
@brittharr
brittharr / settings.json
Last active June 20, 2018 10:12
Visual Studio Code Settings
{
"diffEditor.renderSideBySide": false,
"editor.dragAndDrop": false,
"editor.fontFamily": "Source Code Pro",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"editor.lineHeight": 21,
"editor.minimap.maxColumn": 80,
"editor.minimap.renderCharacters": false,
"editor.minimap.showSlider": "always",
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.16.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map-container { position:absolute; width:100%; height:626px; border:1px solid #000; border-width:1px 0; }
@brittharr
brittharr / post-receive
Created March 2, 2016 20:37
git post-receive hook for jekyll
GIT_REPO=$HOME/repo.git
TMP_GIT_CLONE=$HOME/tmp/repo
PUBLIC_WWW=/var/www/html
git clone $GIT_REPO $TMP_GIT_CLONE
cd $TMP_GIT_CLONE
bundle install
bundle exec jekyll build -s $TMP_GIT_CLONE -d $PUBLIC_WWW
rm -Rf $TMP_GIT_CLONE
exit
@brittharr
brittharr / export_repo_issues_to_csv.py
Last active April 15, 2016 13:55 — forked from unbracketed/export_repo_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import csv
import requests