Skip to content

Instantly share code, notes, and snippets.

# Enter script code
#from autokey_lib import altHigh, altLow, altFull
import os
from pathlib import Path
script_dir = Path(__file__).resolve().parent.resolve()
with open(os.path.join(script_dir, "autokey_lib.py"), 'r') as file:
exec(file.read())
altHigh.move_window()
@kyeotic
kyeotic / marshalling.ts
Last active February 12, 2021 18:15
DyanmoDB native types
import { marshall } from '@aws-sdk/util-dynamodb'
export { unmarshall } from '@aws-sdk/util-dynamodb'
import type {
NativeAttributeValue,
marshallOptions,
} from '@aws-sdk/util-dynamodb'
import type { AttributeValue } from '@aws-sdk/client-dynamodb'
import type {
QueryInput,
--reporter spec
--require test/support/node
--recursive
--timeout 3000
@kyeotic
kyeotic / node-and-npm-in-30-seconds.sh
Last active January 8, 2016 18:07 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
#curl https://gist.githubusercontent.com/tyrsius/7324aaa515ade384cb1c/raw/927e4cd87d54a64c7a4ffc3b14739e5437346c35/node-and-npm-in-30-seconds.sh | 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 https://nodejs.org/dist/v4.2.0/node-v4.2.0.tar.gz | tar xz --strip-components=1
#START http://boxstarter.org/package/nr/url?[URL]
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
kyeotic / boxstarter-main.txt
Last active August 29, 2015 14:05
A boxstarter script for all my home apps
#START http://boxstarter.org/package/url?https://gist.githubusercontent.com/tyrsius/d68433794768b7cdfaae/raw
Set-ExplorerOptions -EnableShowFileExtensions -EnableShowFullPathInTitleBar
#####Apps
cinst steam
cinst GoogleChrome
cinst sublimetext3.app
cinst greenshot
@kyeotic
kyeotic / renamer.js
Created May 9, 2014 04:13
renamer.js
require('colors');
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
kyeotic / Gruntfile.js
Created April 4, 2014 05:52
LiveReload with Grunt and Grunt-Express
// 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
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// Configure Grunt
grunt.initConfig({
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
kyeotic / Gruntfile.js
Last active January 3, 2016 15:19
A gruntfile for a durandal project
module.exports = function(grunt){
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
var files = {
js: [
'src/client/app/**/*.js',
'src/client/lib/durandal/js/plugins/{knockoutActivity,knockoutCommands,knockoutExtensions,qPatch,envPatch}.js'
],
jsExclude: ['src/client/app/main-built.js'],
htmlIndex: ['src/index.html'],