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
## 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 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 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 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 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* ------------------------------- | |
echo [1/3] ZeroBraneStudio da github ------------------------------- | |
git clone https://github.com/pkulchenko/ZeroBraneStudio | |
echo [2/3] configura lingua italiana, *it* ------------------------------- | |
printf "\n language = 'it' \n" >> ZeroBraneStudio/cfg/user.lua | |
echo [3/3] estensione per carattere *tilde* ------------------------------- | |
wget https://raw.githubusercontent.com/pkulchenko/ZeroBranePackage/master/tildemenu.lua |
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
### 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) |
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
#!/usr/bin/env bash | |
# env RSOPT="--dry-run" ~/Dropbox/my-www/rsync-backup-www.sh | |
# env RSOPT="--dry-run --delete" ~/Dropbox/my-www/rsync-backup-www.sh | |
HOST=arkenidar.com | |
THIS=backup-www | |
DEST="$(dirname "$BASH_SOURCE")/$THIS" | |
## DEST=~/Dropbox/my-www/$THIS # for GNU-Linux |
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
--[[ | |
dualismi in matematica: | |
- moltiplicazione come somma e suo inverso la divisione mediante sottrazioni (o altre implementazioni a parità di risultati) | |
- somma algebrica con riporto (carry) o prestito (borrow) che sono uno il duale dell'altro come moltiplicazione e somma sono uno l'inverso dell'altro | |
(spiegazioni intuitive non con linguaggio gergale necessariamente corretto). | |
si può vedere l'unità della parte comune che si diversifica specializzandosi, come da un arbusto gemmano ad esempio due rametti. | |
in particolare 2 data la struttura hardware del calcolatore elettronico binario (binario, base 2, due simboli, 0 e 1, detti 2 bits). | |
]] |
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
// JSON format for programs | |
// *** FUTURE *** | |
///var main = ["$func","main",["arguments"], | |
//["$skip","console.log('output text', 'another output text')"], | |
//["$expr",["$attr","console"],["$attr","log"],["$call",["$val","output text"],["$val","another output text"]]], | |
//["$skip","document.querySelector('#site-navigation').style.backgroundColor='greenyellow'"], |
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
<!-- https://arkenidar.com/web/editor.html --> | |
<!-- ------------------------------------------ --> | |
<!-- ------------------------------------------ --> | |
per andare | |
a capo | |
<br> | |
si usa <br> | |
<!-- ------------------------------------------ --> | |
stili di testo: <em>parola1</em> <strong>parola2</strong> |
NewerOlder