Skip to content

Instantly share code, notes, and snippets.

kyeotic / marshalling.ts
Last active Feb 12, 2021
DyanmoDB native types
View marshalling.ts
import { marshall } from '@aws-sdk/util-dynamodb'
export { unmarshall } from '@aws-sdk/util-dynamodb'
import type {
} from '@aws-sdk/util-dynamodb'
import type { AttributeValue } from '@aws-sdk/client-dynamodb'
import type {
View mocha.opts
--reporter spec
--require test/support/node
--timeout 3000
kyeotic /
Last active Jan 8, 2016 — forked from isaacs/
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at Note: npm >=0.3 is *safer* when using sudo.
#curl | sh
#echo 'export PATH=$PATH:$HOME/bin/node/bin' >> ~/.bashrc
. ~/.bashrc
mkdir bin -p
cd ~/bin
mkdir node -p
rm -rf install-node
mkdir install-node -p
cd install-node
curl | tar xz --strip-components=1
View boxstarter-work.txt
Set-ExplorerOptions -showHidenFilesFoldersDrives -showFileExtensions
#choco install GoogleChrome
#choco install SublimeText3
#choco install SublimeText3.PackageControl
choco install EthanBrown.ConEmuConfig
choco install ccleaner
#choco install putty
kyeotic / boxstarter-main.txt
Last active Aug 29, 2015
A boxstarter script for all my home apps
View boxstarter-main.txt
Set-ExplorerOptions -EnableShowFileExtensions -EnableShowFullPathInTitleBar
cinst steam
cinst GoogleChrome
cinst greenshot
View renamer.js
var path = require('path'),
fs = require('fs'),
Q = require('Q'),
readDir = Q.denodeify(fs.readdir),
stat = Q.denodeify(fs.stat),
rename = Q.denodeify(fs.rename);
var dirToRead = '$DIRNAME$',
kyeotic / Gruntfile.js
Created Apr 4, 2014
LiveReload with Grunt and Grunt-Express
View Gruntfile.js
// Gruntfile with the configuration of grunt-express and grunt-open. No livereload yet!
module.exports = function(grunt) {
var port = 3000;
// Load Grunt tasks declared in the package.json file
// Configure Grunt
View tests.js
grunt.registerMultiTask('tests', 'Run PhantomJS Tests', function() {
var done = this.async();
var childProcess = require('child_process'),
phantomjs = require('phantomjs'),
path = require('path'),
binPath = phantomjs.path;
var childArgs = [
kyeotic / Gruntfile.js
Last active Jan 3, 2016
A gruntfile for a durandal project
View Gruntfile.js
module.exports = function(grunt){
var files = {
js: [
jsExclude: ['src/client/app/main-built.js'],
htmlIndex: ['src/index.html'],
View ko-autocomplete-build.js
// Knockout JavaScript library v3.0.0
// (c) Steven Sanderson -
// License: MIT (
(function() {(function(q){var y=this||(0,eval)("this"),w=y.document,K=y.navigator,u=y.jQuery,B=y.JSON;(function(q){"function"===typeof require&&"object"===typeof exports&&"object"===typeof module?q(module.exports||exports):"function"===typeof define&&define.amd?define(["exports"],q):q(y.ko={})})(function(F){function G(a,c){return null===a||typeof a in N?a===c:!1}function H(b,c,d,e){a.d[b]={init:function(b){a.a.f.set(b,L,{});return{controlsDescendantBindings:!0}},update:function(b,h,k,m,f){k=a.a.f.get(b,L);h=a.a.c(h());
m=!d!==!h;var p=!k.ob;if(p||c||m!==k.Db)p&&(k.ob=a.a.Ya(a.e.childNodes(b),!0)),m?(p||a.e.S(b,a.a.Ya(k.ob)),a.Ta(e?e(f,h):f,b)):a.e.Z(b),k.Db=m}};a.g.Y[b]=!1;a.e.P[b]=!0}var a="undefined"!==typeof F?F:{};a.b=function(b,c){for(var d=b.split("."),e=a,g=0;g<d.length-1;g++)e=e[d[g]];e[d[d.length-1]]=c};a.s=function(a,c,d){a[c]=d};a.version="3.0.