Skip to content

Instantly share code, notes, and snippets.

View avioli's full-sized avatar

Evo Stamatov avioli

View GitHub Profile
@avioli
avioli / synology_find_dupl_photos.sh
Last active November 30, 2021 09:14
Find duplicate photos in my massive photos library
#!/usr/bin/bash
set -e
cd /volume1/photo/
echo "scanning the photo dir - computing hashes"
# Scan the photo dir.
#
# My collection is on a Synology NAS so it has an @eaDir that holds
@avioli
avioli / release.sh
Created October 10, 2019 01:09 — forked from rodydavis/release.sh
Flutter Release Script with Fastlane
#!/bin/bash
echo "App Release Automator by @rodydavis"
action="$1"
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
if [ ${action} = "build" ]; then
@avioli
avioli / macapp.go
Created October 10, 2019 01:09 — forked from mholt/macapp.go
Distribute your Go program (or any single binary) as a native macOS application
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
//
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5
//
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
//
// Example use:
@avioli
avioli / README.md
Created August 18, 2019 13:17
SCRIPT-8

Keybase proof

I hereby claim:

  • I am avioli on github.
  • I am avioli (https://keybase.io/avioli) on keybase.
  • I have a public key whose fingerprint is 66B9 D77D AEEC 2C22 03DE AEB5 B82A FAFD 513A C881

To claim this, I am signing this object:

@avioli
avioli / watch-yt.md
Created September 3, 2018 00:07
Watch YouTube via terminal (not IN terminal)

Watch YouTube via terminal (not IN terminal)

Run this:

hash youtube-dl 2>/dev/null || brew install youtube-dl; hash mpv 2>/dev/null || brew cask install mpv; echo -e '#!/bin/bash\nexec youtube-dl -o - "$@" | mpv --fs -' > ytp && chmod u+x ytp

It installs:

@avioli
avioli / sublime-cli.md
Last active July 11, 2018 23:08 — forked from mikestone14/gist:11193365
Install Sublime Command Line Tool

Install Sublime 3 'subl' Command Line Tool

Check your $PATH if you have /usr/local/bin and if not add the following line to the very beginning of your ~/.bash_profile file (it is a hidden file).

export PATH="/usr/local/bin:$PATH"
# or if you want to be explicit where your SHELL will look for binaries:
# export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
@avioli
avioli / FetchController.js
Last active June 12, 2018 07:06
A Fetch controller (plus Vue support)
/**
* A Fetch controller (plus Vue support)
*
* Copyright 2018 Ionata Digital
*
* Author: Evo Stamatov <evo@ionata.com.au>
* License: BSD 2-clause
*/
import uuidV4 from 'uuid/v4'
export class UnfetchAbortController {
constructor() {
this.signal = {onabort: () => {}}
this.abort = () => this.signal.onabort()
}
}
// modified version of https://github.com/developit/unfetch
// - ponyfill intead of polyfill
// - add support for AbortController
@avioli
avioli / download-helpscout-mailbox.py
Last active October 22, 2017 23:53 — forked from jikamens/download-helpscout-mailbox.py
Python script for doanloding conversations, customers, and attachments from a Help Scout mailbox
#!/usr/bin/env python
"""Download conversations, customers, and attachments from a Help Scout mailbox
Written by Jonathan Kamens (jik@kamens.us).
Released into the public domain.
Email me patches if you have enhancements you'd like me to incorporate. Don't
bother emailing me bug reports or suggestions; this script does exactly what I