Skip to content

Instantly share code, notes, and snippets.

Avatar
☁️
Busy maintaining server

Syafa Adena gvoze32

☁️
Busy maintaining server
View GitHub Profile
@gvoze32
gvoze32 / zip multiple directories into individual zip files.md
Last active Apr 20, 2021
zip multiple directories into individual zip files
View zip multiple directories into individual zip files.md

zip multiple directories into individual zip files

You can use this loop in bash

$ for i in */; do zip -r "${i%/}.zip" "$i"; done

Parallel execution

$ for i in */; do zip -0 -r "${i%/}.zip" "$i" & done; wait
@gvoze32
gvoze32 / auto_install_ioncube.sh
Created Oct 11, 2020
Auto install IonCube PHP Loader/Encoder for Linux x64
View auto_install_ioncube.sh
#!/bin/bash
curl -O https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -xvzf ioncube_loaders_lin_x86-64.tar.gz
rm ioncube_loaders_lin_x86-64.tar.gz
cd ioncube
php_ext_dir="$(command php -i | grep extension_dir 2>'/dev/null' \
| command head -n 1 \
| command cut --characters=31-38)"
php_version="$(command php --version 2>'/dev/null' \
| command head -n 1 \
@gvoze32
gvoze32 / config_0
Last active Oct 11, 2020
Tilda Nord config
View config_0
tilda_config_version="1.5.2"
command=""
font="mplus Nerd Font Mono 9"
key="F12"
addtab_key="<Shift><Control>t"
fullscreen_key="F11"
toggle_transparency_key="F12"
toggle_searchbar_key="<Shift><Control>f"
closetab_key="<Shift><Control>w"
nexttab_key="<Control>Page_Down"
View Most Game Played
🔫 Counter-Strike: Global Offensive 🕘 13 hrs 53 mins
🎮 For Honor 🕘 13 hrs 37 mins
🎮 Dota 2 🕘 10 hrs 36 mins
💻 Wallpaper Engine 🕘 9 hrs 30 mins
🎮 Planetary Annihilation 🕘 8 hrs 35 mins
View I'm a night 🦉
🌞 Morning 121 commits ████▌░░░░░░░░░░░░░░░░ 21.9%
🌆 Daytime 134 commits █████░░░░░░░░░░░░░░░░ 24.3%
🌃 Evening 176 commits ██████▋░░░░░░░░░░░░░░ 31.9%
🌙 Night 121 commits ████▌░░░░░░░░░░░░░░░░ 21.9%
View Account Activity
🎉 Merged PR #321 in bebasid/bebasid
💪 Opened PR #321 in bebasid/bebasid
🗣 Commented on #1 in gvoze32/massseen
💪 Opened PR #3 in verssache/igviewstory
View Current Covid-19 Cases in Indonesia
🇮🇩Indonesia 13 minutes ago
🤒Active: 121,222
😌Recovered: 1,355,578
💀Deaths: 41,054
💉Tests: 12,801,104
@gvoze32
gvoze32 / ffmpeg GIF to MP4.MD
Last active Nov 12, 2020
Convert animated GIF to MP4 using ffmpeg in terminal.
View ffmpeg GIF to MP4.MD

To convert animation GIF to MP4 by ffmpeg, use the following command

ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4

Description

movflags – This option optimizes the structure of the MP4 file so the browser can load it as quickly as possible.

pix_fmt – MP4 videos store pixels in different formats. We include this option to specify a specific format which has maximum compatibility across all browsers.