Skip to content

Instantly share code, notes, and snippets.

View dholdaway's full-sized avatar

Darren Holdaway dholdaway

View GitHub Profile
@dholdaway
dholdaway / nginx.conf
Created July 18, 2019 19:45 — forked from shortjared/nginx.conf
AWS API Gateway Nginx Reverse Proxy
# NOTE
#
#
# Use sed on the instance up to replace the INSTANCE_ID and DNS_RESOLVER with the following commands
#
####################################################################################################
# Fetch the private IP for resolving DNS dynamically in nginx
# We also need to escape the `.` from it for usage in later sed
#
# DNS_RESOLVER=`grep nameserver /etc/resolv.conf | cut -d " " -f2 | sed 's/\./\\./g'`

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@dholdaway
dholdaway / install virtualenv ubuntu 16.04.md
Created October 28, 2019 11:22 — forked from frfahim/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@dholdaway
dholdaway / LightFlickerEffect.cs
Created July 13, 2021 22:10 — forked from sinbad/LightFlickerEffect.cs
Unity simple & fast light flicker script
using UnityEngine;
using System.Collections.Generic;
// Written by Steve Streeting 2017
// License: CC0 Public Domain http://creativecommons.org/publicdomain/zero/1.0/
/// <summary>
/// Component which will flicker a linked light while active by changing its
/// intensity between the min and max values given. The flickering can be
/// sharp or smoothed depending on the value of the smoothing parameter.
@dholdaway
dholdaway / install_docker.sh
Created August 2, 2023 16:17
install docker Ubuntu 22.04
#!/bin/bash
# Update the package list
sudo apt-get update
# Install necessary packages
sudo apt-get install ca-certificates curl gnupg
# Create a directory for the keyring
sudo install -m 0755 -d /etc/apt/keyrings
curl -L "https://github.com/docker/compose/releases/download/`curl -fsSLI -o /dev/null -w %{url_effective} https://github.com/docker/compose/releases/latest | sed 's#.*tag/##g' && echo`/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose