Skip to content

Instantly share code, notes, and snippets.

Avatar
🅰️
Working on Angular things!

Johannes Hoppe JohannesHoppe

🅰️
Working on Angular things!
View GitHub Profile
@JohannesHoppe
JohannesHoppe / restart.md
Created Jan 14, 2022
Mac: Restarting sound service
View restart.md
@JohannesHoppe
JohannesHoppe / killadobe.sh
Created Jul 17, 2021
Mac Bash script to kill Adobe Create Cloud and other processes that Adobe forces on us.
View killadobe.sh
#!/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"
View 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 Jul 7, 2021
encfs / osxfuse troubleshooter: What I did to make it running again
View osxfuse_encfs_troubleshoot.md

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 Aug 3, 2020
BitMex USD Converter - For TemperMonkey (copy)
View script.js
// ==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 Jan 17, 2021
How to fix “Compile error in hidden module: AddPDFMakerOption” on Excel for Mac
View AddPDFMakerOption_mac.md

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. 🚀
https://angular.schule/blog/2019-11-ngx-semantic-version
Save a lot of time and automatically…
💎 lint messages
⛏ hook into git lifecycle
📦 bump releases
📖 generate CHANGELOG files
View Remove HP Product Research.md

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

Just move it to the trash.

@JohannesHoppe
JohannesHoppe / docker_stop_remove_all.md
Created Oct 18, 2019
Stop / remove all Docker containers
View docker_stop_remove_all.md

One liner to stop / remove all of Docker containers:

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