Skip to content

Instantly share code, notes, and snippets.

include Net
jq '.cards [] | select( .idList | contains("xxxxxxxxxx") ) | select(.closed == false) | .name ' data.json
echo "00:02:00" | awk -F: '{ print ($1 * 3600) + ($2 * 60) + $3 }'
function getObjects(obj, key, val) {
var objects = [];
for (var i in obj) {
if (!obj.hasOwnProperty(i)) continue;
if (typeof obj[i] == 'object') {
objects = objects.concat(getObjects(obj[i], key, val));
} else if (i == key && obj[key] == val) {
objects.push(obj);
}
}
@ahabman
ahabman / cVimrc
Last active October 23, 2017 16:25
map F createActiveTabbedHint
map j scrollFullPageDown
map k scrollFullPageUp
set sortlinkhints
set smoothscroll
let zoomfactor="0.15"
let fullpagescrollpercent="80"
let scrollduration="200"
let blacklists = ["https://mail.google.com/*","https://calendar.google.com/*","https://trello.com/*","https://www.youtube.com/*","https://inbox.google.com/*","https://git.designvox.com/*","http://127.0.0.1/*"]
let hintcharacters = "asdfjklwer"
@ahabman
ahabman / cloud_formation_stack_status_change_desktop_notification.md
Created November 28, 2023 18:27
CloudFormation Stack Status Change Desktop Notifications

CloudFormation Stack Status Change Desktop Notifications

Create EventBridge rule

  • Rule detail: Rule with an event pattern
  • Creation method: Use pattern form
  • Event pattern: AWS services > CloudFormation > CloudFormation Stack Status Change
  • Target 1: SQS queue (create an SQS queue with defaults, but no at-rest encryption)

ITerm2

  • Allow macOS notifications
  • Install shell integration