Skip to content

Instantly share code, notes, and snippets.

View peteruithoven's full-sized avatar

Peter Uithoven peteruithoven

View GitHub Profile
@peteruithoven
peteruithoven / esnextbin.md
Created August 16, 2016 15:07
esnextbin sketch
@peteruithoven
peteruithoven / esnextbin.md
Created August 18, 2016 13:55
esnextbin sketch
@peteruithoven
peteruithoven / esnextbin.md
Last active September 9, 2016 12:54
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
Created October 10, 2016 13:05
esnextbin sketch
@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 / 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 / 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)
}