Skip to content

Instantly share code, notes, and snippets.

Working on Angular things!

Johannes Hoppe JohannesHoppe

Working on Angular things!
View GitHub Profile
JohannesHoppe /
Created Jan 14, 2022
Mac: Restarting sound service
JohannesHoppe /
Created Jul 17, 2021
Mac Bash script to kill Adobe Create Cloud and other processes that Adobe forces on us.
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"
# Force rebuild the spotlight index from scratch.
# -->
# Turn off spotlight.
sudo mdutil -a -i off
# Remove the index files.
sudo rm -rfv /.Spotlight-V100
JohannesHoppe /
Last active Jul 7, 2021
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!)

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

1. Troubleshoot via verbose mode:

JohannesHoppe / script.js
Last active Aug 3, 2020
BitMex USD Converter - For TemperMonkey (copy)
View script.js
// ==UserScript==
// @name BitMex USD Converter
// @namespace
// @version 0.11
// @description Get some sanity into your gambling.
// @author koinkraft
// @grant none
// @include*
// @include*
// @require
JohannesHoppe /
Last active Jan 17, 2021
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
View custom-route-serializer.ts
import { Params, RouterStateSnapshot, Data } from '@angular/router';
import { RouterStateSerializer, BaseRouterStoreState } from '@ngrx/router-store';
export interface RouterStateWithData<T> extends BaseRouterStoreState {
url: string;
params: Params;
// queryParams: Params;
data: T;
View gist:677e4925d98d3cee3c5da104b0c41ae9
📝Blogged: ngx-semantic-version: enhance your git and release workflow for 🅰️ #Angular by our guest author @d_koppenhagen. 🚀
Save a lot of time and automatically…
💎 lint messages
⛏ hook into git lifecycle
📦 bump releases
📖 generate CHANGELOG files
View Remove HP Product

/Library/Printers/hp/Utilities/HPPU Plugins/ProductImprovementStudy.hptask/Contents/Helpers/HP Product Research

Just move it to the trash.

JohannesHoppe /
Created Oct 18, 2019
Stop / remove all Docker containers

One liner to stop / remove all of Docker containers:

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)