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 / 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
@jpluimers
jpluimers / slmgr.bat
Created October 20, 2024 10:42 — forked from mimicscott/slmgr.bat
Reset Windows Activation to pre-key state
:: Open a command prompt as an Administrator.
:: Enter slmgr /upk and wait for this to complete. This will uninstall the current product key from Windows and put it into an unlicensed state.
:: Enter slmgr /cpky and wait for this to complete. This will remove the product key from the registry if it's still there.
:: Enter slmgr /rearm and wait for this to complete. This is to reset the Windows activation timers so the new users will be prompted to activate Windows when they put in the key
slmgr /upk
pause
slmgr /cpky
pause
@jpluimers
jpluimers / slmgr.bat
Created October 20, 2024 10:41 — forked from cchitsiang/slmgr.bat
Reset Windows Activation to pre-key state
Open a command prompt as an Administrator.
Enter slmgr /upk and wait for this to complete. This will uninstall the current product key from Windows and put it into an unlicensed state.
Enter slmgr /cpky and wait for this to complete. This will remove the product key from the registry if it's still there.
Enter slmgr /rearm and wait for this to complete. This is to reset the Windows activation timers so the new users will be prompted to activate Windows when they put in the key
slmgr /ipk 7BNJT-PXJR8-J9G6D-DHJVQ-DV3KQ
slmgr /ato
@jpluimers
jpluimers / readme.md
Created October 18, 2024 18:04
Comment from thread "A method for creating a local account during clean install I have not seen before | Windows 11 Forum"
@jpluimers
jpluimers / index.js
Created September 25, 2024 15:55 — forked from maacpiash/index.js
Download all HD wallpapers from MKBHD's panels.art website
import { createWriteStream } from 'fs'
import { Readable } from 'stream'
import dump from './media-1a-i-p~s.json' with { type: 'json' }
// JSON dump link: https://storage.googleapis.com/panels-api/data/20240916/media-1a-i-p~s
const urls = []
const KEY = 'dhd'
for (let id in dump.data) {
@jpluimers
jpluimers / test
Created August 1, 2024 18:58
test
test

Put images in the comments for preservation

@jpluimers
jpluimers / bookmarklet.url.js
Created July 23, 2024 10:31
Archive.is: prompt canonical URL
javascript:(function(){prompt("Anchor",document.querySelector('link[rel="canonical"]')?.href)})();