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
pdflatex -jobname OUTPUT_PDF_FILE_NAME_WITHOUT_EXTENSION '\documentclass{article}\usepackage{pdfpages}\begin{document}\includepdf[pages=-,offset=1cm 0cm]{INPUT_PDF_FILE_NAME_WITH_EXTENSION.pdf}\end{document}' |
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
pdfjam --offset '1cm 0 0 0' INPUT_PDF_FILE_NAME_WITH_EXTENSION.pdf -o OUTPUT_PDF_FILE_NAME_WITH_EXTENSION.pdf |
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 INPUT_PDF_FILE in "$@"; do | |
if [ "$(file -b --mime-type "$INPUT_PDF_FILE")" == "application/pdf" ]; then | |
OUTPUT_PDF_FILE="${INPUT_PDF_FILE%.pdf}.margins" | |
pdflatex -jobname "$OUTPUT_PDF_FILE" "\documentclass{article}\usepackage{pdfpages}\begin{document}\includepdf[pages=-,trim=1cm 0cm 1cm 0cm]{$INPUT_PDF_FILE}\end{document}" | |
else | |
echo "Skipping non-PDF file: $INPUT_PDF_FILE" | |
fi | |
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
pdfjam --trim '1cm 0 1cm 0' INPUT_PDF_FILE_NAME_WITH_EXTENSION.pdf -o OUTPUT_PDF_FILE_NAME_WITH_EXTENSION.pdf |
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
Get-ChildItem *.png | Rename-Item -newname {$_.LastWriteTime.toString("yyyy-MM-dd-HH-mm-ss") + ".png"} |
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
while :; do date ; curl ifconfig.me ; printf "\n"; sleep 1; done |tee ~/iplog |
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
Windows Registry Editor Version 5.00 | |
[HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys] | |
[HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys\00000100] | |
"Virtual Key"=hex:33,00,00,00 | |
"Key Modifiers"=hex:02,c0,00,00 | |
"Target IME"=hex:09,04,09,04 | |
[HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys\00000101] |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanWorkstation\Parameters] | |
"DirectoryCacheLifetime"=dword:00000000 |
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 "tokens=*" %G IN ('dir /b *.mkv') DO ffmpeg -i "%G" -acodec copy "%~nG.aac" |
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 *IMG_*; do mv -- "$file" "${file//IMG_/}"; done |
OlderNewer