Skip to content

Instantly share code, notes, and snippets.

View lbell's full-sized avatar
🏔️

LBell lbell

🏔️
View GitHub Profile
@lbell
lbell / batch-auto-fix.scm
Last active June 7, 2021 22:13 — forked from dbuscombe-usgs/fix
Batch GIMP script for auto-sharpen, white-balance and colour enhance
; Run with: gimp -i -b '(batch-auto-fix "*.jpg" 5.0 0.5 0)' -b '(gimp-quit 0)'
(define (batch-auto-fix pattern
radius
amount
threshold)
(let* ((filelist (cadr (file-glob pattern 1))))
(while (not (null? filelist))
(let* ((filename (car filelist))
(image (car (gimp-file-load RUN-NONINTERACTIVE
@lbell
lbell / gut-blocks-outline.css
Created May 14, 2021 18:44
Add outlines to gutenberg blocks
/* Adds outlines to Gutenberg blocks. Which helps GREATLY with figuring out what's going on*/
.wp-block {
outline: 1px dotted rgba(0, 0, 0, .25);
outline-offset: 5px;
}
@lbell
lbell / hamster2toggl.sql
Last active February 8, 2021 20:37 — forked from oscarfonts/hamster2toggl.sql
SQL query to export Hamster database to toggl time tracker
select
"user@example.com" as 'Email',
date(facts.start_time) as 'Start date',
time(facts.start_time) as 'Start time',
strftime('%H:%M:%S', strftime('%s',facts.end_time) - strftime('%s',facts.start_time), 'unixepoch') as 'Duration',
categories.name as 'Project',
activities.name as 'Description',
tags.name as 'Tags'
from
facts, categories, activities, fact_tags, tags
@lbell
lbell / unfollow.js
Last active November 4, 2020 18:33
Console Script to Unfollow All Friends (and/or Pages and Groups) in Facebook
/*
* Works with new Facebook (2020)
*
* 1) Click Down Arrow menu (top right) -> Settings & Privacy -> News Feed Prefences.
* 2) Choose Unfollow, then select All, Friends Only, Pages Only, etc.
* 3) Scroll to the bottom of the modal window (until all your friends / pages etc untill Facebook can't find any more.
* 4) Copy/Paste this script into your browser console (Chrome: ctrl-shift-j) and hit Enter
*
*/
@lbell
lbell / DeleteGmusicDupes-Python35.py
Last active April 4, 2020 09:43 — forked from TKIPisalegacycipher/DeleteGmusicDupes-Python35.py
Python script to find and delete duplicate tracks from Google Play Music library.
#!/usr/bin/env python
# created by shuichinet https://gist.github.com/shuichinet
# forked from https://gist.github.com/shuichinet/8159878 21 Nov 2015
# using minor edits by fcrimins https://www.reddit.com/user/fcrimins from https://www.reddit.com/r/google/comments/2xzgyv/remove_duplicate_songs_from_google_play_music/csh6mrh
# also using clever edits by Morgan Gothard https://medium.com/@mgothard
# updated for Python 3.5 by John M. Kuchta https://medium.com/@sebvance 22 Nov 2016 (hey I was busy)
# compiled by John M. Kuchta https://medium.com/@sebvance
# thanks to shuichinet, fcrimins and Mr. Gothard for their work