Skip to content

Instantly share code, notes, and snippets.

Traun Leyden tleyden

View GitHub Profile
HodGreeley / README-Couchbase-Docker.adoc
Last active Sep 12, 2018
Docker Scripts to Simplify Setup with Couchbase
View README-Couchbase-Docker.adoc

Docker Scripts to Simplify Setup with Couchbase

karpathy /
Created May 30, 2016
Training a Neural Network ATARI Pong agent with Policy Gradients from raw pixels
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """
import numpy as np
import cPickle as pickle
import gym
# hyperparameters
H = 200 # number of hidden layer neurons
batch_size = 10 # every how many episodes to do a param update?
learning_rate = 1e-4
gamma = 0.99 # discount factor for reward
chanj / AWS Security Resources
Last active Feb 11, 2019
AWS Security Resources
View AWS Security Resources
I get asked regularly for good resources on AWS security. This gist collects some of these resources (docs, blogs, talks, open source tools, etc.). Feel free to suggest and contribute.
Short Link:
Official AWS Security Resources
* Security Blog -
* Security Advisories -
* Security Whitepaper (AWS Security Processes/Practices) -
* Security Best Practices Whitepaper -
artyom / rpc-tls-client.go
Last active Jan 26, 2019
Go RPC over TLS.You have to create the following keys: certs/client.crt, certs/client.key, certs/server.crt, certs/server.key. client.crt and server.crt should be signed with ca.crt, which should be concatenated to both client.crt and server.crt. It's easier to do with easy-rsa:
View rpc-tls-client.go
package main
import (
func main() {
You can’t perform that action at this time.