Skip to content

Instantly share code, notes, and snippets.

View dasmurphy's full-sized avatar

Torsten Stelling dasmurphy

View GitHub Profile
@cruithne3753
cruithne3753 / Hide_Upgrade_Your_Plan_ALL.reg
Last active November 6, 2026 21:48
Hides the 'Upgrade your plan' button in Office 2021/2024 AND Microsoft 365. (Includes Restore option as well.)
Windows Registry Editor Version 5.00
; Hides the 'Upgrade your plan' button in Office 2021/2024 AND Microsoft 365.
; Sets three Office feature switches to false; Office ignores the ones that don't apply to your license.
; No admin rights needed (current user only). Close and reopen Office apps after importing.
; To undo: import Restore_Upgrade_Your_Plan_ALL.reg
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\ExperimentConfigs\ExternalFeatureOverrides\word]
"Microsoft.Office.Licensing.ShowPerpetualUpgrade"="false"
"Microsoft.Office.Licensing.EnablePerpetualUpgrade"="false"
@advixity
advixity / Create a MacOS installer USB (on Windows).md
Last active October 26, 2026 09:32
A (relatively) simple guide to create a Bootable MacOS installer USB on Windows

Create a Bootable MacOS installer USB on Windows

Note! Before proceeding, please make sure that you have a USB flash drive at least 8GB in size. All data will be destroyed on this drive, so please back up your files.

Try this first!

Some awesome guy has made a repo for this exact thing https://github.com/LongQT-sea/macos-iso-builder

Flash resulting DMG with Rufus

@gitname
gitname / README.md
Last active June 10, 2024 09:20
Using `@react-pdf/renderer` with React 18

Using @react-pdf/renderer v3.0.1 with React 18

Introduction

When I tried to use the @react-pdf/renderer package (version 3.0.1) with a React 18 app, two problems arose. In this article, I'll describe those problems and tell you how I solved them.

Update: Here's a video demonstration of the problems and solution described in this article: https://youtu.be/YZP5r7Uy_bU

Problem 1: Dependency Conflict

@luckman212
luckman212 / rgr
Created December 23, 2021 18:25
rgr: quick in-place search and replace using ripgrep + gsed
#!/usr/bin/env bash
case $1 in
-h|--help|'') echo "usage: ${0##*/} <old> <new>"; exit;;
esac
export old="\b$1\b"
export new=$2
rg --files-with-matches -0 "${old}" |
@luckman212
luckman212 / devteamid.sh
Last active September 3, 2026 20:08
grab Apple DEVELOPMENT_TEAM ID from Keychain
#!/usr/bin/env bash
CODESIGN_CN_STRING='Developer ID Application'
#CODESIGN_CN_STRING='Apple Development'
#requires openssl@3 from Homebrew
_openssl=$(brew --prefix openssl 2>/dev/null)/bin/openssl
[[ -x $_openssl ]] || { echo "missing openssl, try \`brew install openssl\`"; exit 1; }
#find development cert
@leimao
leimao / jpeg2pdf.sh
Last active November 20, 2022 13:57
JPEG to PDF Conversion
# MIT License
# Copyright (c) 2021 Lei Mao <https://leimao.github.io/>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@anonymous1184
anonymous1184 / README.md
Last active January 27, 2025 15:15
WinHttpRequest.ahk

WinHttpRequest Wrapper

Usage and information: https://redd.it/mcjj4s

AutoHotkey v2.0

  • [WinHttpRequest.ahk]

AutoHotkey v1.1

@mmguero
mmguero / wwg.sh
Last active May 7, 2026 14:36
a wrapper script for wg/wg-quick/systemctl wireguard operations; supports encrypting/decrypting/using openssl-encrypted wireguard config files with wg-quick up and down
#!/usr/bin/env bash
# wwg.sh
# a wrapper script for wg/wg-quick/systemctl wireguard operations
# https://gist.github.com/mmguero/53f4c9c04ac49c330800e463e4620808/edit
# The idea is you create your wireguard config file (eg, `wg0.conf`),
# then run `wwg.sh enc wg0.conf` to encrypt it. Then, you can use `wwg.sh up wg0.conf`
# which will temporarily decrypt the file, run `wg-quick up` for that interface with
@april
april / arena-macos-full-screen-fixes.sh
Last active August 25, 2026 19:53
Fixes Magic Arena's broken full screen implementation on macOS
#!/bin/bash
# this forces Arena into full screen mode on startup, set back to 3 to reset
# note that if you go into the Arena "Graphics" preference panel, it will reset all of these
# and you will need to run these commands again
defaults write com.wizards.mtga "Screenmanager Fullscreen mode" -integer 0
defaults write com.wizards.mtga "Screenmanager Resolution Use Native" -integer 0
# you can also replace the long complicated integer bit with any other scaled 16:9
# resolution your system supports.
@mmmunk
mmmunk / TempLoggerService.c
Created June 18, 2020 11:14
Very basic Windows Service template in C
// Very basic Windows Service template - maybe not fully correct/complete but it works.
// x86_64-w64-mingw32-gcc -mwindows -municode -O2 -s -o TempLoggerService.exe TempLoggerService.c
// SC create TempLoggerService binpath="C:\Temp\TempLoggerService.exe"
// SC delete TempLoggerService
#include <windows.h>
#include <stdio.h>
#define SERVICE_NAME L"TempLoggerService"