Given a structure like:
/
/terraform
/environment
/infra
/other
ssh $1 -Y -t 'export DISPLAY=:0.0 | |
xdotool key --window "$(xdotool search --onlyvisible --class chromium | head -n 1)" F5' |
Given a structure like:
/
/terraform
/environment
/infra
/other
Given a structure like:
/
/terraform
/environment
/infra
/other
From: https://superuser.com/a/556031
ffmpeg -t 6 -i tooltip_gif.mov -vf "fps=10,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 tooltip.gif
async function main () { | |
const actions = [...Array(5)].map((_, i) => new Promise((resolve) => { | |
console.log(`Promise ${i} has started already...`) | |
console.time(`Promise ${i}`) | |
setTimeout(() => { | |
console.log(`Promise ${i} has finished!`) | |
console.timeEnd(`Promise ${i}`) | |
resolve() | |
}) | |
})) |
module.exports = { | |
hash: function (s) { | |
var h = 7; | |
var letters = "acdegilmnoprstuw"; | |
for (var i = 0; i < s.length; i++) { | |
h = h * 37 + letters.indexOf(s[i]); | |
} | |
return h; | |
}, |
const crypto = require('crypto') | |
function createRandomPassword() { | |
return new Promise((resolve, reject) => { | |
crypto.randomBytes(32, (err, buf) => { | |
if (err) return reject(err) | |
resolve(buf.toString('hex')) | |
}) | |
}) | |
} |
Immortalised on my blog here: http://www.codesleuth.co.uk/2016/01/Semantic-UI-Template-for-Paginate-Almost-anything/
This is a template for Paginate (Almost) Anything using Semantic UI. The original dirPagination.tpl.html is written with bootstrap themes.
<div class="ui pagination menu" ng-if="1 < pages.length || !autoHide">
bframes=2:keyint=15:level=4.1:ref=7:b-adapt=2:direct=auto:deblock=-1,-1:analyse=all:me=umh:merange=24:subme=10:trellis=2:psy-rd=1.00,0.15:vbv-bufsize=78125:vbv-maxrate=62500:rc-lookahead=60 |