Convert HEIC images to JPEG on Mac

Convert HEIC images to JPEG on Mac

for f in *.HEIC do sips -s format jpeg "${f}" -Z 3000 --out "${f%.*}.jpg" done
read more
Laravel CheatSheet

Laravel CheatSheet

App key php artisan key:generate Migration: Create foreign key $table->foreignIdFor(OtherClass::class); Create full entity php artisan make:model -mc MyNewModel Base libraries spatie/laravel-query-builder rbdwllr/reallysimplejwt nannehuiges/jsend guzzlehttp...
read more
Angular 13 custom TypeScript rules

Angular 13 custom TypeScript rules

File: tsconfig.json "compilerOptions": { "allowSyntheticDefaultImports": true, "noImplicitAny": true, "esModuleInterop": true, "strictPropertyInitialization": false, // to keep backward compatibility "strictNullChecks": false // to keep backward compatibility ...
read more
SSH generate secure RSA key

SSH generate secure RSA key

ssh-keygen -t rsa -b 4096
read more
Individual TSLint rules for subdirectory

Individual TSLint rules for subdirectory

In case you want to have different TSLint rules for a subdirectory, for example a different Angular component selector rule, you just need 2 steps to achieve this. Create a tslint.json in your subdirectory root. Extend from the deafult tslint.json...
read more
Partially disable Angular Material animations

Partially disable Angular Material animations

Different options to disable animations of Angular Material:
read more
Simple Loading Stack with Ionic 3

Simple Loading Stack with Ionic 3

This is a simple Angular Service which handles multiple ionic 3 loaders at the same time. The most recent loader is displayed on top. If it is finished, and other loaders are still pending, the next recent will be shown....
read more
Lumen Middleware – JSON + gzip Response

Lumen Middleware – JSON + gzip Response

<?php namespace App\Http\Middleware; use Closure; class responseHeadersMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $...
read more
Clipboard Browser API

Clipboard Browser API

Note: The API is still experimental and does not work along all browsers! Tested in current version of Google Chrome Desktop Browser. Write text to clipboard javascript function copyToClipboard(text) { navigator.clipboard.writeText(text); } Get text from clipb...
read more
Moment.js drop unused languages

Moment.js drop unused languages

Add plugin to webpack.config.js javascript // Drop unused moment.js languages new webpack.ContextReplacementPlugin( /moment[\/\\]locale$/, /en|fr|de/ ), Read more: – https://webpack.js.org/plugins/context-replacement-plugin/
read more