Skip to content

Instantly share code, notes, and snippets.

@dannberg
dannberg / obsidian-meeting-moc.txt
Last active May 18, 2024 17:03
Dann Berg's Meeting MOC document for Obsidian. Full instructions for implementation here: https://dannb.org/blog/2023/obsidian-meeting-note-template/. See the YouTube tutorial here: https://youtu.be/Ud16HOQoS5Q
[[+Home]] %% tags:: #MOC %%
# Meetings MOC
Meetings are timestamped events with other people, where information is exchanged and collected. Meeting notes are intrinsically ephemeral. They're stored in a separate Space than other Umami notes (`Timestamps/Meetings`) and rarely reviewed. If there's information in a meeting that needs to be accessed later, it should be moved into a more evergreen note in the Umami folder.
**Template:** [[Template, Meeting]]
```meta-bind-button
label: New Meeting
hidden: false
@natanlao
natanlao / contacts.md
Last active January 12, 2023 18:30
Importing birthdays and contact images from Google Contacts to Fastmail

Fastmail offers an automated Google Contacts [import feature][import], and also supports importing contacts by CSV and vCard. Unfortunately, I've noticed that all of these import features are lossy. Regardless of import method:

  • Contact profile pictures stored in Google Contacts are not imported. (Google exports profile photos by including a link to the photo in the CSV.)
  • Birthdays without associated years (i.e., just the month and day) are sometimes not imported at all.
  • Empty ('') phone numbers are sometimes added to contacts. (This issue may have been a result of me trying to fix the two issues above, and not Fastmail
@thesamprice
thesamprice / RemoveDuplicates.scpt
Created October 9, 2019 15:12
Removes duplicate emails from MS outlook on mac.
-- Remove Duplicate Message v2.1
-- An Applescript based on code by Barry Wainwright, 15th October 2010
-- Detects and deletes duplicate messages within a selected folder
-- works on Message-ID header - uniquely identifying duplicates
-- Version History
-- v1.0 - 2002-03-18: First Release (For Microsoft Entourage)
-- v2.0 - 2010-10-07: modified to work with Microsoft Outlook for Mac
-- v2.1 - 2010-10-15: added final dialog to summarise messages removed
-- v2.2 - 2019-10-05: Added progress bar. (Sam Price)
@tgherzog
tgherzog / WBAPI.gs
Last active May 16, 2023 05:19
Google sheets interface to the World Bank API. Paste this code into the Google Sheets script editor to add a custom function.
/**
* Fetches data from the World Bank API
*
* @param {string} indicator The indicator code
* @param {string} country The 2- or 3-character ISO country code
* @param {number} year The optional year. If omitted, fetch most recent available
* @return The data value.
* @customfunction
*/
function WBAPI(indicator, country, year) {
@kkeybbs
kkeybbs / chrome_flags.updated.js
Last active February 5, 2024 07:47
Backup chrome flags to json and restore the backup on another machine.
// 2022-04-03, tested with Chrome 99.0.4844.84 on MacBook Pro m1
/*
Open chrome://flags/
F12 open developer console, swtich to tab "Console"
Paste below codes
- input backup() to download flags backup file
- input restore() to select one backup to restore
*/
function saveFile(filename, data) {
@Zettt
Zettt / packagizer.sh
Last active December 13, 2023 02:47
TextBundle Packagizer -- This is a script that helps to create bundled folders of Markdown files. It downloads online-linked images to an assets directory, as well as copies local files to it. It's not finished yet.
#!/bin/sh
function usage {
echo "This script creates a folder containing all linked ![images]()"
echo "of a Markdown file -- even linked ones from the Internet."
echo ""
echo "It takes one argument: the file it should process."
echo
echo "When a file argument is present, it creates a new folder for:"
echo "a) the Markdown file"
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/