Skip to content

Instantly share code, notes, and snippets.

View jpluimers's full-sized avatar

Jeroen Wiert Pluimers jpluimers

  • wiert.me
  • Amsterdam, The Netherlands
View GitHub Profile
@jpluimers
jpluimers / readme.md
Created January 12, 2025 18:29
Images from "Yes, the planet got destroyed. But for a beautiful moment in time we created a lot of value for shareholders." : midjourney - https://old.reddit.com/r/midjourney/comments/1c11pb4/yes_the_planet_got_destroyed_but_for_a_beautiful/

Since Reddit hates deep linking to media, and therefore makes it hard for the Wayback Machine to archive them, here are the images from the above URL.

Comment 2024-04-11T00:46:43.950Z by original poster don1138

Bored. Felt cute. Ran my favorite cartoon through Ai.

The first is DALL-E, the next four through MJ with text prompt, and the last four include an image of the original cartoon in the prompt. I used Firefly to remove text and text balloons from the renders.

@jpluimers
jpluimers / recept.md
Last active March 2, 2025 14:32
Recept van LiboeLBB voor Lasagne - https://x.com/LiboeLBB

Lasagne uit Napels

Ingrediënten:

  • 1 ui
  • 1 stengel bleekselderij
  • 1 wortel
  • voet knoflook
  • blik passata
  • 300g rundergehakt
@jpluimers
jpluimers / add-p.md
Created December 28, 2024 13:03 — forked from mattlewissf/add-p.md
Lightning Talk: Git add -p

git add -p is your friend

git add -p is basically "git add partial (or patch)"

Patch mode allows you to stage parts of a changed file, instead of the entire file. This allows you to make concise, well-crafted commits that make for an easier to read history. This feature can improve the quality of the commits. It also makes it easy to remove parts of the changes in a file that were only there for debugging purposes - prior to the commit without having to go back to the editor.

It allows you to see the changes (delta) to the code that you are trying to add, and lets you add them (or not) separately from each other using an interactive prompt. Here's how to use it:

from the command line, either use

  • git add -p
@jpluimers
jpluimers / readme.md
Last active December 19, 2024 11:04
BMW E61 diversity module corroded

The diversity module of my 2006 BMW E61 was a bit corroded:

image

Removing the corrosion didn't solve the remote unlcoking/locking problem however

image

On the why of the corrosion? Beats me: the innards of the outer housing were fine.

@jpluimers
jpluimers / forecast.php
Created December 11, 2024 14:11 — forked from macsplit/forecast.php
Get Weather from 7Timer!
<?php
date_default_timezone_set('UTC');
$lon = "-0.19759370325694858";
$lat = "51.35956063540873";
$url = "https://www.7timer.info/bin/civil.php?lon=$lon&lat=$lat&unit=metric&ac=0&output=json";
$weathers = [
@jpluimers
jpluimers / .ignore
Created December 5, 2024 14:38 — forked from hereisderek/.ignore
my homebrew install list
dump.list
@jpluimers
jpluimers / old-version-homebrew.md
Created November 6, 2024 12:50 — forked from nickcernis/old-version-homebrew.md
Install an old version with homebrew for macOS
  1. Find the formula for the version you want to install:

    • Visit https://github.com/Homebrew/homebrew-core/tree/master/Formula
    • Click the file with your formula (e.g. “composer.rb”)
    • Click “History” (top right)
    • Click the commit hash for the version you want to download
    • Click the three dots (top right of diff) and choose “view file”
    • Click “Raw” and copy the raw URL from the browser address bar.

    For example, composer 1.10.15 lives here: https://github.com/Homebrew/homebrew-core/blob/9e6e6a1ca8551901bff69d329c7fbb9007064134/Formula/composer.rb

@jpluimers
jpluimers / osx-color-pcl.md
Created November 3, 2024 09:58 — forked from mrmanc/osx-color-pcl
Describes how to set up OS X to print in color to a PCL printer.

You need to have Foomatic-RIP and Ghostscript installed. You can find links to installers on this page: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/pxlmono (alternatively you can install ghostscript using brew with ‘brew install ghostscript’). There is a pxlmono download on that page which contains loads of PPD files for all sorts of printers, but none of them support colour.

Once the dependencies are installed, you can use pxlcolor to generate a PPD file on this page for the printer, or generate a Generic PCL 6/PCL XL Printer PPD file (attached), which allows you to print with colour. http://www.openprinting.org/driver/pxlcolor

Set the printer up using Cups. To do this you need to enable the web interface by running this from a Terminal prompt: cupsctl WebInterface=yes

You can then browse Cups on http://localhost:631/printers/

@jpluimers
jpluimers / macos-iso.md
Created October 31, 2024 10:43 — forked from itsmikita/macos-iso.md
Extract ISO image from macOS Somona installer