Skip to content

Instantly share code, notes, and snippets.

View mogul's full-sized avatar

Bret Mogilefsky mogul

  • GSA - TTS (and personal projects)
  • San Francisco, CA
  • 03:18 (UTC -07:00)
  • Mastodon @mogul@hachyderm.io
View GitHub Profile
@bengerman13
bengerman13 / conventional-commits.md
Created April 15, 2025 20:01
Nudge yourself to use conventional commits

Nudge yourself to use Conventional Commits

If you want to use conventional commits, but always forget until it's too late, you can edit your commit template to nudge you to use them

# Please follow the conventional commits specification:
# <type>(<scope>): <subject>
#
# Types:
@jimmoffet
jimmoffet / AI_Resume_Cookbook.md
Last active April 9, 2025 14:51
Some tips for using AI to clean up your resume and tailor it for specific jobs

AI Resume Builder Cookbook

I’ve had decent luck with free models with this method (openai and anthropic).

HINT: Turn web search off, it's not good for this unless you're famous. I get much better results copy-pasting the text I care about (resumes, linkedin content and such) directly into the chat, as opposed to attaching files, or worse, pasting links and asking for web search. Unlike when you paste things directly in the chat, file attachments and webpages are chunked and not all chunks make it to the model when responding to any given request.

You should be able to get from a solidly-written linkedin page or federal resume to a decent two pager in under an hour (still requires lots of human editing, show it to friends, etc...).

After that, you should be able to tailor your resume for a specific job description in just a few minutes.

@phocks
phocks / paywall-block-list.txt
Last active August 28, 2025 04:22
Just a list of URLs to block that may or may not affect paywalls on various sites
! Hide "This is your last free article" banners
! REQUIRED: Use "Forget Me Not" to block cookie: pay_ent_msmp@*.newyorker.com
! to actually block the paywall. (Change domain to suit)
! UPDATE 2025: No longer works. Block "build" js instead as below.
! vanityfair.com##.journey-unit__container
! wired.com##.journey-unit__container
! newyorker.com##.journey-unit__container
! gq.com##.journey-unit__container
! Brisbane Times & Fairfax sites
@jacobian
jacobian / books.md
Last active September 25, 2024 16:44
Book recommendations from the Fediverse, June 2024

I asked for book recommendations on the fediverse and oh my goodness got so many suggestions. I wanted to share the list of all that came up in case others want to dig into this stuff. I asked specifically for

  • naturalist writing a la Muir or Abbey but about Alaska (I picked up Arctic Dreams but want more)
  • time travel / multiverse stuff, like Sliding Doors etc
  • great heists, fiction or non-
  • fiction featuring non-traditional families (queer, poly, etc.)
  • fantasy with really weird or different systems of magic, like Max Gladstone's Craft series

So most of this is falls into one of these themes, but also some stuff doesn't. I made this list quickly and sloppily, please forgive mispellings, missing author names, etc. Here's the list, sorted first by most common recs then alpha by title.

choco list --limit-output
# Extract name and find corresponding winget package
| ForEach-Object -Parallel {
$chocoName = $_.Split('|')[0]
Get-WinGetPackage $chocoName -Count 1 |% {
@{
'chocoName' = $chocoName
'wingetPackage' = $_.Name
}
}
@tallesairan
tallesairan / README.md
Created February 7, 2023 20:21
How to unpack .wpress archive files created by the All-in-one-Wp-Migration Wordpress plugin

How to unpack .wpress archive files created by the All-in-one-Wp-Migration Wordpress plugin

Recently I needed to download some files from a Wordpress installation where the client only gave me access to the admin dashboard. Fortunately the All-in-One WP Migration plugin was already installed, so I could take a quick backup of the whole site by downloading the installed plugins, theme and database. To my surprise downloading the backup from the All-in-One WP Migration plugin only gave me a single compressed migration.wpress file that any unpack tool refused to extract. A little web search brought me to a five year old tool called Wpress-Extractor but the provided binaries for MacOS refused to work because the package was already too old.

So I decided to rewrite this little helpful tool in Node.js to make it cross-platform compatible for Windows, MacOS and Linux.

Ok here it is: A simple 2-step tutorial how to extract a file with the .wpress extension on your computer:

  1. Step
@pauloportella
pauloportella / conventional-comments.md
Last active May 7, 2026 08:40
How to setup conventional comments on Github

Conventional comments

Source

You can add all conventional comments Labels to Github as a saved replies by following the following steps:

  1. Go to https://github.com/settings/replies
  2. Open Developer Tools
  3. Copy/Paste above code in JavaScript console
  4. Press enter
@reegnz
reegnz / README.md
Last active March 16, 2026 15:23
The Terraform group_by you've been missing

The Terraform group_by you've been missing

I'm playing around a lot nowadays with Terraform 0.13 and I found a really interesting feature and that's the ... symbol (also called an ellipsis) to be used with for expressions.

The operator can be used for group_by operations.

Example

We have a list of entries. The list contains employee/manager/project triplets.

@DanChaltiel
DanChaltiel / pagebreaks.lua
Created December 30, 2019 10:59
An RMarkdown pandoc filter for MS Word docx output
-- Extension ofTarleb's answer on Stackoverflow (https://stackoverflow.com/a/52131435/3888000) to include docx section ends with portrait/landscape orientation changes.
-- Also uses officer package syntax to create sections breaks
local function newpage(format)
if format == 'docx' then
local pagebreak = '<w:p><w:r><w:br w:type="page"/></w:r></w:p>'
return pandoc.RawBlock('openxml', pagebreak)
else
return pandoc.Para{pandoc.Str '\f'}
@mihow
mihow / load_dotenv.sh
Last active April 20, 2026 14:50
Load environment variables from dotenv / .env file in Bash
# The initial version
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
# My favorite from the comments. Thanks @richarddewit & others!
set -a && source .env && set +a