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 / 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 / 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