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
#!/bin/sh | |
# This script prepared for dev.to article, please visit and vote us: | |
# https://dev.to/pinguftw/shell-scriptleri-ile-sqlite-17nk | |
set -e | |
DATABASE="${1:-mydb.db}" | |
read_file() { |
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
syntax "jule" "\.jule$" | |
# Keywords | |
color cyan "\<(map|type|impl|self|trait|struct|enum|fn|const|let|mut|for|in|break|continue|goto|match|fall|if|else|ret|error|use|co|cpp|unsafe|defer|chan|select)\>" | |
# Types | |
color brightmagenta "\<(int|uint|uintptr|i8|i16|i32|i64|u8|u16|u32|u64|f32|f64|bool|str|any|rune|byte)\>" | |
# Builtin funcs | |
color brightblue "\<(new|make|copy|append|out|outln|delete|cap|len|panic|iota)\>" |
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
filetype: jule | |
detect: | |
filename: "\\.jule$" | |
rules: | |
- type.keyword: "\\b(map|type|impl|self|trait|struct|enum|fn|const|let|mut|for|in|break|continue|goto|match|fall|if|else|ret|error|use|co|cpp|unsafe|defer|chan|select)\\b" | |
- type.type: "\\b(int|uint|uintptr|i8|i16|i32|i64|u8|u16|u32|u64|f32|f64|bool|str|any|rune|byte)\\b" | |
- type.builtin: "\\b(new|make|copy|append|out|outln|delete|cap|len|panic|iota)\\b" | |
- type.constant: "\\b(true|false|nil)\\b" |
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
#!/bin/bash | |
mapfile -t arr < <(ls *.deb) | |
PS3="Select a deb file (type exit or quit for close the script):> " | |
select fdeb in "${arr[@]}" ; do | |
case "${REPLY,,}" in | |
"e"|"q"|"exit"|"quit") | |
exit 0 | |
;; |
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
syntax "vlang" "\.v$" | |
color brightred "\<(module|import)\>" | |
color brightblue "\<(break|continue|defer|else|for|go|goto|if|match|return|select|unsafe|while)\>" | |
color yellow "\<(or|asm|lock|rlock|spawn|in|is|as)\>" | |
color yellow "\<(sizeof|typeof|__offsetof|__global)\>" | |
color brightcyan "\<(enum|fn|interface|struct|type|union)\>" |
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
filetype: vlang | |
detect: | |
filename: "\\.v$" | |
rules: | |
# Module and import | |
- preproc: "\\b(module|import)\\b" | |
# Control structures and operators |
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
version: '3.8' | |
services: | |
db: | |
image: mysql:5.7 | |
container_name: wordpress-db | |
restart: always | |
environment: | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: wpuser |
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
version: '3.8' | |
services: | |
osticket-app: | |
image: tiredofit/osticket | |
container_name: osticket-app | |
ports: | |
- "8081:80" | |
volumes: |
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
version: '3.8' | |
services: | |
zabbix: | |
image: zabbix/zabbix-appliance:ubuntu-4.0-latest | |
container_name: zabbix | |
restart: always | |
ports: | |
- "8082:80" | |
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
version: '3.8' | |
services: | |
db: | |
image: mariadb:10.11 | |
container_name: nextcloud-db | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: rootpass | |
MYSQL_DATABASE: nextcloud |
NewerOlder