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 <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 |
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
| # 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> |
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
| [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 |
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 |
NewerOlder