Skip to content

Instantly share code, notes, and snippets.

View kennethlynne's full-sized avatar

Kenneth Lynne kennethlynne

View GitHub Profile
<!-- In index.html: <link rel="import" href="components/list-item.html"> -->
<template>
<style>
</style>
<div>Web component, right there</div>
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Setting up your own private and secure VPN",
"Mappings": {
"AWSInstanceType2Arch": {
"High.Speed.VPN-Paid": {
"InstanceType": "t2.medium"
},
"Standard.VPN-Free": {
"InstanceType": "t2.micro"
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormer Beta - template creation prototype application. This tool allows you to create an AWS CloudFormation template from the AWS resources in your AWS account. **Warning** This template creates a single EC2 instance in your account to run the application - you will be billed for the instance at normal AWS EC2 rates.",
"Parameters" : {
"Username" : {
"Description" : "Username to log in to CloudFormer",
"Type" : "String"
@kennethlynne
kennethlynne / circle.yml
Last active February 27, 2016 12:56 — forked from jonah-williams/circle.yml
Automating deployments to Heroku from CircleCI
test:
override:
- bundle exec rspec spec
deployment:
acceptance:
branch: master
commands:
- ./script/heroku_deploy.sh <ACCEPTANCE_HEROKU_APP>:
timeout: 300
@kennethlynne
kennethlynne / sketch2png.js
Last active April 16, 2016 23:58
export png from artboards and slices in sketch
var gulp = require('gulp');
var sketch = require('gulp-sketch');
var argv = require('yargs').argv;
var del = require('del');
var runSequence = require('run-sequence');
var outputDir = './output/';
if (!argv && argv.path) {
throw new Error('path argument missing');
@kennethlynne
kennethlynne / clean-up-git.sh
Created March 23, 2017 09:06
Remove local branches not longer on remote
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
{"v":"4.6.0","fr":60,"ip":0,"op":150,"w":344,"h":76,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 1","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[172,38,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"shapes":[],"ip":0,"op":300,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":2,"ty":4,"nm":"Wireframe Outlines","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[172,38,0]},"a":{"a":0,"k":[172,38,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[2.209,0],[0,0],[0,2.209],[0,0],[-2.209,0],[0,0],[0,-2.209],[0,0]],"o":[[0,0],[-2.209,0],[0,0],[0,-2.209],[0,0],[2.209,0],[0,0],[0,2.209]],"v":[[13,17],[-13,17],[-17,13],[-17,-13],[-13,-17],[13,-17],[17,-13],[17,13]],"c":true}},"nm":"Path 1","mn":"ADBE Vector Shape - Group"},{"ty":"tr","p":{"a":0,"k":[17,17],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k
@kennethlynne
kennethlynne / config.cfg
Last active July 22, 2017 15:12
-novid -tickrate 128 -nojoy -lv -freq 144 -high +exec autoexec.cfg
cl_crosshairalpha "255"
cl_crosshaircolor "5"
cl_crosshaircolor_b "50"
cl_crosshaircolor_r "50"
cl_crosshaircolor_g "250"
cl_crosshairdot "1"
cl_crosshairgap "0"
cl_crosshairsize "5"
cl_crosshairstyle "4"
cl_crosshairusealpha "1"
@kennethlynne
kennethlynne / Delay.tsx
Created October 3, 2017 09:39
Component to delay rendering
import * as React from 'react';
interface IProps {
children: JSX.Element;
delay?: number;
}
interface IState {
wait: boolean;
}
@kennethlynne
kennethlynne / decorateWithSequenceId.js
Created December 8, 2017 11:00
Sequence id on pubnub
const db = require('kvstore');
const console = require('console');
export default (request) => {
const {channels} = request;
const queue = channels
.map((channelName) => {
console.debug(`Get counter for channel "${channelName}"`);