windres mushroom.rc -o mushroom.o
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
| // lower crf means higher bitrates and more used disk space | |
| // 24 to 30 | |
| // ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4 | |
| // 18 to 24 | |
| // ffmpeg -i input.mp4 -vcodec libx264 -crf 20 output.mp4 | |
| // compression of all mp4 files in the current directory (run with cmd) | |
| for /F "tokens=*" %G in ('dir /b *.mp4') do ffmpeg -i "%G" -vcodec libx265 -crf 28 "%~nG-compressed.mp4" |
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
| #include <stdio.h> | |
| #include <windows.h> | |
| int main( int argc, char *argv[] ) | |
| { | |
| STARTUPINFO si; | |
| PROCESS_INFORMATION pi; | |
| ZeroMemory( &si, sizeof(si) ); | |
| si.cb = sizeof(si); |
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
| #include <stdio.h> | |
| #include <windows.h> | |
| int main( int argc, char *argv[] ) | |
| { | |
| HWND hwnd = FindWindow( argv[1], NULL ); // compile with -luser32 on tcc | |
| if( argc != 2 ) | |
| { | |
| puts("Usage: main.exe [cmdline]"); |
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
| #include <stdio.h> | |
| #include <windows.h> | |
| #include <tlhelp32.h> | |
| /* | |
| "As to tlhelp32.h, you can take it from mingw or as attached to this | |
| email. Drop into tcc/include/winapi." | |
| https://lists.nongnu.org/archive/html/tinycc-devel/2009-06/msg00059.html | |
| */ |
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
| // tcc -o main.exe .\main.c -mwindows | |
| #include <windows.h> | |
| #ifndef SE_SHUTDOWN_PRIVILEGE | |
| #define SE_SHUTDOWN_PRIVILEGE 19L | |
| #endif | |
| #ifndef SE_DEBUG_PRIVILEGE | |
| #define SE_DEBUG_PRIVILEGE 20L | |
| #endif |
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
| cd %PROGRAMFILES(X86)%\Microsoft\EdgeWebView\Application\ | |
| for /f "tokens=*" %G in ('dir /b') do (cd %G\Installer && .\setup.exe --uninstall --msedgewebview --system-level --verbose-logging --force-uninstall) |
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
| tail -f /var/log/unattended-upgrades/unattended-upgrades-dpkg.log |
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
| cat /dev/null > ~/.bash_history && history -c && exit |
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
| # pip install get_cover_art --upgrade | |
| python -m get_cover_art --path=C:\Users\mushroom\Music --art-size 600 --art-dest CoverArt --no-embed |