Skip to content

Instantly share code, notes, and snippets.

View lazypwny751's full-sized avatar
🐼
skadoosh

Ahmed lazypwny751

🐼
skadoosh
View GitHub Profile
@lazypwny751
lazypwny751 / sqlite.sh
Last active July 20, 2025 15:47
a simple shell script to create database and tables also it makes defaulting via sqlite.
#!/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() {
@lazypwny751
lazypwny751 / jule.nanorc
Created June 13, 2025 21:05
nano editor syntax highlight support for jule.
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)\>"
@lazypwny751
lazypwny751 / jule.yaml
Created June 13, 2025 21:02
micro editor syntax configuration for jule.
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"
@lazypwny751
lazypwny751 / sdebi.sh
Created June 8, 2025 22:13
install .deb files easily with simple tui.
#!/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
;;
@lazypwny751
lazypwny751 / v.nanorc
Last active June 13, 2025 21:05
nano editor syntax highlight support for v.
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)\>"
@lazypwny751
lazypwny751 / vlang.yaml
Last active June 13, 2025 21:05
micro editor syntax configuration for v.
filetype: vlang
detect:
filename: "\\.v$"
rules:
# Module and import
- preproc: "\\b(module|import)\\b"
# Control structures and operators
@lazypwny751
lazypwny751 / docker-compose.yml
Created May 15, 2025 03:34
Basic wordpress docker compose file.
version: '3.8'
services:
db:
image: mysql:5.7
container_name: wordpress-db
restart: always
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wpuser
@lazypwny751
lazypwny751 / docker-compose.yml
Created May 15, 2025 03:33
Simple osTicket docker compose file.
version: '3.8'
services:
osticket-app:
image: tiredofit/osticket
container_name: osticket-app
ports:
- "8081:80"
volumes:
@lazypwny751
lazypwny751 / docker-compose.yml
Last active May 15, 2025 03:31
Very simple zabbix docker compose file.
version: '3.8'
services:
zabbix:
image: zabbix/zabbix-appliance:ubuntu-4.0-latest
container_name: zabbix
restart: always
ports:
- "8082:80"
environment:
@lazypwny751
lazypwny751 / docker-compose.yml
Created May 15, 2025 03:30
Nextcloud docker compose file.
version: '3.8'
services:
db:
image: mariadb:10.11
container_name: nextcloud-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: nextcloud