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 / 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 / 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 / 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
@JohannesHoppe
JohannesHoppe / settings.json
Created May 18, 2016 12:04
VSCode: proxy settings
// VSCode: Place your settings in this file to overwrite the default settings
{
"http.proxy": "http://user:pass@proxy.com:8080",
"https.proxy": "http://user:pass@proxy.com:8080",
"http.proxyStrictSSL": false
}
@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 / custom-route-serializer.ts
Created November 8, 2019 16:34
Use this in any effect
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;
}
📝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
@JohannesHoppe
JohannesHoppe / Remove HP Product Research.md
Last active October 29, 2019 11:25
Remove HP Product Research

/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 October 18, 2019 09:02
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)
@JohannesHoppe
JohannesHoppe / immutable-array.spec.ts
Last active June 19, 2019 13:05
8 immutable arrays operations you should know
import { ImmutableArray } from './immutable-array';
describe('ImmutableArray', function() {
let abc;
beforeEach(() => abc = ['A', 'B', 'C']);
it('clone() should create a shallow copy of the array', function() {
const result = new ImmutableArray(abc).clone();
expect(result).toEqual(['A', 'B', 'C']);