This file contains hidden or 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 | |
| CDIR=$(pwd) | |
| for i in $(ls -R | grep :); do | |
| DIR=${i%:} | |
| cd $DIR | |
| rm *.webp | |
| cd $CDIR | |
| done |
This file contains hidden or 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
| export function delay(min, max) { | |
| const delayTime = Math.floor(Math.random() * (max - min + 1) + min) * 1000; | |
| return new Promise((resolve) => { | |
| setTimeout(resolve, delayTime); | |
| }); | |
| } |
This file contains hidden or 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
| const fs = require('fs'); | |
| const path = require('path'); | |
| const AdmZip = require('adm-zip'); | |
| const readline = require('readline'); | |
| const sharp = require('sharp'); | |
| const { exec } = require('child_process'); | |
| // Cria uma interface readline | |
| const rl = readline.createInterface({ | |
| input: process.stdin, |
This file contains hidden or 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
| SELECT DISTINCT pm.meta_value AS email | |
| FROM wp_posts AS p | |
| INNER JOIN wp_postmeta AS pm ON p.ID = pm.post_id | |
| INNER JOIN wp_woocommerce_order_items AS oi ON p.ID = oi.order_id | |
| INNER JOIN wp_woocommerce_order_itemmeta AS oim ON oi.order_item_id = oim.order_item_id | |
| WHERE p.post_type = 'shop_order' | |
| AND p.post_status IN ('wc-completed', 'wc-processing') | |
| AND pm.meta_key = '_billing_email' | |
| AND oim.meta_key = '_product_id' | |
| AND p.post_date >= DATE_SUB(CURDATE(), INTERVAL 6 MONTH); |
This file contains hidden or 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
| gh repo list <org-name> | awk '{print $1}' > repository_urls.txt | |
| while IFS= read -r url; do | |
| repo_name=$(basename "$url" .git) | |
| gh repo clone "$url" "$repo_name" | |
| done < repository_urls.txt |
This file contains hidden or 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
| gh repo list [org-name] | awk '{print $1}' > repositories.txt |
OlderNewer