Most important
Shortcut | Operation |
---|---|
s-space | pen toolbar menu |
hold shift | while drawing, straigh line assist |
w | pen context menu |
n | properties panel |
u | active material drop down |
Most important
Shortcut | Operation |
---|---|
s-space | pen toolbar menu |
hold shift | while drawing, straigh line assist |
w | pen context menu |
n | properties panel |
u | active material drop down |
#!/bin/bash | |
# Usage: create-cluster.sh user password port local-port space-separated-ips | |
user=$1 | |
password=$2 | |
port=$3 | |
localPort=$4 | |
ips=$5 |
package main | |
import ( | |
"fmt" | |
"net/mail" | |
"net/smtp" | |
"strings" | |
) | |
var host = "127.0.0.1" |
/var/www/html
in the Vagrant boxc:\Users\username\Work\projects\my-project\repo\html
route -nee
in the VM and look for the gateway address)package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
"strings" | |
"time" |
#!/bin/bash | |
set -euo pipefail | |
openssl req -new -text -passout pass:abcd -subj /CN=localhost -out server.req -keyout privkey.pem | |
openssl rsa -in privkey.pem -passin pass:abcd -out server.key | |
openssl req -x509 -in server.req -text -key server.key -out server.crt | |
chmod 600 server.key | |
test $(uname -s) = Linux && chown 70 server.key | |
docker run -d --name postgres -e POSTGRES_HOST_AUTH_METHOD=trust -v "$(pwd)/server.crt:/var/lib/postgresql/server.crt:ro" -v "$(pwd)/server.key:/var/lib/postgresql/server.key:ro" postgres:12-alpine -c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key |
https://webpack.github.io/docs/webpack-dev-server.html#api | |
If mocking API is needed when running webpack dev server, you can set it up in your webpack config as follows: | |
devServer: { | |
setup: function(app) { | |
// Here you can access the Express app object and add your own custom middleware to it. | |
// For example, to define custom handlers for some paths: | |
// app.get('/some/path', function(req, res) { | |
// res.json({ custom: 'response' }); | |
// }); | |
}, |
var data = { | |
"name": "root", | |
"contents": [ | |
{ | |
"name": "A", | |
"contents": [ | |
{ | |
"name": "fileA1", | |
"contents": [] | |
} |
code () { | |
if [[ $# = 0 ]] | |
then | |
open -a "Visual Studio Code" -n | |
else | |
[[ $1 = /* ]] && F="$1" || F="$PWD/${1#./}" | |
open -a "Visual Studio Code" -n --args "$F" | |
fi | |
} |