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
--- | |
# This is an example complete example docker-compose.yml | |
# file for a linuxserver.io based BookStack setup | |
# using the linuxserver.io MariaDB conatiner. | |
# ENSURE YOU PAY ATTENTION TO ALL COMMENTS BELOW. | |
# Many of the values are just examples, and you WILL | |
# have to make changes to suit your environment. |
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
; This file lists the default values used by Gitea | |
;; Copy required sections to your own app.ini (default is custom/conf/app.ini) | |
;; and modify as needed. | |
;; Do not copy the whole file as-is, as it contains some invalid sections for illustrative purposes. | |
;; If you don't know what a setting is you should not set it. | |
;; | |
;; see https://docs.gitea.com/administration/config-cheat-sheet for additional documentation. | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
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://web.archive.org/web/20250417094758/https://sekrit.de/webdocs/c/beginners-guide-away-from-scanf.html */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
int main(void) | |
{ | |
long a; | |
char buf[1024]; // use 1KiB just to be sure |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>3.5.0</version> | |
<relativePath /> <!-- lookup parent from repository --> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>exectest</groupId> | |
<artifactId>exectest</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<name>exectest</name> |
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
#define RED_PIN 2 | |
#define YELLOW_PIN 3 | |
#define BUTTON_PIN 4 | |
struct Sketch { | |
int status; | |
int cur; | |
int prev; | |
void (*resetPins)(struct Sketch *self); | |
void (*rotateState)(struct Sketch *self); |
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 <stdlib.h> | |
#include "./utils.h" | |
int main(int argc, char** argv) { | |
if (argc != 3) { | |
fprintf(stderr, "Error: expected 2 args (numbers)\n"); | |
exit(EXIT_FAILURE); | |
} |
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
set term ^ ; | |
execute block | |
returns ( | |
RESULT1 varchar(255), RESULT2 varchar(255), | |
RESULT3 BLOB, result4 varchar(255) ) | |
as | |
declare search_query varchar(32) = 'PAC'; | |
BEGIN |
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
/******************************************************************* | |
A telegram bot for your ESP32 that demonstrates a bot | |
that show bot action message | |
Parts: | |
ESP32 D1 Mini style Dev board* - http://s.click.aliexpress.com/e/C6ds4my | |
(or any ESP32 board) | |
= Affilate |
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
exports.shorthands = undefined; | |
exports.up = (pgm) => { | |
pgm.createTable("session", { | |
sid: { type: "varchar", notNull: true, primaryKey: true }, | |
sess: { type: "json", notNull: true }, | |
expire: { type: "timestamp(6)", notNull: true }, | |
}); | |
pgm.createIndex("session", "expire", { name: "IDX_session_expire" }); |
NewerOlder