mkdir -p ca client server
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
#!/bin/sh | |
# Fuzzy find and kill a process. Supports signal codes (-9 etc.) | |
set -e | |
pid="$(ps -ef | fzf | awk '{ print $2}')" | |
kill $@ ${pid} |
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 python3 | |
from argparse import ArgumentParser | |
import os | |
import subprocess | |
proxy_host = os.getenv('PROXY_HOST', default='http-gw.mycompany.com') | |
proxy_port = os.getenv('PROXY_PORT', default='80') | |
base_java_opts = os.getenv("BASE_JAVA_OPTS", "") | |
on_network = "MyCompany On Network" |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public class ReadOnlyAttribute : PropertyAttribute | |
{ | |
} | |
[CustomPropertyDrawer(typeof(ReadOnlyAttribute))] |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
// Simple camera follow system | |
public class CameraFollow : MonoBehaviour | |
{ | |
// The target to follow | |
public Transform Target; | |
// Position offset from target |
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
from __future__ import print_function | |
import argparse | |
import boto3 | |
def copy_table(source, target): | |
dynamodb = boto3.resource("dynamodb") | |
source_table = dynamodb.Table(source) | |
target_table = dynamodb.Table(target) |
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
#!/bin/bash | |
# reconfigure AWS CLI credentials | |
set -e | |
function requires() { | |
if ! command -v "$1" &>/dev/null; then | |
echo "Requires $1" | |
exit 1 | |
fi |
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
#!/bin/bash | |
# Declare requirements in bash scripts | |
set -e | |
function requires() { | |
if ! command -v $1 &>/dev/null; then | |
echo "Requires $1" | |
exit 1 | |
fi |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Requires the vagrant-vbguest plugin | |
# vagrant plugin install vagrant-vbguest | |
Vagrant.configure("2") do |config| | |
config.vm.box = "centos/7" | |
# sets up the parent directory as the synced folder, so you can place the Vagrantfile in a sub-dir in your workspace |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "AWS CloudFormation deploys a Windows machine used for Steam", | |
"Parameters": { | |
"AWSAMI": { | |
"Description": "Choose the AMI ID for your Steam machine. This should be a Windows Server 2012 R2 instance and the ID will look like ami-XXXXXXXX", | |
"Type": "AWS::EC2::Image::Id" | |
}, | |
"AWSSubnet": { | |
"Description": "Choose a subnet for the Steam instance.", |
NewerOlder