This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function touch { | |
param([string] $file) | |
if(test-path $file) { | |
Set-ItemProperty -Path $file -Name LastWriteTime -Value (get-date) | |
} else { | |
Set-Content -Path ($file) -Value ($null); | |
} | |
<# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- | |
<dict> | |
<key>Comment</key> | |
<string>Citrus Soda! All of the caffeine with none of the yellow 5!</string> | |
</dict> | |
--> | |
<plist version="1.0"> | |
<dict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
function get_error_text { | |
local readonly status="${1}" | |
local message | |
case "${status}" in | |
1) | |
message="Couldn't determine current year!" | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Utility functions for dealing with the environment | |
source "$(dirname ${BASH_SOURCE[0]})/sanity" | |
function environment::read { | |
# @TODO: Check for original allexport setting and return back instead of assuming it's off | |
set -o allexport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Configuration | |
# Certifiate TTL | |
DAYS=3650 | |
# RSA Encryption Bits | |
BITS=2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Something\Somewhere; | |
use Doctrine\ODM\MongoDB\Mapping\ClassMetadata as ODMClassMetadata; | |
use Doctrine\ORM\Mapping\ClassMetadata as ORMClassMetadata; | |
use Doctrine\Common\Persistence\Mapping\ClassMetadata; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface; | |
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; | |
use Symfony\Component\Serializer\Normalizer\NormalizerInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function element(type, newProps, ...children) { | |
const element = document.createElement(type); | |
if (newProps) { | |
Object.entries(newProps).forEach(([key, value]) => { | |
if (typeof value == 'function') { | |
element[key] = value; | |
} else { | |
element.setAttribute(key, value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "James Thomason, Jr", | |
"label": "Full Stack Software Engineer", | |
"picture": "https://avatars.githubusercontent.com/u/691492?s=400&u=0552378d317cc1603b7c39f9e3c652bdcdc09659&v=4", | |
"email": "james@jamesthomasonjr.com", | |
"phone": "(810) 214 0123", | |
"website": "https://jamesthomasonjr.com", | |
"summary": "I am a Full-Stack Software Engineer who is passionate about engineering, architecture, and tooling. I am looking to fill a T-Shaped position in a team that solves interesting and challenging problems with innovative technology.", | |
"location": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/Library/Application Support/iTerm2/Scripts/AutoLaunch/spotify.py | |
# | |
# This script adds a new Status Bar component to iTerm2 that displays now playing information from Spotify | |
from subprocess import Popen, PIPE | |
import iterm2 | |
PREFIX = 'PREFIX' | |
TEMPLATE = 'TEMPLATE' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env fish | |
function _awsup_check_signin --argument-names 'credentials_file' | |
set --erase --universal AWS_ACCESS_KEY_ID | |
set --erase --universal AWS_SECRET_ACCESS_KEY | |
set --export --universal AWS_SHARED_CREDENTIALS_FILE "$credentials_file" | |
set --local account_name (aws iam list-account-aliases --output text --query 'AccountAliases[0]' 2>/dev/null) | |
if test -z "$account_name" |
NewerOlder