Skip to content

Instantly share code, notes, and snippets.

import codebuild = require('@aws-cdk/aws-codebuild');
import codecommit = require('@aws-cdk/aws-codecommit');
import codepipeline = require('@aws-cdk/aws-codepipeline');
import codepipeline_actions = require('@aws-cdk/aws-codepipeline-actions');
import lambda = require('@aws-cdk/aws-lambda');
import s3 = require('@aws-cdk/aws-s3');
import { App, Stack, StackProps } from '@aws-cdk/core';
export interface PipelineStackProps extends StackProps {
readonly lambdaCode: lambda.CfnParametersCode;
CPU . Intel Core i7 9700K
MBO . Gigabyte z390 Aorus Ultra
GPU . Gigabyte Geforce RTC 2060 OC Pro 3X Windforce
MEM . Corsair Vengeance RGB Pro 32GB (2x16GB) DDR4 3200 (PC4-25600)
SSD . Intel 1 TB SSD M.2
PSU . Corsair AX850
CASE . NZXT H510 Elite
KEYBOARD . CORSAIR K70 RGB MK.2 Mechanical Gaming Keyboard
MOUSE . Corsair IronClaw Wireless/Wired RGB - 18,000 DPI Optical Sensor - Sub-1 ms Slipstream Wireless
a
b
d
console.log("hello world!");
aerospike_a:
environment:
role: sender
destination: aerospike_b,aerospike_c
aerospike_b:
environment:
role: reciever
aerospike_c:
environment:
role: reciever
@cstivers78
cstivers78 / index.js
Created October 31, 2014 18:02
Throttled Operations in Node.js
/**
* usage: node . <ITERS> <OPS>
*
* ITERS - Number of iterations to perform. Each iteration executes OPS operations.
* OPS - Number of operations to perform per iteration.
*/
var aerospike = require('aerospike');
var util = require('util');
@cstivers78
cstivers78 / gist:732ad602d2e877c982e5
Created October 31, 2014 18:02
Throttled Operations in Node.js
/**
* usage: node . <ITERS> <OPS>
*
* ITERS - Number of iterations to perform. Each iteration executes OPS operations.
* OPS - Number of operations to perform per iteration.
*/
var aerospike = require('aerospike');
var util = require('util');
@cstivers78
cstivers78 / 0.lua
Last active December 16, 2015 02:09
function example0(rec, a, b)
local e = 0
rec['a'] = a
e = update(rec)
if e then return "BAD" end
rec['b'] = b
e = update(rec)
@cstivers78
cstivers78 / dbconcur.scala
Created August 24, 2012 07:17
concurrent db calls
val f1 = Future(db("SELECT ..."))
val f2 = Future(db("SELECT ..."))
// creates a single future from the two using `join`
// The for loop, will invoke the futures and return a tuple
// in which each value in the tuple corresponds to a value
// from a future
@cstivers78
cstivers78 / Application.scala
Created August 24, 2012 06:56
dependency injection via implicits
case class Application(implicit db: Database) {
def query(sql: String) = db(sql)
}