This file contains 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
#!/bin/bash | |
# folder tempat file berada | |
folder_path="." | |
# loop melalui setiap file dalam folder | |
for input_file in "$folder_path"/*.MP4 | |
do | |
# cek apakah file merupakan file video dengan ekstensi .MP4 | |
if [[ -f "$input_file" ]] && [[ "${input_file##*.}" == "MP4" ]]; then |
This file contains 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
{ | |
"version": 2, | |
"builds": [ | |
{ | |
"src": "server.js", | |
"use": "@vercel/node" | |
} | |
], | |
"routes": [ | |
{ |
This file contains 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
#!/bin/bash | |
# folder tempat file berada | |
folder_path="." | |
# loop melalui setiap file dalam folder | |
for input_file in "$folder_path"/*.MOV | |
do | |
# cek apakah file merupakan file video dengan ekstensi .MOV | |
if [[ -f "$input_file" ]] && [[ "${input_file##*.}" == "MOV" ]]; then |
This file contains 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
/* === Nodejs web server === | |
* | |
* dgn module `http` | |
* http.createServer(callback(require, respon)) | |
* .listen(port, hostname, callback()) | |
* | |
* */ | |
const http = require('http') | |
const fs = require('fs') |