Skip to content

Instantly share code, notes, and snippets.

View jjeising's full-sized avatar

Jannes Jeising jjeising

  • Germany
View GitHub Profile
@jjeising
jjeising / brother-pt-2430pc.md
Created January 5, 2026 13:37
Brother PT-2430PC macOS Driver (2026)

The macOS driver for the label printer Brother PT-2430PC was previously available via the Japanese support site. It is not available anymore, with an additional note:

Microsoft がサポートを終了した Windows OS バージョン、また最新 3 世代より古くなった Mac OS バージョン向けブラザーソフトウェアについては、新規提供・更新を終了させていただきます。

We will no longer provide new software or updates for Brother software for Windows OS versions that are no longer supported by Microsoft, or for Mac OS versions that are older than the most recent three generations.

The driver can still be downloaded via archive.org here:

Download macOS driver

@jjeising
jjeising / th-makerx.rb
Created December 27, 2023 17:04
Th-MakerX Cask
cask "th-makerx" do
version "4.5.1"
sha256 "6c0e812b9283794b545e2edff7ebaa3612a62a19caa0d14dd3d51d8cd9b6bffc"
url "http://www5.wind.ne.jp/miko/mac_soft/th-maker_x/hqx/Th-MakerX_#{version.no_dots}.zip"
name "Th-MakerX"
desc "makes resized image files of dropped image files"
homepage "http://www5.wind.ne.jp/miko/mac_soft/th-maker_x/index-en.html"
depends_on macos: ">= :mojave"
/*
Receive values from a CO2 Monitor via node-hid
AirControl Mini CO2
TFA 31.5006
https://hackaday.io/project/5301-reverse-engineering-a-low-cost-usb-co-monitor/log/17909-all-your-base-are-belong-to-us
*/
acme() {
issue=(/root/.acme.sh/acme.sh --issue -w "/var/www/acme/")
install=(/root/.acme.sh/acme.sh --install-cert --fullchain-file "/etc/ssl/nginx/${1}.pem" --key-file "/etc/ssl/nginx/${1}.key" --reloadcmd "/etc/init.d/nginx reload")
for arg do
issue+=(-d "$arg")
install+=(-d "$arg")
done
"${issue[@]}" && "${install[@]}"
@jjeising
jjeising / guid22.php
Last active May 15, 2018 19:10
SAP ABAP GUID22 in PHP
<?php
/*
guid22 is base64 with a slightly changed alphabet (numbers first)
*/
function guid22(string $string): string {
static $alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+/';
$length = strlen($string);
@jjeising
jjeising / shares.vbs
Created July 6, 2017 19:25
Connect network drives based on old usernames (maybe on other file servers) and based on group membership
On Error Resume Next
Set objSysInfo = CreateObject("ADSystemInfo")
Set objUser = GetObject("LDAP://" & objSysInfo.UserName)
accountNameHistory = objUser.Get("accountNameHistory")
accountName = ""
If IsArray(accountNameHistory) Then
For Each line in accountNameHistory
@jjeising
jjeising / songs.md
Last active June 17, 2019 18:50
Song Presentation Software and File Formats
@jjeising
jjeising / Count Safari Tabs.scpt
Last active March 27, 2022 23:06
Count the number of tabs in Safari.app
set n to 0
set m to 0
tell application "Safari"
repeat with w in windows
try
-- Only count windows not closed yet
if (visible of w) or (miniaturized of w) then
set n to n + (count tabs of w)
set m to m + 1
@jjeising
jjeising / NetflixProfileGateBlocker.user.js
Last active November 13, 2023 01:29
Get rid of Netflix's annoying "Who's watching?" screen
// ==UserScript==
// @name Netflix Profile Gate Blocker
// @description Get rid of Netflix's annoying "Who's watching?" screen
// @include https://www.netflix.com/*
// @version 2.0
// ==/UserScript==
/*
Netflix shows a profile selection window when the
user is inactive for more than 30 minutes.
Software Version | Firmware Version
===================================
4.0 | 2.9
4.2 | 2.12
6.3 | 2.16
6.4.1 | ?
Do you know more corrosponding versions? Fork this gist or comment!