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
[Unit] | |
Description=Gitea service bootstrap for /opt/gitea/gitea | |
[Service] | |
Type=simple | |
ExecStart=/opt/gitea/gitea web | |
ExecStop=/opt/gitea/gitea manager shutdown | |
Restart=on-failure | |
User=user | |
Group=1000 |
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
15bf1340ad027c9cd14f-a51f30c7-6359b831-8e9f4efb-ff64f347 |
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 off | |
rem ------------------------------------------------------- | |
rem Author: Nurudin Imsirovic | |
rem Abstract: Simple 'make' wrapper for 'tcc' under Windows | |
rem Created: 2024-08-01 06:35 PM | |
rem Updated: 2024-08-02 07:59 AM | |
rem ------------------------------------------------------- | |
setlocal |
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
/** | |
* Sleep for miliseconds | |
* @author Nurudin Imsirovic <[email protected]> | |
* @param {number} ms | |
* @returns {undefined} | |
*/ | |
function sleep(ms) { | |
if (0 >= ms) | |
return |
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
#include <windows.h> | |
#include <tlhelp32.h> | |
#include <stdio.h> | |
#ifdef __cplusplus | |
using namespace std; | |
#endif | |
void main() { | |
// We need to enumrate the list of processes. |
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
/** | |
* Pseudo-random number generator | |
* @author Nurudin Imsirovic <[email protected]> | |
* @param {number} count How many numbers to concatenate [1..10] | |
* @returns {number} | |
*/ | |
function rand(count = 10) { | |
count |= 0 | |
if (0 >= count) |
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
/** | |
* Asynchronous XMLHttpRequest abstraction. | |
* @author Nurudin Imsirovic <[email protected]> | |
* @param {string} requestMethod - HTTP Request Method [GET, POST, PUT, DELETE, HEAD, OPTIONS, PATCH] | |
* @param {string} requestSource - URL or relative path to a resource | |
* @param {string} requestData - Data to be sent (only for POST method) | |
* @param {function} callback - Callback function for handling the response | |
* @param {string|null} requestUsername - HTTP Basic Auth Username (default `null`) | |
* @param {string|null} requestPassword - HTTP Basic Auth Password (default `null`) | |
* @throws {Error} Throws an error if XMLHttpRequest is not supported or if the callback is not a function. |
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
/** | |
* Save frame from video element | |
* @author Nurudin Imsirovic <[email protected]> | |
* @param {Element} video Video element | |
* @param {boolean} download Download frame as file | |
* @param {string} filename Download name | |
* @return {?string} Blob URL of frame | |
*/ | |
function video2frame(video = null, download = true, filename = null) { | |
// Not a video element |
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 off | |
rem -- console colors for batch scripts -- | |
rem You can set these to empty variables | |
rem if you don't want colored output, or | |
rem set NO_COLOR env var to a non-empty | |
rem value | |
rem Control Codes | |
set CLR_RESET=[0m |