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
### Disable Action Center | |
taskkill /F /IM explorer.exe | |
taskkill /F /IM Chrome.exe /T | |
### Open a website URL | |
start chrome --kiosk --profile-directory=Default --app="https://plenerizmus.sng.sk/" |
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 | |
# based on http://www.arj.no/2019/11/03/converting-mxf-files-to-mp4-with-ffmpeg/ | |
mkdir -p ./compressed | |
for i in *.mxf; do | |
if [ -e "$i" ]; then | |
file=`basename "$i" .mxf` | |
# MP4 file with default settings + deinterlacing | |
# ffmpeg -i "$i" -c:v libx264 -vf yadif "$file.mp4" |
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 | |
#resize (only larger) first: | |
find . -maxdepth 5 \( -iname \*.png -o -iname \*.jpg -o -iname \*.jpeg -o -iname \*.bmp \) -exec convert -resize 1500\> -verbose "{}" "{}" \; | |
#optimize | |
find . -type f -name "*.png" -o -name "*.PNG" | xargs optipng -nb -nc | |
find . -type f -name "*.png" -o -name "*.PNG" | xargs advpng -z4 | |
find . -type f -name "*.png" -o -name "*.PNG" | xargs pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time -ow | |
find . -iname "*.png" -exec pngquant --force --verbose \{} --output \{} \; | |
find . -type f -iname '*.jpg' -exec jpegoptim --max=85 --strip-all {} + |
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
# Create a watermark image (watermark.png) and place in folder | |
# Run this script on command line. It generates an image-wm.jpg for each image.jpg | |
for x in *.jpg; do convert $x watermark.png -gravity southeast -geometry +30+30 -composite ${x//.png}-wm.png; done | |
# Use variant below to overwrite original file | |
# for x in *.jpg; do convert $x watermark.png -gravity southeast -geometry +30+30 -composite $x; 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
{ | |
"tokens": [ | |
{ | |
"token": "až", | |
"start_offset": 0, | |
"end_offset": 2, | |
"type": "word", | |
"position": 0 | |
}, | |
{ |
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 *.pdf | |
do | |
qpdf --password=<pass> --decrypt $file unlocked/$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
float circleX, circleY; | |
int size = 10; | |
float deltaX, deltaY; | |
int rectX, rectY; | |
int rectWidth, rectHeight; | |
float cR, cG, cB; | |
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
ArrayList<Castica> castice = new ArrayList<Castica>(); | |
PVector gravitacia = new PVector(0, 0.03); | |
class Castica { | |
PVector pozicia; | |
PVector smer; | |
Castica(float kamX, float kamY) { |
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 *.*; do | |
mv "$f" "$(mdls -name kMDItemContentCreationDate "$f" | sed s/kMDItemContentCreationDate...// | sed s/.+0000// | sed s/:/-/g | sed s/\ /_/g).${f##*.}"; | |
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 | |
# Check if the user provided a folder path as an argument - otherwise use current | |
if [ $# -eq 1 ]; then | |
source_folder="$1" | |
else | |
source_folder="." | |
fi | |
# Check if the source folder exists |