Skip to content

Instantly share code, notes, and snippets.

View jewelsjacobs's full-sized avatar
:octocat:
Working

Julia Jacobs jewelsjacobs

:octocat:
Working
View GitHub Profile
@jewelsjacobs
jewelsjacobs / cdk.json
Created August 20, 2019 14:52 — forked from btotharye/app.py
CDK Python VPC with Flow Logs
{
"app": "python3 app.py",
"context": {
"serviceName": "vpc-cdk",
"dev": {
"cidr": "10.60.0.0/16",
"vpcAzCount": 1,
"region": "us-east-1"
}
}
@jewelsjacobs
jewelsjacobs / DynamoDbWriter.js
Created January 5, 2019 18:28 — forked from mike-hogan/DynamoDbWriter.js
Nodejs DynamoDB writer with exponential back off
"use strict";
var fs = require('fs');
var path = require('path');
var AWS = require('aws-sdk');
var util = require('util');
var stream = require('readable-stream');
var _ = require('lodash');
exports.handler = (event, context, callback) => {
var AWS = require('aws-sdk');
AWS.config.update({region: 'eu-west-1'}); // configure region
const athena = new AWS.Athena();
athena.getNamedQuery({ NamedQueryId: '<your-query-id>' }, function(err, data) {
console.log('getNamedQuery', err, data);
if (!err) {
var params = {
QueryString: data.NamedQuery.QueryString,
@jewelsjacobs
jewelsjacobs / SimpleChat.cs
Last active July 18, 2018 20:52 — forked from heartgamer/SimpleChat.cs
[HTTP socket.io Example For Unity] BEST HTTP socket.io example. #unity3D #hololens #vr #ar
using UnityEngine;
using System.Collections;
using System;
using BestHTTP;
using BestHTTP.SocketIO;
public class SimpleChat : MonoBehaviour {
public UILabel lblChatMessages;
@jewelsjacobs
jewelsjacobs / nodejs_asymm_crypto_sample.js
Last active July 18, 2018 20:52 — forked from bithavoc/nodejs_asymm_crypto_sample.js
[Asymmetric Encryption Sample in Node.js] Encrypt and Decrypt using Password as a key(SECRET_KEY) / Triple-DES. #encryption #nodejs
/*
Asymmetric Encryption Sample in Node.js: Encrypt and Decrypt using Password as a key(SECRET_KEY)
Algorithm: des-ede3-cbc (Three key Triple-DES EDE in CBC mode)
johan@firebase.co
@thepumpkin
*/
var assert = require('assert')
var crypto = require('crypto')
var Buffer = require('buffer').Buffer
@jewelsjacobs
jewelsjacobs / slack2html.php
Last active July 18, 2018 20:17 — forked from levelsio/gist:122907e95956602e5c09
[SlackToHTML] Script to convert slack chat logs to HTML #slack
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//