Mar 15, 2026

Video compress

 apt-get install -y ffmpeg

ffmpeg-static -i /var/www/html/mz/public/videos/producerai-hero.mp4 \ -vcodec libx264 -crf 32 -preset fast \ -movflags faststart \ -acodec aac -b:a 96k \ /var/www/html/mz/public/videos/hero-small.mp4



-############################################


# Tambah cache header untuk video di nginx config

cat > /etc/nginx/sites-available/mz << 'NGINX'

upstream avoer_app {

    server 127.0.0.1:3001;

    keepalive 64;

}


server {

    listen 80;

    listen [::]:80;

    server_name avoer.ft.unsri.ac.id;


    gzip on;

    gzip_vary on;

    gzip_proxied any;

    gzip_comp_level 6;

    gzip_types text/plain text/css application/json application/javascript text/xml application/xml image/svg+xml;


    # Static Next.js files

    location /_next/static/ {

        alias /var/www/html/mz/.next/static/;

        expires 1y;

        add_header Cache-Control "public, immutable";

        access_log off;

    }


    # VIDEO — cache lama di browser, support range request untuk streaming

    location /videos/ {

        alias /var/www/html/mz/public/videos/;

        expires 7d;

        add_header Cache-Control "public, max-age=604800";

        add_header Accept-Ranges bytes;

        access_log off;

    }


    # Public folder lainnya

    location /public/ {

        alias /var/www/html/mz/public/;

        expires 30d;

        add_header Cache-Control "public";

        access_log off;

    }


    location = /favicon.ico { access_log off; log_not_found off; }

    location = /robots.txt  { access_log off; log_not_found off; }


    # Next.js app

    location / {

        proxy_pass http://avoer_app;

        proxy_http_version 1.1;

        proxy_set_header Upgrade $http_upgrade;

        proxy_set_header Connection 'upgrade';

        proxy_set_header Host $host;

        proxy_set_header X-Real-IP $remote_addr;

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_set_header X-Forwarded-Proto $scheme;

        proxy_cache_bypass $http_upgrade;

        proxy_read_timeout 60s;

    }


    client_max_body_size 50M;

}

NGINX


nginx -t && nginx -s reload

echo "Nginx reload OK"


# Test video accessible langsung dari nginx (bukan via Next.js)

curl -I http://mz.com/videos/producerai-hero.mp4 | head -10


Mar 14, 2026

Node.JS

 


npm run build 2>&1 | tail -5
pm2 restart mz-labs





Mar 11, 2026

Laravel artisan optimize

php artisan optimize:clear && php artisan optimize && systemctl restart php8.5-fpm

[opcache]

opcache.enable=1

opcache.enable_cli=0

opcache.memory_consumption=256

opcache.interned_strings_buffer=16

opcache.max_accelerated_files=20000

opcache.validate_timestamps=0

opcache.save_comments=1

opcache.revalidate_freq=0

realpath_cache_size=4096k

realpath_cache_ttl=600




Nov 25, 2025

Enumerate domain

https://github.com/skavngr/rapidscan/

--------------- 


# 1. Sublist3r (sudah ada) sublist3r -d zzz.ac.id -o subs_sublist3r.txt 

# 2. Amass amass enum -d zzz.ac.id -o subs_amass.txt 

# 3. Assetfinder assetfinder zzz.ac.id > subs_assetfinder.txt 

# 4. Subfinder subfinder -d zzz.ac.id -o subs_subfinder.txt 

# 5. Combine dan remove duplicate cat subs_*.txt | sort -u > subdomains_all.txt 

# Hitung total wc -l subdomains_all.txt


# Validasi subdomain yang aktif 

cat subdomains_all.txt | httpx > alive_subs.txt


# Scan nikto

mkdir -p results

while read sub; do

  echo "[+] Scanning: $sub"

  nikto -h "$sub" -o "results/nikto_$sub.html" -Format html

done < alive_subs.txt

----------------

SHODAN

https://help.shodan.io/command-line-interface/0-installation

--------------

gobuster dir -u https://domain.com -w wordlist.txt



Nov 22, 2025

Additive Manufacturing Scanning Strategy in PBF or SLM





Influence of scanning strategies on dimensional accuracy in laser powder bed fusion (2025)


Finite Element Thermal Analysis of Metal Parts Additively Manufactured via Selective Laser Melting



State-of-the-art of selective laser melting process: A comprehensive review (2022)

Impact of hatching strategies on overhang displacement in PBF-LB/M (2025)-TruPrint 1000

Relative density and surface roughness prediction for Inconel 718 by selective laser melting: central composite design and multi‑objective optimization (2022)

The creep behaviour of nickel alloy 718 manufactured by laser powder bed fusion (2022)

Build Strategy and Impact Strength of SLM Produced Maraging Steel (1.2709) (2020)

Process parameter optimization for selective laser melting of Inconel 718 superalloy and the effects of subsequent heat treatment on the microstructural evolution and mechanical properties (2021)

Scanning strategy in selective laser melting (SLM): a review (2021)













Nov 5, 2025