Useing OpenSSL to generate RSA keys for client-server applications
Set up directories
mkdir -p ca client server
#!/bin/sh | |
# Fuzzy find and kill a process. Supports signal codes (-9 etc.) | |
set -e | |
pid="$(ps -ef | fzf | awk '{ print $2}')" | |
kill $@ ${pid} |
#!/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" |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public class ReadOnlyAttribute : PropertyAttribute | |
{ | |
} | |
[CustomPropertyDrawer(typeof(ReadOnlyAttribute))] |
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 |
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) |
#!/bin/bash | |
# reconfigure AWS CLI credentials | |
set -e | |
function requires() { | |
if ! command -v "$1" &>/dev/null; then | |
echo "Requires $1" | |
exit 1 | |
fi |
#!/bin/bash | |
# Declare requirements in bash scripts | |
set -e | |
function requires() { | |
if ! command -v $1 &>/dev/null; then | |
echo "Requires $1" | |
exit 1 | |
fi |
# -*- 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 |
{ | |
"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.", |
mkdir -p ca client server