Search Documents

Use "double quotes" to search for exact phrases. Example: "climate change" report

Found 10 results for "*"

SH

Os2png

Shell Script 📁 Source Code / SH Feb 16, 2026 by pagetelegram 2 views
Content Matches: (14 occurrences)
1. .../2 2.x uses RGBA quads (4 bytes) local palette_bytes if (( cbFix == 12 )); then palette_bytes=$((colors * 3)) # OS/2 1.x: RGB else palette_bytes=$((colors * 4)) # OS/2 2.x: BGRA fi # Calculate data offs...
2. ..._bytes)) fi # Calculate row size with padding (must be multiple of 4 bytes) local row_bits=$((actual_width * bitcount)) local row_bytes=$(( (row_bits + 31) / 32 * 4 )) # AND mask is always 1 bpp local and_row_bytes=...
3. ...es=$(( (row_bits + 31) / 32 * 4 )) # AND mask is always 1 bpp local and_row_bytes=$(( (actual_width + 31) / 32 * 4 )) local xor_size=$((row_bytes * actual_height)) local and_size=$((and_row_bytes * actual_height)) # Ex...
SH

Csv Match

Shell Script 📁 Source Code / SH Feb 16, 2026 by pagetelegram 0 views
Content Matches: (12 occurrences)
1. ...ap cleanup EXIT # ── helpers ────────────────────────────────────────────────────────────────── die() { echo "ERROR: $*" >&2; exit 1; } detect_cores() { nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 1 } # Draw a progress...
2. ...if (( total == 0 )); then return; fi if (( current > total )); then current=$total; fi local pct=$((current * 100 / total)) local filled=$((current * width / total)) local empty=$((width - filled)) local bar="" fo...
3. ...Progress bar row = NR - 1 if (row % 1000 == 0 || row == total) { pct = int(row * 100 / total) filled = int(row * 40 / total) bar = "" for (j = 0; j < fi...
SH

Ocrwrits

Shell Script 📁 Source Code / SH Feb 16, 2026 by pagetelegram 2 views
Content Matches: (8 occurrences)
1. ...nction to validate output directory validate_output_dir() { local dir="$1" local output_dir if [[ "$dir" == */* ]]; then output_dir=$(dirname "$dir") else output_dir="." fi if [ ! -d "$output_dir"...
2. ...="$2" local temp_dir="$3" # Clear temp directory contents rm -rf "${temp_dir}/"{images,enhanced,processed}/* mkdir -p "${temp_dir}/"{images,enhanced,processed} local file_ext="${input_file##*.}" file_ext=$(echo "$fi...
3. ...e" "$base_image" 2>/dev/null; then continue fi image_file=$(ls "${base_image}"-*.png 2>/dev/null | head -n 1) if [ -z "$image_file" ] || [ ! -f "$image_file" ]; then contin...

csv_split.sh

Shell Script 📁 Source Code / SH Feb 16, 2026 by pagetelegram 1 views
Content Matches: (4 occurrences)
1. ...t -euo pipefail # ── helpers ────────────────────────────────────────────────────────────────── die() { echo "ERROR: $*" >&2; exit 1; } show_columns() { local file="$1" echo "" echo "Available columns in '$file':" echo "──...
2. ..."%s\".\n", count, count, col_name }' "$input_file" echo "" echo "Output files:" find "$out_dir" -name '*.csv' -type f | sort | while read -r f; do rows=$(( $(wc -l < "$f") - 1 )) # Show path relative to out_d...
3. ...── USE_SUBDIRS="no" # Parse flags while getopts ":d" opt; do case $opt in d) USE_SUBDIRS="yes" ;; *) die "Unknown option: -$OPTARG" ;; esac done shift $((OPTIND - 1)) if [[ $# -ge 2 ]]; then # ── Command-line m...
4. ..."╚═══════════════════════════════════════╝" echo "" # List CSV files in the current directory csv_files=( *.csv ) if [[ ${#csv_files[@]} -eq 0 || "${csv_files[0]}" == "*.csv" ]]; then die "No CSV files found in the...
SH

Audit

Shell Script 📁 Source Code / SH Feb 16, 2026 by pagetelegram 2 views
Content Matches: (4 occurrences)
1. ...emote access packages found" >> "$LOGFILE" log "Searching for TeamViewer installations..." find /opt /usr/local -name "*teamviewer*" -o -name "*TeamViewer*" 2>/dev/null >> "$LOGFILE" || echo "No TeamViewer installations found in /opt or /us...
2. ...b -l 2>/dev/null >> "$LOGFILE" || echo "No user crontab" >> "$LOGFILE" log "System cron directories:" ls -la /etc/cron.* 2>/dev/null >> "$LOGFILE" log "Systemd timers:" systemctl list-timers --all --no-pager >> "$LOGFILE" log "User autost...
3. ...d /dev/shm -type f 2>/dev/null >> "$LOGFILE" log "Recent hidden files in home directory (last 7 days):" find ~ -name ".*" -type f -mtime -7 2>/dev/null | grep -v ".cache\|.local/share\|.mozilla\|.config" | head -30 >> "$LOGFILE" log "Recen...
4. ...ev/null >> "$LOGFILE" || echo "No rootkit scanners installed" >> "$LOGFILE" log "Checking init scripts:" ls -la /etc/rc*.d/ 2>/dev/null | head -50 >> "$LOGFILE" log "Checking for SUID/SGID files in home directory:" find /home -type f \( -p...
SH

Tally Csv

Shell Script 📁 Source Code / SH Feb 16, 2026 by pagetelegram 0 views
Content Matches: (3 occurrences)
1. ..."filename,filesize_bytes,records,total_cells,empty_cells,pct_empty" > "$OUTPUT" find "$SCRIPT_DIR" -mindepth 2 -name '*.csv' -print0 | while IFS= read -r -d '' filepath; do filename="$(basename "$filepath")" filesize="$(stat -c%s "...
2. ...{ records++ for (i = 1; i <= cols; i++) { if ($i == "" || $i ~ /^[[:space:]]*$/) empty++ } } END { if (records + 0 == 0) { printf "%s,%d,%d,%...
3. ...printf "%s,%d,%d,%d,%d,%.2f\n", fn, fs, 0, 0, 0, 0.00 } else { total = records * cols pct = (empty + 0) / total * 100 printf "%s,%d,%d,%d,%d,%.2f\n", fn, fs, records, t...
SH

Vidold

Shell Script 📁 Source Code / SH Feb 16, 2026 by pagetelegram 2 views
Content Matches: (2 occurrences)
1. ...do if [[ ! -f "$input" ]]; then echo "File not found: $input" continue fi output="${input%.*}.mov" echo "Converting $input to $output (Sorenson Video 1 ~480p, 24 fps)..." ffmpeg -i "$input" \ -v...
2. ...24 fps)..." ffmpeg -i "$input" \ -vf "scale=854:480:force_original_aspect_ratio=decrease,scale=trunc(iw/2)*2:trunc(ih/2)*2,pad=854:480:(854-iw)/2:(480-ih)/2:black,fps=24,format=yuv420p" \ -c:v svq1 \ -q:v 2 \...
SH

Txtcombine

Shell Script 📁 Source Code / SH Feb 16, 2026 by pagetelegram 1 views
Content Matches: (2 occurrences)
1. ...tring to hold all the content all_content="" # Loop through each text file in the current directory for text_file in ./*.txt; do # Check if the file exists (in case there are no text files) if [ -e "$text_file" ]; then # Get...
2. ...lename without the extension base_name=$(basename -- "$text_file") name_without_extension="${base_name%.*}" # Read the content of the file and prepend each line with the filename while IFS= read -r line; do...
SH

Whispy

Shell Script 📁 Source Code / SH Feb 16, 2026 by pagetelegram 3 views
Content Matches: (1 occurrence)
1. ...ho "================================================" echo "" # Loop through all MP3 files for mp3_file in *.mp3; do # Skip if no MP3 files found if [ "$mp3_file" = "*.mp3" ]; then echo "No MP3 files...

Batch Bxc

Shell Script 📁 Source Code / SH Feb 16, 2026 by pagetelegram 1 views
Content Matches: (1 occurrence)
1. ...g only when enabled GIF_FLAG="" if $GEN_GIF; then GIF_FLAG="-g" fi processed=0 skipped=0 for dir in "$SCRIPT_DIR"/*/; do # Find the first csv file in this subdirectory csv="$(find "$dir" -maxdepth 1 -name '*.csv' -print -quit 2...