Skip to content

Instantly share code, notes, and snippets.

View dev-head's full-sized avatar

dev-head

View GitHub Profile
@dev-head
dev-head / bootstrap.sh
Last active March 3, 2023 17:10
Mac Bootstrap Script
#!/usr/bin/env bash
set -e
#:-{Define Functions Ya'll}------------------------------------------------------------------------------->
function install_brew {
# install xcode cli tools. (required dependency for homebrew and life in general)
if [ ! $(pkgutil --pkgs=com.apple.pkg.CLTools_Executables) ]; then
@dev-head
dev-head / README.md
Created April 14, 2020 06:02
Search EC2 User Data

Search EC2 User Data

Description

Used to find instances that contain user data which matches the provided grep_pattern.

Purpose

This was created because I needed an easy way to search all hosts for specific user data.

@dev-head
dev-head / README.md
Created January 8, 2020 19:29
Install PHP Dependencies Via Composer and Docker

Install PHP Dependencies Via Composer and Docker

  • Install PHP Compose dependencies locally, assuming current directory has a composer.json file already defined.
  • This will run through the install and save the vendors/ directory in your current working directly.
  • This is useful when you don't have the required php or composer version or just want to ensure you don't muck up your local with any odd requirements.
docker run --rm \
@dev-head
dev-head / README.md
Created January 8, 2020 19:27
Install Change Terraform Utility :: HomeBrew

Install Change Terraform Utility

Install

brew tap Yleisradio/terraforms
brew install chtf
@dev-head
dev-head / Dockerfile
Last active August 11, 2021 17:44
Looker : Docker : Docker Compose : Staging
FROM ubuntu:16.04
RUN echo "[INFO]::[installing]::[base packages]" \
&& apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
software-properties-common libssl-dev libmcrypt-dev openssl ca-certificates \
git ntp curl tzdata bzip2 libfontconfig1 phantomjs mysql-client sudo jq \
&& apt-get autoclean && apt-get clean && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN echo "[INFO]::[installing]::[java packages]" \