Skip to content

Instantly share code, notes, and snippets.

View abdullascriptbh's full-sized avatar

AbdullaScript abdullascriptbh

View GitHub Profile

Privacy Policy

Last Updated: January 28, 2026

Introduction

Athletes Tracking ("we," "our," or "us") is committed to protecting your privacy. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our mobile application (the "App"). Please read this Privacy Policy carefully. If you do not agree with the terms of this Privacy Policy, please do not access the App.

Information We Collect

@abdullascriptbh
abdullascriptbh / dlist.sh
Last active December 10, 2025 05:12
print docker list with specific column names
dlist() {
local output=""
for col in "$@"; do
output="$output{{.${col}}}\t"
done
docker ps --format "table ${output}"
}
# usage:
@abdullascriptbh
abdullascriptbh / DockerPrint.txt
Created February 4, 2024 06:14
Docker Print List Templates
حتى تسوي برنت للقائمة كلها
$ docker ps -a
——————————————————————————————————
برنت للقائمة فقط اسماء الكونتينرات
$ docker ps --format '{{.Names}}'
——————————————————————————————————
@abdullascriptbh
abdullascriptbh / node-os.json
Created August 24, 2023 07:52
core module of nodejs
{
"result": 0,
"msg": "success",
"EOL": "\n",
"availableParallelism": 8,
"arch": "arm64",
"constants": {
"UV_UDP_REUSEADDR": 4,
"dlopen": {
"RTLD_LAZY": 1,
@abdullascriptbh
abdullascriptbh / Docker-Containers-Ports-List.sh
Created July 30, 2023 04:49
CLI To Display Docker Containers Ports
#!/bin/bash
# Check if at least one argument is provided
if [ $# -eq 0 ]; then
echo "Usage: $0 container_name_or_id [container_name_or_id ...]"
exit 1
fi
# Loop through each argument (container name or ID) and display port information
for container in "$@"; do
/* DELETE */
let AbdullaScript = {
name: “Abdulla”,
website: “https://abdullabh.com”
}
delete AbdullaScript.website
console.log(AbdullaScript) // {name: "Abdulla"}
@abdullascriptbh
abdullascriptbh / dynamic-sql-conditions.js
Last active June 2, 2023 23:54
dynamic sql conditions
let conditions: object[] = [
{
column: "ID",
operator: "=",
value: 43,
},
{
column: "Name",
operator: "LIKE",
value: `%${MemberName}%`,
@abdullascriptbh
abdullascriptbh / allow-access-to-endpoint-by-domain.js
Created May 30, 2023 10:23
a simple middleware example to protect an endpoint access by domain name in expressjs
const { URL } = require("url");
const express = require("express");
const app = express();
const authDomain = async (req, res, next) => {
const allowedDomains = ["destinationDomain.com", "sourceDomain.com"];
const sourceDomain = req.headers.referer ? new URL(req.headers.referer).hostname : undefined;
const destinationDomain = req.hostname;
@abdullascriptbh
abdullascriptbh / txt
Last active May 26, 2023 14:01
[Tutorial] Create and upload Custom Fine Tune Model
# Install OpenAI Package
$ pip install --upgrade openai
------
# Prepare The Terminal Session
$ export OPENAI_API_KEY="YOUR_OPENAI_API_KEY"
------
const { exec } = require("child_process");
// Execute First Command
exec("cd /home/ubuntu/directory-name", async (error, stdout, stderr) => {
if (error) {
console.error(`Error changing directory: ${error}`);
return;
} else {
console.log("FIRST STDOUT: ", stdout);