Skip to content

Instantly share code, notes, and snippets.

View Adron's full-sized avatar
🤘
GSD. Just ping me, I'll get back at ya.

Adron Hall Adron

🤘
GSD. Just ping me, I'll get back at ya.
View GitHub Profile
@Adron
Adron / gimmedocker.sh
Created March 10, 2016 05:12
A bash function to add to your ~/.bash_profile (or ~/.bashrc or whatever)
gimmedocker() { if [ $1 ]; then
docker-machine start $1
docker-machine env $1
eval $(docker-machine env $1)
docker ps -a
fi }
@Adron
Adron / install-terraform-packer-os-x.sh
Last active June 22, 2021 20:28
Install Terraform & Packer on Linux
#!/usr/bin/env bash
# Script prerequisite > install jq > https://stedolan.github.io
# ********************************************************************************************
# UPDATE: Check out Robert's repo here https://github.com/robertpeteuil/terraform-installer
# Robert's repo is more built out and has more options around the installation process.
# Cheers! -Adron
# ********************************************************************************************
cd ~
@Adron
Adron / install-git.sh
Created April 16, 2016 18:08
Install git/unzip/etc w/ apt-get
sudo apt-get update
sudo apt-get install unzip
sudo apt-get -y install git
@Adron
Adron / install-redis.sh
Created April 16, 2016 18:09
Install Redis
sudo apt-get update
sudo apt-get -y install build-essential
sudo apt-get -y install tcl8.5
# Download Redis
curl -O http://download.redis.io/releases/redis-stable.tar.gz
# Unzip Redis
tar xzf redis-stable.tar.gz
cd redis-stable
@Adron
Adron / pass-parameter.sh
Created April 16, 2016 23:43
Pass Parameters to Bash Script
name=$1
if [[ -n "$name" ]]; then
echo "Got $name Parameter."
else
echo "argument error"
fi
#!/usr/bin/env bash
# THIS SHELL IS OUTDATED, PLEASE REFER TO https://gist.github.com/Adron/90863e51c8c5c0ad2049890bcd8abbfb FOR CURRENT INSTALLATION SCRIPT!
cd ~
devopsToolsRoot="DevopsTools"
# Terraform Path & Info
hashiTerraform="terraform_0_6_16"
@Adron
Adron / Wordpress Tainted Syntax - Ugh!?!?
Created September 3, 2016 22:36
wordpress-tainted-syntax-js
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "QueueAccess",
"Action": [
"sqs:ChangeMessageVisibility",
"sqs:DeleteMessage",
"sqs:ReceiveMessage"
],
@Adron
Adron / install-golang-apt-get.sh
Last active March 27, 2024 22:10
Installing golang via apt-get
sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install golang
# Usually this is good to install golang, but alas the apt-get repo is usually out of sync with the latest.
@Adron
Adron / install-golang.sh
Created February 21, 2017 00:43
Installing Golang
# Uninstall the previous version of #Golang > https://golang.org/doc/install#uninstall
curl -O https://storage.googleapis.com/golang/go1.8.linux-386.tar.gz
sudo tar -C /usr/local -zxf go1.8.linux-386.tar.gz
# You can run this with this script and also, don't forget to add it to the appropriate bash file. (~/.bashrc etc)
sudo tar -C /usr/local -zxf go1.8.linux-386.tar.gz
@Adron
Adron / uuid_generation.go
Created March 13, 2017 20:54
Go UUID Creation
package main
import (
"fmt"
"github.com/satori/go.uuid"
)
func main() {
// Creating UUID Version 4
u1 := uuid.NewV4()