Skip to content

Instantly share code, notes, and snippets.

View syuhendar729's full-sized avatar
🎯
Focusing

Syuhada Rantisi syuhendar729

🎯
Focusing
View GitHub Profile
@syuhendar729
syuhendar729 / scmp4-linux.sh
Created February 9, 2024 16:34
File Script Compress Video MP4 FFMPG
#!/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
@syuhendar729
syuhendar729 / vercel.json
Created July 12, 2023 14:39
Configuration vercel for deploy Back End with MongoDB, Express, and Nodejs
{
"version": 2,
"builds": [
{
"src": "server.js",
"use": "@vercel/node"
}
],
"routes": [
{
#!/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
@syuhendar729
syuhendar729 / app.js
Created July 5, 2021 14:20
File nodejs web server
/* === Nodejs web server ===
*
* dgn module `http`
* http.createServer(callback(require, respon))
* .listen(port, hostname, callback())
*
* */
const http = require('http')
const fs = require('fs')