Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Adam Veldhousen adamveld12

🏠
Working from home
View GitHub Profile
View base.yml
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: ingressroutes.traefik.containo.us
spec:
group: traefik.containo.us
version: v1alpha1
names:
kind: IngressRoute
plural: ingressroutes
@adamveld12
adamveld12 / license-badges.md
Created Nov 21, 2019 — forked from lukas-h/license-badges.md
Markdown License Badges for your Project
View license-badges.md

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

@adamveld12
adamveld12 / ipcalc.go
Created Jan 27, 2019 — forked from kotakanbe/ipcalc.go
get all IP address from CIDR in golang
View ipcalc.go
package main
import (
"net"
"os/exec"
"github.com/k0kubun/pp"
)
func Hosts(cidr string) ([]string, error) {
View arp-packet-scanner.go
package main
import (
"fmt"
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"github.com/google/gopacket/pcap"
"log"
"net"
)
View ScreenshotCamera.cs
using UnityEngine;
using System;
public class ScreenshotCamera
{
static Vector3 FocusPoint;
static float Aperture = 20.0f;
RealTimeSince timeSinceMessage;
string MessageText;
@adamveld12
adamveld12 / dm.sh
Last active Sep 12, 2016
Docker Machine Bash Shortcuts
View dm.sh
# simplifies using docker-machine
function dm() {
local TARGET=$2
if [ -z "$2" ]; then
TARGET="default"
fi
case $1 in
"start" | "up" )
@adamveld12
adamveld12 / debian_jessie.sh
Last active Feb 29, 2016
Linux Setup Scripts
View debian_jessie.sh
apt-get purge lxc-docker*;
apt-get purge docker.io*;
apt-get update;
apt-get install -y apt-transport-https ca-certificates;
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D;
echo "deb https://apt.dockerproject.org/repo debian-jessie main" >> /etc/apt/sources.list.d/docker.list;
apt-get update;
@adamveld12
adamveld12 / gist:1a827a75aca4108baee1
Created Jan 9, 2016 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan
View gist:1a827a75aca4108baee1

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@adamveld12
adamveld12 / nginxproxy.md
Created Nov 30, 2015 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?
View nginxproxy.md

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers