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
| #!/usr/bin/bash | |
| # https://www.msys2.org/ notes about integration in Windows Terminal and Visual Studio Code | |
| # bash MSYS-UCRT.bash | |
| # C:\msys64\usr\bin\bash.exe "C:\msys64\home\dario\MSYS-UCRT.bash" | |
| # set MSYSTEM=UCRT64 | |
| # set CHERE_INVOKING=1 | |
| # set MSYS2_PATH_TYPE=inherit |
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
| -- [[ app-pixlet.lua ]] | |
| if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then | |
| -- launched through "lldebugger" (ms-vscode) | |
| require("lldebugger").start() | |
| end | |
| function DrawRectangle(x, y, w, h) | |
| for px = x, x + w - 1 do | |
| for py = y, y + h - 1 do |
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
| { // wget https://arkenidar.com/screens/software/my-setup/settings.json | |
| // Git for source control | |
| "git.enabled": true, | |
| "git.path": [ | |
| "C:/msys64/usr/bin/git.exe" | |
| ], | |
| // vsCode terminals | |
| "terminal.explorerKind": "integrated", | |
| "terminal.external.windowsExec": "C:/msys64/usr/bin/bash.exe", | |
| "terminal.integrated.profiles.windows": { |
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
| <?php | |
| // Redis client from PHP to a Redis server. | |
| // https://marketplace.visualstudio.com/items?itemName=cweijan.vscode-database-client2 | |
| // Debian setup hints: | |
| // sudo apt install redis | |
| // sudo apt install pkg-php-tools # provides: pecl | |
| // sudo apt install php-dev # provides: phpize |
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
| ## add the following line ... | |
| # source "$HOME/sync_task.bash" | |
| ## ... to "$HOME/.bashrc" (BASH initialization hidden file) | |
| function sync_task(){ | |
| # note: vice-versa is possible also (invert order of source and destination arguments and tweak them accordingly). | |
| rsync -zarv --delete /c/0/Dropbox/desktop root@synbox.freeddns.org:/root && printf "\n\n *rsync-complete* \n\n" | |
| printf "\n\n hint: type 'sync_task' to do it again \n\n" | |
| } |
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
| # Apache ".htaccess" configuration for e.g. Wordpress.org, | |
| # UTF-8, PHP "extended" file handling | |
| # (e.g. "style.css.php" as "style.css" (by PHP handler) | |
| # BTW see also Sublime Text for "file.css.php" and or "file.js.php" ). | |
| ### https://gist.github.com/arkenidar/80e05f8bf3c3115ae802748eb6d64aca | |
| ### https://arkenidar.com/code/httpd_apache/_.htaccess | |
| ### https://help.servmask.com/2018/10/27/how-to-increase-maximum-upload-file-size-in-wordpress/ | |
| php_value upload_max_filesize 1000M |
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
| --[[ "break" as key-word breaks only the inner-most loop when nesting loops ]] | |
| --[[ "goto" to exit/break nested loops ]] | |
| --[[ "goto" to emulate "continue" and "redo", besides "break" key-word]] | |
| --[[ other cases possible ]] | |
| --[[ limitation: in Lua you can "go to" only to local "goto-labels", local to the scope/function]] | |
| local redo_limit = false | |
| for i=1,5 do | |
| :: redo :: -- redo as a label |
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
| C:/apps/simple-asm/GAS/64/as.exe pclinwin.s -o program.o --64 | |
| C:/apps/simple-asm/MinGW64/bin/gcc.exe program.o -g -o program.exe -m64 |
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
| echo "[requisiti] richiede *git* e *wget* -------------------------------" | |
| which git | |
| which wget | |
| echo "[1/3] ZeroBraneStudio ( + EduPack ) da GitHub.com ------------------" | |
| git clone https://github.com/pkulchenko/ZeroBraneStudio | |
| git clone https://github.com/pkulchenko/ZeroBraneEduPack | |
| echo "[2/3] configura lingua italiana, *it* -------------------------------" | |
| printf "\n language = 'it' \n" >> ZeroBraneStudio/cfg/user.lua |
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
| ### https://github.com/arkenidar/sdl2-gl | |
| # cmake -S . -B build && cmake --build build && build/app | |
| # cmake -S . -B build -G "Ninja" && cmake --build build && build/app | |
| # cmake -S . -B build -G "CodeBlocks - Ninja" && cmake --build build && build/app | |
| # cmake -S . -B build -G "Visual Studio 17 2022" && cmake --build build && build/app | |
| cmake_minimum_required(VERSION 3.18) |