ffmpeg -i input.ts -c copy output.mp4filename="abc"
ffmpeg -i "$filename.ts" -c copy "$filename.mp4"| #!/bin/bash | |
| SRC_FOLDER="$1" | |
| DST_FOLDER="$2" | |
| if [[ -z "$SRC_FOLDER" || -z "$DST_FOLDER" ]]; then | |
| echo "Usage: hardlink.sh <folder_or_file_name> <dest_folder>" | |
| echo "e.g: hardlink.sh sample-folder nice-storage" | |
| echo "Hard link will be created in nice-storage/sample-folder" | |
| exit 0 |
| arr = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] | |
| chunk_three = chunk(arr, 3) | |
| assert chunk_three == [["a", "b", "c"], ["d", "e", "f"], ["g", "h", "i"], ["j"]] | |
| chunk_default = chunk(arr) | |
| assert chunk_default == [["a", "b", "c", "d"], ["e", "f", "g", "h"], ["i", "j"]] | |
| chunk_max = chunk(arr, 1000) | |
| assert chunk_max == [['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']] |
In PowerShell, run:
netsh interface portproxy add v4tov4 listenport=<host post> listenaddress=0.0.0.0 connectport=<wsl port> connectaddress=<wsl IP address>
e.g. forward port 8080 to port 8080
netsh interface portproxy add v4tov4 listenport=8080 listenaddress=0.0.0.0 connectport=8080 connectaddress=172.30.144.20
🔗 https://nickjanetakis.com/blog/install-docker-in-wsl-2-without-docker-desktop
cd /tmpsudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.debsudo dpkg -i google-chrome-stable_current_amd64.debsudo apt install --fix-broken -y