Skip to content

Instantly share code, notes, and snippets.

View lazypwny751's full-sized avatar
🐼
skadoosh

Ahmed lazypwny751

🐼
skadoosh
View GitHub Profile
@lazypwny751
lazypwny751 / kip.yaml
Created January 21, 2026 11:50
Micro editor highlight support for kip language.
filetype: kip
detect:
filename: "\\.kip$"
rules:
- comment:
start: "\\(\\*"
end: "\\*\\)"
rules: []
@lazypwny751
lazypwny751 / kip.nanorc
Last active January 21, 2026 11:49
Nano editıor highlight support for kip language.
syntax "kip" "\.kip$"
icolor brightblue start="\(\*" end="\*\)"
color brightred "\<(Bir|ya|da|olabilir|olsun|var|olamaz)(\>|[,.])"
color red "\<(diyelim|olarak|değilse|doğruysa|yanlışsa|yoksa|yokluksa)(\>|[,.])"
color magenta "\<[a-zçğıöşü]+mak(tır|tir|[,.]|\>)"
color magenta "\<[a-zçğıöşü]+mek(tir|tır|[,.]|\>)"
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{geometry}
\usepackage{graphicx}
\geometry{a4paper, margin=1in}
\title{Final Sınavı Çözümleri}
\author{GitHub Copilot}
\date{\today}
@lazypwny751
lazypwny751 / melodi.ino
Created December 3, 2025 21:30
Melodi Çalan Servo Motor
#include <Servo.h>
Servo myServo;
// Basit melodi notaları (servo pozisyon değişimi ile)
int melody[] = {30, 60, 90, 120}; // Servo açıları
int noteDuration = 200; // Her nota 200 ms
void setup() {
myServo.attach(9); // Servo pinini bağla
@lazypwny751
lazypwny751 / fresh-start.sh
Last active October 29, 2025 16:01
Remove old and start fresh in git.
# Remove old commits and keep current status.
rm -rf .git
git init
git add .
git commit -m "🎯 fresh start."
# Add remote.
git branch -M main
git remote add origin <repo-url>
@lazypwny751
lazypwny751 / cloudflared.service
Last active January 18, 2026 21:23
Cloudflared service file for systemd.
[Unit]
Description=cloudflared DNS over HTTPS proxy
After=network.target
[Service]
ExecStart=/usr/local/bin/cloudflared --config /etc/cloudflared/config.yml
Restart=on-failure
RestartSec=5s
User=nobody
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
@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
;;