Skip to content

Instantly share code, notes, and snippets.

@ment4list
ment4list / omnivore-epub.js
Last active April 2, 2024 16:49
Omnivore Articles to ePub via ScriptKit script
// Name: Send to Kindle - Omnivore
// This is a script meant to be added to [ScriptKit](https://www.scriptkit.com/) to add your Omnivore articles as an epub.
// Email is sent via AppleScript
import "@johnlindquist/kit"
// Source: https://github.com/agrmohit/omnivore-epub/blob/main/main.ts
import epub from "epub-gen-memory";
import { gql, GraphQLClient } from "graphql-request";
import sanitizeHtml from "sanitize-html";
// ==UserScript==
// @name Focus Mode for Fastmail
// @namespace https://mtlynch.io/
// @version 0.2
// @description Choose when to display new messages in Fastmail
// @author mtlynch
// @match https://www.fastmail.com/mail/*
// @grant none
// @license MIT License
// ==/UserScript==
@kfur
kfur / darkreader.js
Last active January 7, 2025 01:39
Dark Reader userscript for Safari browser
// ==UserScript==
// @name DarkReader
// @match *://*/*
// @grant none
// @run-at document-start
// ==/UserScript==
// MIT License
// Copyright (c) 2019 Alexander Shutau
@benjamineskola
benjamineskola / evening.applescript
Last active November 30, 2022 09:57
Automatically set repeating tasks tagged ‘Evening’ to be done this evening, in Things 3 — updated versions here: https://github.com/benjamineskola/things-scripts/blob/master/evening.applescript
-- run first thing in the morning, e.g., from cron
tell application "Things3"
set theToken to "your-auth-token"
set theTodos to to dos of list "Today"
repeat with aTodo in theTodos
set tagList to tags of aTodo
repeat with aTag in tagList
if (name of aTag as text) is "Evening"
import argparse
import json
import os
import posixpath
import shutil
import subprocess
import tempfile
import requests
@lobstrio
lobstrio / linkedin_extract.py
Created April 24, 2018 11:05
Scraping Linkedin profiles information through Selenium Python
# python package
import csv
import time
import random
import sys
import os
# selenium package
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
@itst
itst / Pinboard.scpt
Last active January 10, 2024 11:40
Import and regularly replicate your Pinboard bookmarks in DEVONthink.
(* Import and update your Pinboard bookmarks to DEVONthink
Based on work done by Christian Grunenberg on Mon Jan 23 2006,
Rafael Bugajewski to support Pinboard instead of Delicious on Sun Dec 19 2010 and
Andreas Zeitler on Sun Mar 03 2011 to display user feedback when finished.
By Sascha A. Carlin <https://sascha.carlin.de/> on 2018-03-07 to set the creation date of new record, show progress bar, use Pinboard Auth Token, use modification date of folder to fetch only recent items
Copyright (c) 2018. All rights reserved. *)
use framework "Foundation"
login
curl -H "Host: cloud.culturedcode.com" -H "Content-Type: application/json; charset=UTF-8" -H "Proxy-Connection: keep-alive" -H "Accept: */*" -H "User-Agent: ThingsMac/20803501mas (x86_64; OS X 10.11.3; en_US)" -H "Authorization: Password pppppwwwwdddd" -H "Accept-Language: en-us" --compressed https://cloud.culturedcode.com/version/1/account/user%40exmaple.com
get key
curl -H "Host: cloud.culturedcode.com" -H "Content-Type: application/json; charset=UTF-8" -H "Proxy-Connection: keep-alive" -H "Accept: */*" -H "User-Agent: ThingsMac/20803501mas (x86_64; OS X 10.11.3; en_US)" -H "Authorization: Password pppppwwwwdddd" -H "Accept-Language: en-us" --compressed https://cloud.culturedcode.com/version/1/account/user%40exmaple.com/own-history-keys
get index
curl -H "Host: cloud.culturedcode.com" -H "Content-Type: application/json; charset=UTF-8" -H "Proxy-Connection: keep-alive" -H "Accept: */*" -H "User-Agent: ThingsMac/20803501mas (x86_64; OS X 10.11.3; en_US)" -H "Accept-Language: en-us" --compressed https:
@BernCarney
BernCarney / FreeNAS11 Media Stack.md
Last active February 22, 2025 07:32
FreeNAS 11 - Jails setup for Plex, NGINX, PlexPy, Sonarr, Radarr, Jackett, Ombi, and Nzbget

FreeNAS 11 setup for Plex, PlexPy, Sonarr, Radarr, Jackett, NZBGet, Organizr, NGinx, and Ombi

I am currently working on updating this guide after updating my media server. I have added notes on things I no longer use but may update those sections in the future for users who still use them. As of now, I have everything working with the exception of Ombi and the plugins I no longer use.

3 xconvmultisort (reverse arrival) (conversations position (1 30)) utf-8 FLAGGED not folder "INBOX.Junk Mail" not folder "INBOX.Trash" not folder "INBOX.Notes"
* XCONVMULTI (("INBOX" 1108730345) ("INBOX.AICSA" 1435285570) ("INBOX.Archive.2014" 1430929570) ("INBOX.Archive.2016" 1495515577) ("INBOX.INBOX.DummyFolder" 1457663261) ("INBOX.INBOX.Expenses.Business" 1455445600) ("INBOX.INBOX.Expenses.MIV" 1458390776) ("INBOX.INBOX.Expenses.Work" 1462245100) ("INBOX.MIV18" 1438554722) ("INBOX.Sent Items" 1203397490)) ((20765a266fec9ece (8 2495)) (e74e1941d02f5be9 (5 161)) (dd72894285154f61 (5 160)) (01dec0aba05a70a2 (8 2396)) (d0a2390ab104bce0 (0 81018)) (e6e41aebda6683f2 (8 2393)) (4d346abcb421091d (8 2388)) (a59ea77a238687b0 (0 80965)) (fc26380d144bcf18 (8 2279)) (99ce16bc3a5becdc (8 2197)) (9d801552f79f58f2 (1 2959)) (12c55050ce5bf725 (8 1776)) (3016f1eec3b4deea (8 1763)) (df32ba8e30ba723b (0 77700)) (3b85a672e820f396 (8 1565)) (6f4a2d9e33735a7d (0 76640)) (f7dad56fded8935d (5 124)) (8698e3e71acaf414 (8 1276)) (50