Live Server $ openssl genrsa -out CA.key -des3 2048 $ openssl req -x509 -sha256 -new -nodes -days 3650 -key CA.key -out CA.pem .vscode/settings.json { "liveServer.settings.port": 5555, "liveServer.settings.root": "/", "liveServer.settings.CustomBrowser": "chrome", "liveServer.settings.https": { "enable": true, "cert": "/Users/abc/cert/localhost.pem", "key":"/Users/abc/cert/localhost.key", "passphrase": "123456" } } Log in to Reply
PowerShell says “execution of scripts is disabled on this system.” Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force https://stackoverflow.com/questions/4037939/powershell-says-execution-of-scripts-is-disabled-on-this-system Log in to Reply
Express Basic Auth const app = require('express')(); const basicAuth = require('express-basic-auth'); app.use(basicAuth({ users: { 'username': 'password' }, challenge: true, })); Log in to Reply
Force the resolution on a headless mac mini server Just hold the ‘Option’ key while you press on ‘Scaled’ button in the display settings in system preferences. This will bring up all available resolutions and you can change to whichever you like. https://apple.stackexchange.com/a/344836 Log in to Reply
gitignore Remember to commit everything you’ve changed before you do this! git rm -rf --cached . git add . https://stackoverflow.com/a/25436481 Log in to Reply
Using ADB to capture the screen adb exec-out screencap -p > test.png https://stackoverflow.com/a/37191719 Log in to Reply
ZSH: Hide computer name in terminal export DEFAULT_USER="$(whoami)" https://stackoverflow.com/a/38362090 Log in to Reply
Live Server
$ openssl genrsa -out CA.key -des3 2048
$ openssl req -x509 -sha256 -new -nodes -days 3650 -key CA.key -out CA.pem
.vscode/settings.json
{
"liveServer.settings.port": 5555,
"liveServer.settings.root": "/",
"liveServer.settings.CustomBrowser": "chrome",
"liveServer.settings.https": {
"enable": true,
"cert": "/Users/abc/cert/localhost.pem",
"key":"/Users/abc/cert/localhost.key",
"passphrase": "123456"
}
}
git config credential.helper store
PowerShell says “execution of scripts is disabled on this system.”
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force
https://stackoverflow.com/questions/4037939/powershell-says-execution-of-scripts-is-disabled-on-this-system
Express Basic Auth
const app = require('express')();
const basicAuth = require('express-basic-auth');
app.use(basicAuth({
users: { 'username': 'password' },
challenge: true,
}));
thisisunsafe
Grouping console messages
link
Question:Wi-Fi does not have an IP address and cannot connect to the internet
link
MacOS App : Damaged and can’t be opened
xattr -cr /path/to/application.app
Force the resolution on a headless mac mini server
Just hold the ‘Option’ key while you press on ‘Scaled’ button in the display settings in system preferences. This will bring up all available resolutions and you can change to whichever you like.

https://apple.stackexchange.com/a/344836
gitignore
Remember to commit everything you’ve changed before you do this!
git rm -rf --cached .
git add .
https://stackoverflow.com/a/25436481
Using ADB to capture the screen
adb exec-out screencap -p > test.png
https://stackoverflow.com/a/37191719
ZSH: Hide computer name in terminal
export DEFAULT_USER="$(whoami)"
https://stackoverflow.com/a/38362090