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 / 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 / XZ Backdoor Analysis
Created March 31, 2024 20:24 — forked from smx-smx/XZ Backdoor Analysis
[WIP] XZ Backdoor Analysis and symbol mapping
XZ Backdoor symbol deobfuscation. Updated as i make progress
@jpluimers
jpluimers / broadcaster.py
Created March 20, 2024 12:14 — forked from simahawk/broadcaster.py
python icecast source streamer
# -*- coding: utf-8 -*-
# Inspired by https://github.com/turlando/airhead/blob/master/airhead/broadcaster.py
import click
import os
import shouty
import sys
import logging
logger = logging.getLogger('[broadcaster]')
@jpluimers
jpluimers / AccCheckConsole.txt
Created February 28, 2024 19:15 — forked from bohops/AccCheckConsole.txt
AccChecker LOLBIN [AccCheckConsole.exe]
*Purpose
- UI Accessibility Checker
- Verifies UI accessibility requirements
*LOLBIN Functionality/Steps
1) Go to "Custom Verification Routines" link in reference section and copy the sample verification C# code into Visual Studio.
2) Add proper assembly references (e.g. AccCheck.dll)
3) Insert your C# code under a target method such as Execute()
4) Compile to a .NET managed library (DLL)
5) Invoke the code
export const getThumbnail = (id, size = 300) =>
`https://drive.google.com/thumbnail?id=${id}&sz=${size}`;
export const getIcon = (mimeType) =>
`https://drive-thirdparty.googleusercontent.com/256/type/${mimeType}`;
export const getFile = (id) => `https://drive.google.com/uc?id=${id}`;
const downloadFile = (id) =>