Skip to content

Instantly share code, notes, and snippets.

Traun Leyden tleyden

View GitHub Profile
@HodGreeley
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
karpathy / pg-pong.py
Created May 30, 2016
Training a Neural Network ATARI Pong agent with Policy Gradients from raw pixels
View pg-pong.py
""" 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
chanj / AWS Security Resources
Last active Feb 11, 2019
AWS Security Resources
View AWS Security Resources
INTRO
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: http://tiny.cc/awssecurity
Official AWS Security Resources
* Security Blog - http://blogs.aws.amazon.com/security/
* Security Advisories - http://aws.amazon.com/security/security-bulletins/
* Security Whitepaper (AWS Security Processes/Practices) - http://media.amazonwebservices.com/pdf/AWS_Security_Whitepaper.pdf
* Security Best Practices Whitepaper - http://media.amazonwebservices.com/AWS_Security_Best_Practices.pdf
@artyom
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: http://openvpn.net/index.php/open-source/documentation/howto.html#pki
View rpc-tls-client.go
package main
import (
"crypto/tls"
"crypto/x509"
"log"
"net/rpc"
)
func main() {
You can’t perform that action at this time.