Compiling:
gcc id_card_parser.c -o passport_data
Usage:
| <?php | |
| /** | |
| * Check whether the given year is a leap year. | |
| */ | |
| function isLeapYear(int $year): bool | |
| { | |
| return $year % 400 === 0 | |
| || ($year % 4 === 0 && $year % 100 !== 0); | |
| } |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| SCRIPT_NAME="$(basename "$0")" | |
| INPUT="" | |
| OUTPUT="scanned_output.pdf" | |
| DPI="130" | |
| QUALITY="65" | |
| INSTALL_DEPS="false" |
| #!/bin/bash | |
| DEVICE_IP="${ADB_DEVICE:-}" | |
| VLC_ACTIVITY="org.videolan.vlc/org.videolan.vlc.StartActivity" | |
| usage() { | |
| echo "Usage: $(basename "$0") [OPTIONS] <url>" | |
| echo "" | |
| echo "Options:" | |
| echo " -d, --device <ip:port> Target device (or set ADB_DEVICE env)" |
| #!/bin/bash | |
| VPN_SERVER="10.8.0.1" | |
| STATUS_COMMAND="/root/openvpn_status.sh" | |
| output=$(ssh -o BatchMode=yes -o ConnectTimeout=5 root@$VPN_SERVER "$STATUS_COMMAND") | |
| if [[ $? -ne 0 ]]; then | |
| echo "Failed to connect to $VPN_SERVER or run the command." | |
| exit 1 |
| #!/bin/bash | |
| LOG_FILE="/var/log/openvpn/status.log" | |
| if [ ! -f "$LOG_FILE" ]; then | |
| echo "Log file not found: $LOG_FILE" | |
| exit 1 | |
| fi | |
| declare -A tunnel_ips |
| ; ===== Registerlarni belgilash ===== | |
| .equ DDRD = 0x2A | |
| .equ DDRB = 0x24 | |
| .equ PORTB = 0x25 | |
| .equ PIND = 0x29 | |
| ; ===== Asosiy dastur ===== | |
| .org 0x0000 ; Dasturning boshlang‘ich nuqtasi | |
| rjmp RESET ; Portlarni sozlash uchn reset sektoriga o‘tish |
| #!/bin/bash | |
| CURRENT_TIME=$(date +%s) | |
| mailq | awk '/^[A-F0-9]/ {print $1, $3, $4, $5}' | while read -r ID MONTH DAY TIME; do | |
| MESSAGE_DATE="$MONTH $DAY $TIME $(date +%Y)" | |
| MSG_TIMESTAMP=$(date -d "$MESSAGE_DATE" +%s 2>/dev/null) | |
| if [ $? -ne 0 ]; then |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <limits.h> | |
| #include <stdint.h> | |
| #include <pthread.h> | |
| void restart_program() { | |
| char program_path[100]; |