Skip to content

Instantly share code, notes, and snippets.

View mogul's full-sized avatar

Bret Mogilefsky mogul

View GitHub Profile
@jacobian
jacobian / books.md
Last active June 26, 2024 03:02
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
@mihow
mihow / load_dotenv.sh
Last active June 14, 2024 02:15
Load environment variables from dotenv / .env file in Bash
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi