Skip to content

Instantly share code, notes, and snippets.

View hrvstr's full-sized avatar

Richard Muhler hrvstr

View GitHub Profile
@LBates2000
LBates2000 / com.bluetooth.reset.plist
Last active September 22, 2025 12:23
Hackintosh Bluetooth Reset Fix
<?xml version="1.0" encoding="UTF-8"?>
<!--
On an OpenCore Hackintosh running macOS 15 Sequoia, the NVRAM setting 'bluetoothExternalDongleFailed',
used as part of the Broadcom bluetooth fix, keeps getting reset to '01', which disables bluetooth.
I wrote the following script to address this.
It can be placed in '/Library/LaunchDaemons/' with permissions set using 'sudo chmod 644 com.bluetooth.reset.plist'.
The script will then run on startup to reset the NVRAM value back to '00'.
-->
@jordienr
jordienr / Gradient.js
Created September 12, 2021 00:23
Stripe Mesh Gradient WebGL
/*
* Stripe WebGl Gradient Animation
* All Credits to Stripe.com
* ScrollObserver functionality to disable animation when not scrolled into view has been disabled and
* commented out for now.
* https://kevinhufnagl.com
*/
@vielhuber
vielhuber / index.html
Last active July 21, 2025 10:29
mix-blend-mode for elements inside a fixed header stacking context problem #css
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, minimum-scale=1" />
<title>.</title>
<script>
/* debug switcher */
document.addEventListener('DOMContentLoaded', () => {
document.querySelector('.debug').addEventListener('change', e =>
@SaadBazaz
SaadBazaz / ccdl.command
Last active December 2, 2024 00:02 — forked from ayyybe/ccdl.command
Adobe Offline Package Generator v0.1.2 (macOS only)
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear
Microsoft office and Chrome not working on catalina patcher (Solution) (self.CatalinaPatcher)

submitted 4 months ago by jareza

Hi! mandatory introduction:

I have a mid 2009 Macbook Pro that has Catalina Installed using Dos dude patcher. Works Great

However trying to open Google Chrome gave me an error. That same error was given when trying to open microsoft office.
#!/bin/bash
TIME="10"
URL="https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage"
TEXT="Deploy status: $1%0A%0AProject:+$CI_PROJECT_NAME%0AURL:+$CI_PROJECT_URL/pipelines/$CI_PIPELINE_ID/%0ABranch:+$CI_COMMIT_REF_SLUG%0ALink:+$DOCS_LINK"
curl -s --max-time $TIME -d "chat_id=$TELEGRAM_USER_ID&disable_web_page_preview=1&text=$TEXT" $URL > /dev/null
@tjluoma
tjluoma / km-timemachine-mount-run-unmount.sh
Last active November 15, 2024 10:27
a variation of 'timemachine-mount-run-unmount.sh' meant to be used with Keyboard Maestro
#!/usr/bin/env zsh -f
# Purpose: Once you set the DEVICE,
# this script will mount your Time Machine drive,
# run Time Machine,
# and then unmount the drive
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2020-04-20
@ayyybe
ayyybe / ccdl.command
Last active August 17, 2025 17:55
Adobe Offline Package Builder v0.1.2 (macOS only) --- No longer being maintained.
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear

Change Apple OS X Dock size from Apple Terminal

defaults write com.apple.dock tilesize -int 32; killall Dock

32 is icon size

@imax9000
imax9000 / allow_dark_mode.sh
Last active February 26, 2021 15:56
Allow older applications to use dark mode in Mac OS X 10.14 (some may start crashing)
#!/bin/sh
if [ $# != 2 ]; then
echo "Usage: $0 path/to/application.app [on|off|default]" >&2
exit 1
fi
app="$1"
cmd="$2"