Skip to content

Instantly share code, notes, and snippets.

import csv
import argparse
from datetime import datetime
import os
from rich import print
key_website = 'Website'
key_order_date = 'Order Date'
key_total_cost = 'Total Owed'
key_name = 'Product Name'
alias dtail='docker logs -tf --tail='50' '
alias dstop='docker stop `docker ps -aq`'
alias drm='docker rm `docker ps -aq`'
alias dcp='docker-compose -f ~/docker-compose.yml '
alias dcporph='docker-compose -f ~/docker-compose.yml up -d --remove-orphans'
alias dprune='docker image prune'
alias dprunesys='docker system prune --all'
@yokoffing
yokoffing / ghostery_setup.md
Last active June 22, 2023 17:30
Ghostery setup
Updated: 8 March 2023
version: 8.9.9
Ghostery MV2 (Firefox)

Ghostery Setup

This is my personal setup. Your preferences may differ.

Settings

@startergo
startergo / mas-cli.md
Last active March 9, 2024 16:19
Find Application ID's for mas-cli (Mac App Store) download

In systems up to 10.11.6 you can save the "Purchased" page as html file to disk:

  • Quit App Store.app
  • Open Terminal.app in /Applications/Utilities
  • Enter:
defaults write com.apple.appstore ShowDebugMenu -bool true

and hit the Return/⏎ key to show the debug menu in App Store.app.

  • Open App Store.app (check that the Debug menu is available!)
@jasonsnell
jasonsnell / weatherkit-sampleproject.py
Last active January 10, 2025 05:47
WeatherKit API sample
#! /usr/bin/env python3
import time
import jwt
import json
import requests
from datetime import datetime
from collections import defaultdict
import matplotlib.pyplot as plt
@mbierman
mbierman / logspeed.sh
Last active January 25, 2024 14:26
Log speedtest results on Firewalla
#!/bin/bash
# https://gist.github.com/mbierman/6a32df2909202c373a6a39063181dc40
# v 0.4.1
BASEDIR=$(dirname $0)
IFTTTKEY="$(cat $BASEDIR/IFTTT.data | grep IFTTTKEY| cut -f2 -d "=" )"
EVENT="FWspeedtest"
log=/data/logs/logspeed.log
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UnifiedBar</key>
<dict>
<key>DisclosureRequired</key>
<string>ace440ac-b4f6-4b43-aade-02bba1589aef</string>
<key>Enabled</key>
<false/>
@abjugard
abjugard / macrumors-filter.user.js
Last active November 20, 2024 13:50
MacRumors filter
// ==UserScript==
// @name Remove useless articles on MacRumors
// @namespace https://github.com/abjugard/
// @version 1.14
// @description Removes promos on MacRumors
// @author Adrian Bjugård
// @match https://www.macrumors.com/
// @match https://www.macrumors.com/*/
// @icon https://www.google.com/s2/favicons?domain=macrumors.com
// @grant none
@organicaudio
organicaudio / safari-v14-experimental-features-defined.md
Last active August 2, 2024 11:59
Safari 14 Experimental Features - Functions Defined and Explained

Safari 14 Experimental Features - Functions Defined and Explained

COMPLETED CONTENT

############################################################################################

ASTC Texture Support: ASTC stands for Adaptive Scalable Texture Compression, a lossy block-based texture compression algorithm. **Async Frame Scrolling **– Make an iframe scrollable on iOS, or more smoothly.

Accessibility Object Model: The Accessibility Object Model (or called AOM), an experimental JavaScript API that allows developers to modify the browser accessibility tree, has four phases, and supports for phase one recently landed in Chrome Canary behind the flag.

This page is now depreacted!

Check out the repo instead. The Wisdom of Quinn Now with 100% more archived PDFs.

The Wisdom of Quinn

Informative DevForum posts from everyone's favorite DTS member.

(Arranged newest to oldest)