Skip to content

Instantly share code, notes, and snippets.

View peteruithoven's full-sized avatar

Peter Uithoven peteruithoven

View GitHub Profile
@peteruithoven
peteruithoven / installed-info.sh
Last active October 30, 2018 15:34
List info on installed applications (Read only)
#!/bin/bash
# Download and run:
# curl -o- [raw gist url] | bash
function list_installed () {
comm -23 \
<(apt-mark showmanual | sort -u) \
<(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)
}
@peteruithoven
peteruithoven / quarter-tiler
Last active March 2, 2023 06:31
Crude quarter tiling tool for elementary OS
#!/bin/bash
# Crude quarter tiling tool
# Installation:
# Move file to: /usr/local/bin/quarter-tiler
# Make executable: sudo chmod +x /usr/local/bin/quarter-tiler
# Assign keyboard shortcuts to commands like "quarter-tiler topleft"
# Margins around windows (elementary OS native apps) (HiDPI)
MARGIN_TOP=130
@peteruithoven
peteruithoven / updateDBs.js
Created May 12, 2017 15:41
Superlogin util to update databases according to configuration
const SuperLogin = require('superlogin');
const superloginConfig = require('../superlogin.config.js');
const DBAuth = require('superlogin/lib/dbauth');
const superlogin = new SuperLogin(superloginConfig);
const { config, userDB } = superlogin;
const dbAuth = new DBAuth(config);
if (!config.getItem('userDBs.defaultDBs')) {
console.log('no userDBs.defaultDBs defined');
@peteruithoven
peteruithoven / esnextbin.md
Created October 10, 2016 13:05
esnextbin sketch
#!/bin/bash
# Usage examples:
#
# Create sd.mp4.gif
# $ gifenc sd.mp4
#
# Create sd.gif
# $ gifenc sd.mp4 sd.gif
#
@peteruithoven
peteruithoven / esnextbin.md
Last active September 9, 2016 12:54
esnextbin sketch
@peteruithoven
peteruithoven / esnextbin.md
Created August 18, 2016 13:55
esnextbin sketch
@peteruithoven
peteruithoven / esnextbin.md
Created August 16, 2016 15:07
esnextbin sketch
'{"data":[{"height":20,"transform":{"metadata":{"library":"CAL","type":"Matrix"},"matrix":[2.532535102433726,0,-15.363289865521766,0,2.532535102433726,30.37459874467367]},"z":0,"sculpt":[1,1,1],"twist":0,"points":[{"metadata":{"library":"CAL","type":"Vector"},"x":-27.51850563144776,"y":7.269115192200452},{"metadata":{"library":"CAL","type":"Vector"},"x":-27.51850563144776,"y":7.269115192200452},{"metadata":{"library":"CAL","type":"Vector"},"x":-27.51850563144776,"y":7.269115192200452}],"type":"FREE_HAND"},{"height":20,"transform":{"metadata":{"library":"CAL","type":"Matrix"},"matrix":[2.532535102433726,0,-15.363289865521766,0,2.532535102433726,30.37459874467367]},"z":0,"sculpt":[1,1,1],"twist":0,"points":[{"metadata":{"library":"CAL","type":"Vector"},"x":-18.90636751164164,"y":3.8242599442779905}],"type":"FREE_HAND"},{"height":20,"transform":{"metadata":{"library":"CAL","type":"Matrix"},"matrix":[2.532535102433726,0,-15.363289865521766,0,2.532535102433726,30.37459874467367]},"z":0,"sculpt":[1,1,1],"twist":0,"
'{"data":[{"height":9,"transform":{"metadata":{"library":"CAL","type":"Matrix"},"matrix":[0.40080160320641284,0,-100.20040080160322,0,0.40080160320641284,-102.60521042084166]},"z":0,"sculpt":[1,1],"twist":0,"points":[{"metadata":{"library":"CAL","type":"Vector"},"x":373.1,"y":192.6},{"metadata":{"library":"CAL","type":"Vector"},"x":382.7,"y":199},{"metadata":{"library":"CAL","type":"Vector"},"x":388.5,"y":205.7},{"metadata":{"library":"CAL","type":"Vector"},"x":392.4,"y":214.4},{"metadata":{"library":"CAL","type":"Vector"},"x":394.2,"y":223.1},{"metadata":{"library":"CAL","type":"Vector"},"x":393.3,"y":231.6},{"metadata":{"library":"CAL","type":"Vector"},"x":390.7,"y":240.4},{"metadata":{"library":"CAL","type":"Vector"},"x":383.9,"y":249.3},{"metadata":{"library":"CAL","type":"Vector"},"x":373.6,"y":257},{"metadata":{"library":"CAL","type":"Vector"},"x":358.7,"y":259.8},{"metadata":{"library":"CAL","type":"Vector"},"x":342.7,"y":256.9},{"metadata":{"library":"CAL","type":"Vector"},"x":331.7,"y":249.2},{"metad