Ubuntu increase SWAP file

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
read more
The Docker Compose Cheatsheet

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.....
read more
Nativescript: Gradle build failing from commandline

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 acc...
read more
Install JDK on macOS 10.7+

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 adoptopenjdk...
read more
htaccess force SSL/HTTPS

htaccess force SSL/HTTPS

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

Laravel: Generate IDE helpers

Add a composer command in the scripts section, so you can run composer run laravel:helper to update all Laravel IDE helpers: "scripts": { "laravel:helper": "php artisan ide-helper:generate && php artisan ide-helper:meta && php artisan ide-helpe...
read more
Docker for Mac: Limit memory allocation

Docker for Mac: Limit memory allocation

The Docker for mac GUI does not allow to configure less than 1GiB as allocated memory. In some cases you might want to configre a lower value, especially when you are limited to available RAM. You can set any value...
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
Windows Subsystem for Linux Configuration

Windows Subsystem for Linux Configuration

Add to .profile → cd ~ && nano .profile # Fix unreadable font colors on folders LS_COLORS="ow=01;36;40" && export LS_COLORS # Alias `gohome` to cd back to windows user home alias gohome="cd /mnt/c/Users/$USER" # Open folder in explorer, `o...
read more