Skip to content

Instantly share code, notes, and snippets.

View JohannesHoppe's full-sized avatar
🅰️
Working on Angular things!

Johannes Hoppe JohannesHoppe

🅰️
Working on Angular things!
View GitHub Profile
@JohannesHoppe
JohannesHoppe / howto.md
Created February 29, 2024 08:43
How to disable Spotlight and mds_stores

How to stop mds_stores on Mac?

  1. Launch Terminal and enter the following command: sudo mdutil -a -i off
  2. Type your admin password and hit Return.
  3. Close the Terminal and restart your Mac.
@JohannesHoppe
JohannesHoppe / Error importing PyQt5.md
Created January 5, 2024 11:02
Error importing PyQt5
@JohannesHoppe
JohannesHoppe / fix.md
Created April 17, 2023 13:55
Teams App endless login loop (Mac)
@JohannesHoppe
JohannesHoppe / about.md
Last active July 13, 2022 08:53
Git: reset author for ALL commits

Git: reset author for ALL commits

#!/bin/sh

git filter-branch -f --env-filter '
OLD_EMAIL="xxxxxxxxxxxxxxxxxxxxxxxxxx"
CORRECT_NAME="zzzzzzzzzzzzzzzzz"
CORRECT_EMAIL="yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
@JohannesHoppe
JohannesHoppe / restart.md
Created January 14, 2022 11:32
Mac: Restarting sound service
@JohannesHoppe
JohannesHoppe / killadobe.sh
Created July 17, 2021 08:30
Mac Bash script to kill Adobe Create Cloud and other processes that Adobe forces on us.
#!/bin/bash
echo "\n\n--- Killing Stupid Adobe Auto Load Crap ---\n\n"
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
launchctl unload -w {,~}/Library/LaunchAgents/com.adobe.*.plist
sudo launchctl unload -w /Library/LaunchDaemons/com.adobe.*.plist
echo "\n\n--- Done! ---\n\n"
@JohannesHoppe
JohannesHoppe / fix_spotlight.sh
Created June 10, 2021 10:45
fix_spotlight.sh
#!/bin/sh
# Force rebuild the spotlight index from scratch.
# --> https://apple.stackexchange.com/a/74892
# Turn off spotlight.
sudo mdutil -a -i off
# Remove the index files.
sudo rm -rfv /.Spotlight-V100
@JohannesHoppe
JohannesHoppe / osxfuse_encfs_troubleshoot.md
Last active July 7, 2021 01:58
encfs / osxfuse troubleshooter: What I did to make it running again

encfs / osxfuse troubleshooter

My setup:
macOS High Sierra (10.13.3). I decrypt my cloud-data via encfs, which uses osxfuse. Years ago I used BoxCryptor v1 to encrypt my files, but now I'm on macOS and use free software to decrypt my files. (Hint: Don't use BoxCryptor v2, they switched to a proprietary encryption format!)

Problem:
Suddenly after a reboot encfs wasn't working at all.

1. Troubleshoot via verbose mode:

@JohannesHoppe
JohannesHoppe / script.js
Last active August 3, 2020 14:03
BitMex USD Converter - For TemperMonkey (copy)
// ==UserScript==
// @name BitMex USD Converter
// @namespace https://bitmex.com/
// @version 0.11
// @description Get some sanity into your gambling.
// @author koinkraft
// @grant none
// @include https://bitmex.com/*
// @include https://www.bitmex.com/*
// @require https://code.jquery.com/jquery-2.1.4.min.js
@JohannesHoppe
JohannesHoppe / AddPDFMakerOption_mac.md
Last active January 17, 2021 15:00
How to fix “Compile error in hidden module: AddPDFMakerOption” on Excel for Mac

Caused by Acrobat DC, which installs an add-on that causes the error.

  1. Open the following folder: ~/Library/Group Containers/UBF8T346G9.Office/User Content/Startup/Excel
  2. Remove SaveAsAdobePDF.xlam