Skip to content

Instantly share code, notes, and snippets.

@pcstout
pcstout / ca_import.sh
Created November 21, 2019 16:07
AWS EC2 Linux Script for Importing Certificates Into Your Trust Store
#
# A working version of: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html#UsingWithRDS.SSL-certificate-rotation-sample-script
#
mydir=/tmp/certs
mkdir ${mydir}
truststore=${mydir}/rds-truststore.jks
storepassword=changeit
curl -sS "https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem" > ${mydir}/rds-combined-ca-bundle.pem
#!/usr/bin/env python3
import sys, os, argparse, getpass
import synapseclient
class SynapseUserLookup:
def __init__(self, query, username=None, password=None):
self._query = query
self._username = username
@pcstout
pcstout / react_with_systemjs.html
Created November 8, 2016 22:33
React example with all code in a single HTML file
<html>
<head>
<script src="https://jspm.io/system@0.19.js"></script>
<script type="text/template" id="code">
import React from 'react';
import ReactDOM from 'react-dom';
const Hello = ({name}) => <h1>Hello {name}!</h1>;