Skip to content

Instantly share code, notes, and snippets.

View claudinec's full-sized avatar

Claudine Chionh claudinec

View GitHub Profile
# Fetch tags followed by one account and follow them from other account.
# Uses Python `toot` client.
argparse --name=mastodon_follow_tags 'f/from=' 't/to=' -- $argv
type -q toot
if test $status -eq 0
set toot_auth_accounts (string match -r "\* .+@.+" (toot auth))
set toot_auth_num (count $toot_auth_accounts)
if test $toot_auth_num -ge 2
set -g mastodon_accounts
@claudinec
claudinec / gist:f54b82780bf0f180b5ef5117c6e6cc68
Last active June 7, 2023 03:37
output of `sudo log show --last 15m | grep "IPN"`
2023-06-07 13:26:30.298792+1000 0x16bf55 Default 0x7fe18e 214 0 runningboardd: (RunningBoard) [com.apple.runningboard:process] Checking PreventLaunch: global:0 exPath:/Applications/Tailscale.app/Contents/PlugIns/IPNExtension.appex/Contents/MacOS/IPNExtension predicates:(null) allow:(null)
0: <string: 0x7f9486a211e0> { length = 91, contents = "/Applications/Tailscale.app/Contents/PlugIns/IPNExtension.appex/Contents/MacOS/IPNExtension" }
2023-06-07 13:26:30.306969+1000 0x16c76f Default 0x0 1 0 launchd: [pid/506/io.tailscale.ipn.macos.network-extension [98039]:] Successfully spawned IPNExtension[98039] because launch job demand
2023-06-07 13:26:30.345484+1000 0x16c67c Default 0x0 1 0 launchd: [pid/98039 [IPNExtension]:] uncorking exec source upfront
2023-06-07 13:26:30.345497+1000 0x16c67c Default 0x0 1 0 launchd: [pid/98039 [IPNExtension]:] created
2023-06-07 13:26:30.346562+1000 0x16cdd5 Ac
@claudinec
claudinec / Coronavirus.js
Last active June 30, 2021 11:03 — forked from planecore/Coronavirus.js
Coronavirus Scriptable Widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: user-md;
// change "country" to a value from https://coronavirus-19-api.herokuapp.com/countries/
const country = "Australia"
const url = `https://coronavirus-19-api.herokuapp.com/countries/${country}`
const req = new Request(url)
const res = await req.loadJSON()
if (config.runsInWidget) {
@claudinec
claudinec / domain-summary.md
Last active April 11, 2019 06:23
domain-summary.md

Domain Summary for <domain>

Prepared by: developer/consultant
For: client
Last updated: date

Everything you need to know to manage <domain>.

A note on passwords: Sharing of passwords should be kept to a minimum and should never be sent over an insecure medium. Wherever possible, create separate accounts for each person who needs access to a system. If passwords need to be shared, either use a password manager that supports sharing, or some other secure encrypted messaging system.

@claudinec
claudinec / pandoc.css
Created January 28, 2017 01:08 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@claudinec
claudinec / buttondown.css
Created January 28, 2017 01:01 — forked from ryangray/buttondown.css
A clean, minimal CSS stylesheet for Markdown, Pandoc and MultiMarkdown HTML output.
/*
Buttondown
A Markdown/MultiMarkdown/Pandoc HTML output CSS stylesheet
Author: Ryan Gray
Date: 15 Feb 2011
Revised: 21 Feb 2012
General style is clean, with minimal re-definition of the defaults or
overrides of user font settings. The body text and header styles are
left alone except title, author and date classes are centered. A Pandoc TOC
@claudinec
claudinec / github-pandoc.css
Created January 28, 2017 00:59 — forked from dashed/github-pandoc.css
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@claudinec
claudinec / taxonomy-term-autocomplete.txt
Created November 28, 2016 05:56
Drupal UI documentation snippets
Start typing to select existing keywords or add new ones. Separate keywords with commas.
@claudinec
claudinec / Domain.md
Created September 27, 2016 02:49
Domain documentation template

Domain documentation template

Registrar

Renewal date.

DNS

Mail