Sunday, 4 December 2022

header image

Ubuntu Driver WLAN TP-Link Archer T3U Plus

Installation The following steps worked with Ubuntu 22.04 sudo apt update; sudo apt install git linux-headers-generic dkms wget https://github.com/RinCat/RTL88x2BU-Linux-Driver/archive/master.zip unzip master.zip cd RTL88x2BU-Linux-Driver-master sudo make uninstall make clean make sudo make install sudo modprobe 88x2bu sudo reboot Update driver on…

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/guzzle defuse/php-encryption cviebrock/eloquent-taggable php artisan vendor:publish –provider=”Cviebrock\EloquentTaggable\ServiceProvider” –tag “config” php artisan vendor:publish –provider=”Cviebrock\EloquentTaggable\ServiceProvider” –tag “migrations” npm i…

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 }

Shopware 6 Cheat Sheet

Open cookie settings again Create a custom link with target /cookie/offcanvas To open the canvas in the correct language, use e.g. /en/ as link prefix Reverse proxy mixed content error ERROR: Mixed Content: The page at ‘https://domain.de/admin’ was loaded over…

Ubuntu increase SWAP file

From https://askubuntu.com/a/1066362 sudo swapoff /swapfile sudo fallocate -l 8G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile Verify: sudo swapon –show Make permanent: echo ‘/swapfile none swap sw 0 0’ | sudo tee -a /etc/fstab

The Docker Compose Cheatsheet

3. Volumes Mounting volumes is essentially required but can cause insane performance issues. Therefore it is very important to configure them correctly to prevent bottlenecks. This issue affects mainly Docker for Mac and Docker for Windows as Linux hosts can…

Nativescript: Gradle build failing from commandline

Cause of the issue: Licenses not accepted To solve the issue: Opt-in: Android Studio > Sdk Manager > SDK Tools > Android SDK Command-Line Tools (latest) Run: ~/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager –licenses Confirm all prompts with y to accept

Install JDK on macOS 10.7+

Requirements: Homebrew 1. Install your favorite JDK version brew tap adoptopenjdk/openjdk brew install –cask adoptopenjdk8 brew install –cask adoptopenjdk9 brew install –cask adoptopenjdk10 brew install –cask adoptopenjdk11 brew install –cask adoptopenjdk12 brew install –cask adoptopenjdk13 brew install –cask adoptopenjdk14 brew…

htaccess force SSL/HTTPS

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Permanent 301 Temporary 302