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 / amazon-domains.json
Created February 15, 2025 11:27 — forked from juanmanavarro/amazon-domains.json
Amazon operating domains by country.
{
"us": "https://www.amazon.com",
"uk": "https://www.amazon.co.uk",
"ca": "https://www.amazon.ca",
"de": "https://www.amazon.de",
"es": "https://www.amazon.es",
"fr": "https://www.amazon.fr",
"it": "https://www.amazon.it",
"jp": "https://www.amazon.co.jp",
"in": "https://www.amazon.in",
@jpluimers
jpluimers / amazon.md
Created February 15, 2025 10:39 — forked from noraworld/amazon.md
List of country-specific domains for Amazon.com
@jpluimers
jpluimers / Move_Windows_Recovery_Partition.md
Created February 9, 2025 15:30 — forked from jmfernandez/Move_Windows_Recovery_Partition.md
Moving the recovery partition on Windows 10
@jpluimers
jpluimers / gist:7f6c9eb4cb40876b8a0c177e45a73677
Created January 17, 2025 11:23 — forked from sshay77/gist:4b1f6616a7afabc1ce2a
google-search-url-parameters-query-string-
// ==UserScript==
// @name Google Search Better Privacy
// @description Delete unnecessary params and add useful params on Google Search.
// @version 0.0.4
// @include http://*.google.*/search*
// @include http://*.google.*/imgres*
// @include https://*.google.*/search*
// @include https://*.google.*/imgres*
// @exclude http://play.google.com/*
// @exclude http://mail.google.com/*
@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 / 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