Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Uithoven peteruithoven

View GitHub Profile
@peteruithoven
peteruithoven / installed-info.sh
Last active Oct 30, 2018
List info on installed applications (Read only)
View installed-info.sh
#!/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 Mar 8, 2021
Crude quarter tiling tool for elementary OS
View quarter-tiler
#!/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
Superlogin util to update databases according to configuration
View updateDBs.js
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');
View gifenc
#!/bin/bash
# Usage examples:
#
# Create sd.mp4.gif
# $ gifenc sd.mp4
#
# Create sd.gif
# $ gifenc sd.mp4 sd.gif
#
View Carot-sign
'{"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,"
View dato
'{"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