Skip to content

Instantly share code, notes, and snippets.

@injust
injust / cp-return-policies.tsv
Last active October 19, 2025 11:41
Canada Post return policies
We can't make this file beautiful and searchable because it's too large.
contactCompanyName contactEmail contactPhone contactPhoneExtension customerNumber policyNumber policyStatus bflfReturns additionalInfoDescEn additionalInfoDescFr additionalInfoLabelEn additionalInfoLabelFr inductionChannel logoUrl returnShippingProduct rsaFlag rsaRequired rsaNumberRequired
Soo Jerky Ltd. [email protected] 604-272-5758 0009243498 PR100013 Active False Both DOM.EP True False False
Club C [email protected] 418-875-1839 399 0001633306 PR100036 Active False Invoice No. Nº facture Both DOM.EP False False False
CHANEL CANADA ULC [email protected] 0001012218 PR100055 Active False Both DOM.EP True False False
NASRI INTERNATIONAL INC [email protected] 514-334-5766 0001645049 PR100064 Active False Order No. Nº commande Both DOM.EP True False False
TOYTEXX INC [email protected] 905-766-1187 0008459140 PR100071 Active False Order No. Nº commande Both DOM.RP True False False
BRAIDS AND WIGS INC [email protected] 2265041321 0009612298 PR100095 Act
#! /usr/bin/env bash
ssh -fN -L PORT:localhost:PORT USER@HOST
@injust
injust / httpx-remove-HTTPStatusError-info-suffix.py
Last active August 25, 2025 16:50
httpx: Remove `HTTPStatusError` info suffix from `raise_for_status()`
from collections.abc import Callable
from functools import wraps
import httpx
def httpx_remove_HTTPStatusError_info_suffix(
raise_for_status: Callable[[httpx.Response], httpx.Response],
) -> Callable[[httpx.Response], httpx.Response]:
@wraps(raise_for_status)
@injust
injust / git-remote-set-head.sh
Last active October 3, 2025 04:52
Git: Set `origin/HEAD`, i.e. the default branch for the `origin` remote
#! /usr/bin/env bash
git remote set-head origin --auto
@injust
injust / brew-autoupdate.sh
Last active September 6, 2025 00:35
Homebrew: Configure auto-update
#! /usr/bin/env bash
brew tap domt4/autoupdate
brew autoupdate start 21600 --upgrade --cleanup --immediate --ac-only
@injust
injust / disable-cmd-ctrl-d.sh
Last active September 6, 2025 00:35
macOS: Disable Look Up in Dictionary shortcut (⌘-ctrl-d)
#! /usr/bin/env bash
# https://apple.stackexchange.com/questions/22785/how-do-i-disable-the-command-control-d-word-definition-keyboard-shortcut-in-os-x/114269#114269
defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 70 '<dict><key>enabled</key><false/></dict>'
@injust
injust / dmoj.user.js
Last active August 25, 2025 16:50
DMOJ: Personal userscript
$(() => {
$('.anime-img').show()
// Dark mode for native HTML elements
const colorScheme = $('<meta>').attr({
name: 'color-scheme',
content: 'light dark'
})
$('head').append(colorScheme)
@injust
injust / gmvault.sh
Last active September 6, 2025 00:35
#! /usr/bin/env bash
./gmvault-v1.9.2-beta-1/gmvault sync --type=custom --db-dir=./gmvault-db/ --passwd --gmail-req=label:gmvault_dl --emails-only --check-db=no --no-compression $EMAIL
@injust
injust / install-nanorc.sh
Last active September 6, 2025 00:35 — forked from BlakeGardner/install nano.sh
nano: Improved syntax highlighting
#! /usr/bin/env bash
brew install gnu-sed nano nanorc
echo 'include "'"$(brew --prefix)"'/share/nanorc/*.nanorc"' >> ~/.nanorc
gsed -i 's/icolor brightnormal/icolor normal/g' $(brew --prefix)/share/nanorc/nanorc.nanorc