Skip to content

Instantly share code, notes, and snippets.

Alex K arkarkark

Block or report user

Report or block arkarkark

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
arkarkark /
Last active Feb 18, 2018 — forked from techouse/
A simple Python 3 script to transfer the data from SQLite 3 to MySQL. Requires MySQL Connector/Python 2.0.4 or higher.
#!/usr/bin/env python3
# pylint: disable=superfluous-parens,old-style-class,invalid-encoded-data,too-many-instance-attributes
# gist -u 88f525e10edd62c7e82788c736e85911 ~/bin/share/
# Originally From:
__author__ = "Klemen Tušar"
__email__ = ""
__copyright__ = "GPL"
__version__ = "1.0.1"
arkarkark / movephotoswithidstoalbum
Created Nov 4, 2017
find photos with an id and move it to a album. JXA.
View movephotoswithidstoalbum
#!/usr/bin/osascript -l JavaScript
// -*- JavaScript -*-
var idJson = {
"errors": [],
"ids": {
"48.jpg": [
arkarkark /
Created Nov 4, 2017
given an array of duplicate image files make montage images and then find the ids of them.
loads `dupes.json` and makes some montage images so you can check the dupes
then find ids of those images for later addition to albums for deletion.
You'll need to edit the comments at the end to change behavior.
arkarkark /
Created Nov 4, 2017
Find duplicate files using file size then sha256 hash. Output json results for later processing.
find photos.photolibrary/Masters -type f -name '*.*' | ./finddupes
Will try and find duplicate images in a photos album and output a file for later processing
file output will be a json format file
["/path/to/img.png", "path/to/img2.png"],
["/path/to/pic.png", "path/to/pic2.png", "path/to/pic4.png]
arkarkark /
Created Aug 1, 2017
closest color to a list of colors in json format
import json
target = "f6efe8"
# kelly more
# curl '' -o colors.json
# behr
// Copyright 2017 Alex K (
// based on GMAIL Snooze
// This source is at
// Add it from the chrome web at
DAY_LABELS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
SKIP_LABELS = ['1 week on', '2 weeks on', '3 weeks on', '4 weeks on']
TIME_OF_DAY_LABELS = ['Morning', 'At Work', 'Tonight', 'Midnight']
You can’t perform that action at this time.