# an example .env file, which has no export keyword
$ cat .env
FOO=BAR123
# an example script uses $FOO
$ cat echo.sh
echo $FOO
On Windows 11:
- Download and install Nvidia GPU Driver for Windows: https://www.nvidia.com/download/index.aspx
- Download and install CUDA Toolkit for Windows: https://developer.nvidia.com/cuda-downloads
NOTE: Nvidia Official doc says, the GPU Driver includes "CUDA Support", which is very confusing. It doesn't mean CUDA is included in Driver. What included is only some support files, not CUDA itself. You still need to install CUDA separately.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name LinkedIn Improve | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-02-28 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.linkedin.com/messaging/thread/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=linkedin.com | |
// @grant GM_addStyle | |
// ==/UserScript== |
from pathlib import Path
FILE = Path(__file__).resolve()
NAME = FILE.stem
HERE = FILE.parent
create db and user:
app=$1
dbuser=$app
dbname=$app
sudo su --login postgres << EOF
createuser --echo ${dbuser};
usage syntax:
ffmpeg input(s) [codec options] output(s)
convert video format:
ffmpg -i input.mov -c copy output.mp4
on AWS, you may see some instance types have instance storage
attr with it. E.g.:
g4dn.xlarge 1 4 16 1 x 125 NVMe SSD --> Instance Storage in GB
This means, when you boot a instance with this type, you will have 2 volumes attached:
- boot volume, default 8G, system installed on it
- instance storage volume, 125G, or 116.4Gi, spare, not in use by default.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" { | |
region = "us-east-1" | |
} | |
resource "aws_s3_bucket" "bucket" { | |
# change this to your own bucket name | |
bucket = "my-test-bucket" | |
# allow to destroy bucket even when not empty | |
force_destroy = true | |
} |
NewerOlder