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
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
MacOS Terminal colored output

MacOS Terminal colored output

Add to your .bash_profile: export CLICOLOR=1
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
Add basic IDE/Project config to any npm based app

Add basic IDE/Project config to any npm based app

Preconfigures a new npm based project via script
read more
Use “npm install -g” without sudo

Use “npm install -g” without sudo

ONLY TESTED ON MAC OS! Getting rid of always prefixing sudo when installing a global npm package is pretty easy. Just two steps are needed.
read more
Ionic 3 serve browser with livereload

Ionic 3 serve browser with livereload

1. Add code snippet to package.json File: package.json json "browser": "ionic-app-scripts serve --nobrowser --sourceMap source-map --iscordovaserve --wwwDir platforms/browser/www/ --buildDir platforms/browser/www/build", 2. Launch script Terminal: npm run brow...
read more
Prettier config

Prettier config

prettier.io – Configuration 1. Install prettier as dev dependency npm install --save-dev --save-exact prettier 2. Create prettier config file File: .prettierrc.json json { "printWidth": 120, "tabWidth": 3, "singleQuote": true, "insertPragma": true } &nbs...
read more