Skip to content

Instantly share code, notes, and snippets.

@dooreelko
dooreelko / plain-pb.lua
Last active September 14, 2023 18:58
use hammerspoon to replace "rich" text in pasteboard with plain text version
goodPBContentTypes = {
['public.png']=true,
['public.utf8-plain-text']=true,
['public.utf16-external-plain-text']=true,
['public.utf16-plain-text']=true
}
generalPBWatcher = hs.pasteboard.watcher.new(function(v)
print(string.format("General Pasteboard Contents: %s", v))
generalPBWatcher:stop()
2020/06/12 20:04:05 [INFO] Terraform version: 0.12.24
2020/06/12 20:04:05 [INFO] Go runtime version: go1.12.13
2020/06/12 20:04:05 [INFO] CLI args: []string{"/home/docker/.tfenv/versions/0.12.24/terraform", "plan", "-var-file=dev.terraform.tfvars", "-var", "deployment=auto", "-out=terraform.plan", "-parallelism=1"}
2020/06/12 20:04:05 [DEBUG] Attempting to open CLI config file: /data/jenkins/workspace/re_CPE-692_conformance_pack_just/.terraformrc
2020/06/12 20:04:05 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/06/12 20:04:05 [INFO] CLI command args: []string{"plan", "-var-file=dev.terraform.tfvars", "-var", "deployment=auto", "-out=terraform.plan", "-parallelism=1"}
2020/06/12 20:04:05 [TRACE] Meta.Backend: built configuration for "s3" backend with hash value 1606923757
2020/06/12 20:04:05 [TRACE] Preserving existing state lineage "17a4821b-ee26-6355-3e80-95c0aec57eab"
2020/06/12 20:04:05 [TRACE] Preserving existing state lineage "17a4821b-ee26-6355-3e80-95c0aec57eab"
2020/06/12 20:04:05
type Foobar = 'FOO' | 'BAR';
interface SomeInterface<T extends X, X extends string=Foobar> {
amember: T;
[key: string]: string; // this really has to stay
}
// let's test it
@dooreelko
dooreelko / gist:3bddbf0ae8f1e15bbf7e
Created October 24, 2014 12:16
Make top-3 apps in gmail first-class citizen again
// ==UserScript==
// @name Top 3 apps always visible
// @namespace Doo:Gmail
// @description Moves top 3 apps from drop down back to the top level
// @include https://mail.google.com/*
// @version 1
// @grant none
// @require https://code.jquery.com/jquery-2.1.1.min.js
// ==/UserScript==
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
var w = 960,
h = 500,
nodes = [],
node;