Open a terminal:
$ cd ~/Library
$ mkdir KeyBindings
$ cd KeyBindings
$ vi DefaultKeyBinding.dict
# Reference: https://forums.macrumors.com/threads/macos-10-15-catalina-on-unsupported-macs.2183772/page-342?post=28233431#post-28233431 | |
mount -uw / | |
nvram boot-args="-no_compat_check amfi_get_out_of_my_way=1" | |
reboot |
#!/bin/bash | |
counter=0 | |
while [ $counter -lt 1000 ] | |
do | |
echo "checking... $counter" | |
if [[ $(/sbin/mount | awk '$3 == "/Volumes/Docker" {print $3}') != "" ]]; then | |
echo "mounted! wait 10 seconds to start docker..." | |
sleep 10 |
mkdir resized | |
sips -s formatOptions 90 --resampleWidth 1060 *.jpg --out resized |
create database dbname character set utf8mb4 collate utf8mb4_general_ci; | |
create user 'username'@'localhost' identified by 'pass'; | |
grant all privileges on dbname.* to 'username'@'localhost'; | |
flush privileges; |
version: "3" | |
services: | |
web: | |
image: node | |
container_name: node-project-api | |
working_dir: /var/www | |
ports: | |
- 3000:3000 | |
volumes: | |
- ./api:/var/www |
# reference: https://stackoverflow.com/a/47517988/6649757 | |
echo 'foo' | openssl aes-256-cbc -a -salt | |
echo 'U2FsdGVkX1/QGdl4syQE8bLFSr2HzoAlcG299U/T/Xk=' | openssl aes-256-cbc -a -d -salt |