Skip to content

Instantly share code, notes, and snippets.

@rfong
rfong / compile_tags.py
Created May 17, 2021 22:51
Automatic tag-page generator for all post tags on a Jekyll site. See https://rfong.github.io/rflog/2020/02/28/jekyll-tags/
# Filename: __plugins/compile_tags.py
'''
This script generates tag pages for all your post tags for a
Jekyll site. It is invoked from a plugin after post_write.
Run it from the project root if testing.
Convention expected here for tag names is r/[-\w\d]+/
'''
import glob
@mklement0
mklement0 / Out-HostColored.ps1
Last active March 9, 2024 20:55
PowerShell function that colors portions of the default host output that match given patterns.
<#
Prerequisites: PowerShell version 2 or above.
License: MIT
Author: Michael Klement <mklement0@gmail.com>
DOWNLOAD, from PowerShell version 3 or above:
irm https://gist.github.com/mklement0/243ea8297e7db0e1c03a67ce4b1e765d/raw/Out-HostColored.ps1 | iex
@mklement0
mklement0 / Out-FileUtf8NoBom.ps1
Last active December 23, 2022 15:30
PowerShell function that emulates Out-File for creating UTF-8-encoded files *without a BOM* (byte-order mark).
<#
Prerequisites: PowerShell version 3 or above.
License: MIT
Author: Michael Klement <mklement0@gmail.com>
DOWNLOAD and DEFINITION OF THE FUNCTION:
irm https://gist.github.com/mklement0/8689b9b5123a9ba11df7214f82a673be/raw/Out-FileUtf8NoBom.ps1 | iex
The above directly defines the function below in your session and offers guidance for making it available in future
@narthur
narthur / sendItToMany.sh
Last active March 24, 2022 08:16
Send email attachment to multiple recipients using Mutt
a="address1@gmail.com, address2@gmail.com"
mutt -s "subject" -a file.pdf -- $a
@fbeeper
fbeeper / Readme.md
Created June 19, 2013 17:11
Conditional (and colorful) comments for a happy LaTeX drafting of your PhD thesis or whatever you're doing :)

Conditional (and colorful) comments for LaTeX drafting

With this simple script you'll be able to add colorful:

  • Comments (Orange): Things that you want to say about the text but are not the text),
  • TODOs (Red): Things you want to note to do in the future keep track), and...
  • Skeleton (Green): Those things that you (or maybe it's just me) write to organize what you are writing.

While editing use: