This file contains 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
for dir in *; do | |
tar -czvf $dir.tgz --exclude='node_modules' "$dir" | |
done |
This file contains 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
for file in *; do | |
convert -strip -interlace Plane -gaussian-blur 0.05 -quality 60% "$file" "$file" | |
done |
This file contains 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
for file in *; do | |
magick convert "$file" "${file%.*}.avif" | |
done |
This file contains 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 | |
for file in *.png; do | |
new_file=$(echo "$file" | tr '[:upper:]' '[:lower:]' | sed 's/ /_/g') | |
mv "$file" "$new_file" | |
done |
This file contains 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
for file in *; do | |
convert "$file" -resize 96x -format webp "${file%.*}_1x.webp" | |
convert "$file" -resize 192x -format webp "${file%.*}_2x.webp" | |
convert "$file" -resize 288x -format webp "${file%.*}_3x.webp" | |
done |
This file contains 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
"editor.tokenColorCustomizations": { | |
"textMateRules": [ | |
{ | |
"scope": [ | |
"comment", | |
"variable", | |
"variable.other.object.js", | |
"variable.other.object.property", | |
"keyword", | |
"storage.type", |
This file contains 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
import { createWriteStream, readFileSync, writeFileSync } from "node:fs"; | |
import { stdin as input, stdout as output } from "node:process"; | |
import { execSync } from "node:child_process"; | |
import * as readline from "node:readline/promises"; | |
let currentSplitVersion; | |
let currentVersion; | |
let currentMajor; | |
let currentMinor; | |
let currentPatch; |
This file contains 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 | |
#pwd | |
dir="/FolderDirectory/" | |
echo 'Accessing folders' | |
cd ${dir} | |
for folder in * | |
do | |
cd $folder | |
echo 'Entering the folder' $folder | |
echo 'Making gif name of' $folder |
This file contains 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
tar czf - dist/ | ssh user@remote 'rm -rf folder/* && tar xfz - -C folder/ && mv folder/dist/* folder/ && rm -rf folder/dist/' |
This file contains 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
for f in *.png ; do magick "$f" -quality 50 -define webp:lossless=true "${f%.png}.webp" ; done |
NewerOlder