Skip to content

Instantly share code, notes, and snippets.

Kwyn Alice Meagher kwyn

Block or report user

Report or block kwyn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View load-testing.md

Load Testing Approach.

The theory behind this testing approach is based on Little's Law and USL (Universal Scalability Law) which are explained in more detail in Coda's blog post

One thing left out from the above article is how to go about load testing. In this document I'll go over how to load test variations on infrastructure configurations

You'll need a few key tools:

  • ghz (like gigahertz... get it?) a load testing tool used for gRPC
  • usl go get -u github.com/codahale/usl to install the usl CLI
View scraper-config.json
{
"startDate": "2019-06-15",
"endDate": "2019-09-16"
}
@kwyn
kwyn / regional_autoscale_deploy.yaml
Last active Jan 15, 2019
Regional Autoscaling for GKE using Google Deployment Manager
View regional_autoscale_deploy.yaml
resources:
- name: provision-test
# type: container.v1beta1.cluster
type: gcp-types/container-v1beta1:projects.locations.clusters
properties:
# Region that the cluster will be deployed to
parent: 'projects/kwyn-testbed/locations/us-west1'
cluster:
loggingService: logging.googleapis.com
initialClusterVersion: "1.11.5-gke.5"
View keybase.md

Keybase proof

I hereby claim:

  • I am kwyn on github.
  • I am kwyn (https://keybase.io/kwyn) on keybase.
  • I have a public key whose fingerprint is 3CA8 9258 4F68 A954 D94A 2E12 BDF8 2FFA 41F0 9784

To claim this, I am signing this object:

@kwyn
kwyn / NanoSpring_Script.awk
Created May 9, 2016
Carve a nanospring out of a 3d point file
View NanoSpring_Script.awk
BEGIN{
#define PI for program
PI=3.14159;
#define radius of spring form, helical body radius
r=6;
#define pitch
p=7;
b= p/(2*PI);
#define diameter of spring wire and radius, cross-sectional thickness
d=4;
View programming_life_tips.md
  • Devote 90 minutes a day to "practice"
    • practice = working on something fun with a path
  • Build to learn not to use/finish
  • Seven Slotted Learning Todo List
    • Strict seven slots
    • When it's full and you want to add something remove something and place in a "someday" file in your digital notepad of choice
  • Manage anxiety by converting to apathy or control
  • Apathy to get things done and avoid dread
@kwyn
kwyn / bloom.js
Created Sep 11, 2015
Bloom filter in JavaScript because reasons.
View bloom.js
var BloomFilter;
(function(){
BloomFilter = function(length){
this._limit = length;
this._storage = makeStorage.call(this);
}
var makeStorage = function(){
var that = this;
View trigger function
function trigger (match, offset, func){
var trigger_height = $(match).offset().top + offset;
var element_height = $(match).height();
$(window).on('scroll-tick', function() {
var scrolltop = $(window).scrollTop();
if(scrolltop > trigger_height && scrolltop < trigger_height + element_height){
func();
}
});
}
View config.js
var config = module.exports = {};
config.server = {
views: {
engines: {
jade: require('jade')
},
basePath: __dirname,
path: './templates',
partialsPath: './templates/partials',
@kwyn
kwyn / jsx.sublime-snippet
Created Sep 6, 2014
jsx autocomplete snippet for /** @jsx React.DOM */ declaration
View jsx.sublime-snippet
<snippet>
<content><![CDATA[/** @jsx React.DOM */]]></content>
<tabTrigger>jsx</tabTrigger>
<scope>source.js</scope>
<description>jsx declerations</description>
</snippet>
You can’t perform that action at this time.