Skip to content

Instantly share code, notes, and snippets.

View jarrodldavis's full-sized avatar
🏠
Working from home

Jarrod Davis jarrodldavis

🏠
Working from home
View GitHub Profile
@jarrodldavis
jarrodldavis / aws-cli.sh
Created February 10, 2021 07:10
AWS CLI Docker
#!/bin/bash
docker run \
--interactive \
--tty \
--rm \
--volume ~/.aws:/root/.aws \
--volume $(pwd):/aws \
--network=host \
--env "$(env | grep AWS_ | cut -f1 -d=)" \
@jarrodldavis
jarrodldavis / starship.toml
Last active December 31, 2021 10:00
vscode-devcontainer test
add_newline = false
[git_status]
disabled = true
@jarrodldavis
jarrodldavis / RawKeyedCodableDictionary.swift
Created September 26, 2019 04:38
A Swift property wrapper for encoding and decoding `RawRepresentable` enums as their raw values in `Dictionary` instances as keys
@propertyWrapper
struct RawKeyedCodableDictionary<Key, Value>: Codable where Key: Hashable & RawRepresentable, Key.RawValue: Codable & Hashable, Value: Codable {
var wrappedValue: [Key: Value]
init() {
wrappedValue = [:]
}
init(wrappedValue: [Key: Value]) {
self.wrappedValue = wrappedValue
@jarrodldavis
jarrodldavis / README.md
Last active August 17, 2019 08:26
Nanoc `sassc` filter
@jarrodldavis
jarrodldavis / extract-safari-passwords.applescript
Last active November 14, 2018 00:43
Extract Safari Passwords
global _preferences, _safari, _systemEvents, _passwords, _passwordsLocked, _passwordPrompt
-- BEGIN customization points
--- Change the following global variables as needed for localization
set _preferences to "Preferences…"
set _safari to "Safari"
set _systemEvents to "System Events"
set _passwords to "Passwords"
@jarrodldavis
jarrodldavis / keybase.md
Created August 28, 2016 23:45
keybase.md

Keybase proof

I hereby claim:

  • I am jarrodldavis on github.
  • I am jarrodldavis (https://keybase.io/jarrodldavis) on keybase.
  • I have a public key ASBAtQQuQI2ynPaz1eD4iwP30E4aTZUYu4rbYSqXrNcFOQo

To claim this, I am signing this object:

@jarrodldavis
jarrodldavis / snake.js
Last active August 29, 2015 14:03
MTM450: Snake Bite
var game = (function() {
function generateHexColor() {
return '#' + Math.floor(Math.random() * 16777215).toString(16);
}
var getQueryParam = (function() {
var params = {};
var query = location.search.substr(1);
var _query = query.split("&");