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
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" |
#include <iostream> | |
#include <conio.h> | |
using namespace std; | |
int main() | |
{ | |
string tmp; | |
int i, k, j, jumlah, pilihan; |
int min, max; | |
min=jam[0]; | |
max=jam[0]; | |
for(int i=0;i<2;i++) | |
{ | |
if(min>jam[i]) | |
{ | |
min=jam[i]; | |
} | |
else if(max<jam[i]) |
#!/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 \ |
async function automateProcess() { | |
for (let i = 0; i < 10000; i++) { | |
try { | |
console.log(`Iteration: ${i + 1}`); | |
const diamondsText = document.querySelector('div[style*="color: rgb(27, 67, 86);"][style*="font-size: 1rem;"][style*="margin-top: 0.5rem;"][style*="text-align: center;"]'); | |
if (!diamondsText) { | |
console.error('Element with specified selector not found.'); | |
continue; |
function simulateKeyPress(keyCode, eventType) { | |
var eventObj = document.createEventObject | |
? document.createEventObject() | |
: document.createEvent("Events"); | |
if (eventObj.initEvent) { | |
eventObj.initEvent(eventType, true, true); | |
} | |
eventObj.keyCode = keyCode; |
To convert audio mp3 to MP4 by ffmpeg, use the following command
ffmpeg -f lavfi -i color=c=black:s=1280x720:r=5 -i audio.mp3 -crf 0 -c:a copy -shortest output.mp4
This generates mp4 formatted video with blank black background with the color source filter instead of using an image.
Since it is just black video this is one case with lossless mode (-crf 0) will have a smaller file size than the default lossy mode.
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
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.