- docker rootless mode
- sdkman
- nvm
- ulauncher with fz
- fusuma scratch pad gesture
- intellij
- visual studio code
- signal
- firefox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name AWS account name label in AWS Console | |
// @namespace userscripts | |
// @version 0.2 | |
// @description Adds AWS account name label to navigation bar in AWS Console | |
// @author [email protected] | |
// @match https://*.console.aws.amazon.com/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<style> | |
*, |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
exec 2>&1 | |
export PATH=/usr/local/bin:$PATH | |
for image in "$@" | |
do | |
if [ -s "$image" ]; then | |
filename=$(basename "$image") | |
dirname=$(dirname "$image") | |
mkdir -p "$dirname"/watermarked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Bamboo Script File Repo Link | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description add link to script file in stash repository | |
// @author [email protected] | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js | |
// @include *://*/*/*editBuildTasks.action* | |
// @include *://*/*/*configureEnvironmentTasks.action* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict" | |
var events = require("events") | |
var ev = new events.EventEmitter() | |
var log = console.log.bind(console) | |
process.on('unhandledRejection', function(reason, p) { | |
log(`Possibly Unhandled Rejection at: Promise ${p} reason: ${reason}`) | |
}) | |
process.on('uncaughtException', function(err) { | |
log(`Caught exception: ${err}`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('experiments with done', ()=>{ | |
describe('- correct usage -', ()=>{ | |
it('should fail because of async expect failure, and failure is assigned to correct spec', (done)=>{ | |
new Promise(function(res, rej){ | |
setTimeout(res, 1000) | |
}).then(()=>{ | |
expect(1).toEqual(11) | |
}).catch().then(done) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
var fs = require('fs') | |
var inFile = '19.txt' | |
var content = fs.readFileSync(inFile, {encoding: 'UTF-8'}) | |
var lines = content.split('\n') | |
var text = lines[lines.length -1] | |
var termLines = lines.slice(0,-1).filter(String) | |
var permutations = [] |
NewerOlder