Skip to content

Instantly share code, notes, and snippets.

@erikdstock
erikdstock / gmail_sorting.md
Last active May 24, 2024 10:16
gmail sorting and filters

source

  1. Move all emails older than 7 days to Archive/All Mail
in:inbox older_than:7d -is:starred
  1. Move all emails you are cc'ed on older than 3 days to Archive/All Mail
cc:me older_than:3d -is:starred
@clin045
clin045 / remove_dust.py
Created February 19, 2021 02:38
Remove dust from an image with IR information in the alpha channel
import cv2
import numpy as np
import argparse
from pathlib import Path
import sys
parser = argparse.ArgumentParser(description="Remove dust from an image with IR information in the alpha channel")
parser.add_argument('image',
@qzm
qzm / aria2.conf
Last active April 27, 2024 04:59
Best aria2 Config
### Basic ###
# The directory to store the downloaded file.
dir=${HOME}/Downloads
# Downloads the URIs listed in FILE.
input-file=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to FILE on exit.
save-session=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0
save-session-interval=60
# Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5
@ravgeetdhillon
ravgeetdhillon / gmail-filters.md
Last active May 18, 2022 12:56
Gmail Filters

Gmail Filters

Filters for turning Gmail into a productive workspace.

All the unread emails

is:unread
@scottgwald
scottgwald / logcat_monitor.py
Last active May 15, 2023 08:00
monitor logcat for a string match
#! /usr/bin/env python
# from http://stackoverflow.com/questions/11524586/accessing-logcat-from-android-via-python
import Queue
import subprocess
import threading
import datetime
class AsynchronousFileReader(threading.Thread):
'''