Skip to content

Instantly share code, notes, and snippets.

View Ademking's full-sized avatar
🍪
Eating Cookies

Adem Kouki Ademking

🍪
Eating Cookies
View GitHub Profile
@Ademking
Ademking / README.md
Last active March 15, 2026 22:30
Windows 10 - Remove Garbage apps

(UPDATE): Remove Bloatware using "Windows10Debloater" [with GUI]

  1. Run Powershell (as admin)

  2. Copy/paste

 iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat')) 
@Ademking
Ademking / README.md
Last active March 11, 2026 13:55
Facebook api links
1: Count the number of sent messages
https://graph.facebook.com/me/threads?limit=50&access_token=xxxxxxxxxxx

2: Delete the message
https://graph.facebook.com/id_tu_api_dem_tin_nhan?access_token=&method=delete

3: Get ds all your friends
https://graph.facebook.com/fql?q=SELECT+uid,+name,+friend_count,+subscriber_count+FROM+user+WHERE+uid+IN+(SELECT+uid2+FROM+friend+WHERE+uid1+=+me())++ORDER+BY+rand()+LIMIT+5000&access_token=
@Ademking
Ademking / README.md
Last active March 10, 2026 16:48
How to install acunetix (linux)
@Ademking
Ademking / sensitive.txt
Created September 7, 2023 06:56
List of sensitive files and directories
.sql
.sql.gz
.sql.tar
.sql.bzip2
.sql.bz2
.sql.zip
.sql.rar
.sql.7z
.bash_history
.bashrc
@Ademking
Ademking / scanner.sh
Created December 8, 2025 14:44
CVE-2025-55182 Scanner - React2Shell
#!/bin/bash
# CVE-2025-55182 Advanced Scanner
# A comprehensive tool for detecting and exploiting CVE-2025-55182 in Next.js applications
# Based on the Nuclei template from: https://cloud.projectdiscovery.io/library/CVE-2025-55182
#
# Usage:
# ./scanner.sh -d <domain> -c <command>
# ./scanner.sh -d vulnapp.com -c id
# ./scanner.sh -d http://localhost:3000 -c "ping -c 3 google.com"
def log_metrics(self, metrics: dict, prefix: str = "train") -> None:
"""
Log average metrics to Weights & Biases (wandb).
Args:
metrics (dict): Dictionary of metric names (str) to lists of tensor/float values.
prefix (str): Prefix for metric names (e.g., "train" or "eval").
"""
# FIX: Correct dictionary comprehension syntax and safe PyTorch-only calculation (faster)
try:
averaged_metrics = {
metric: np.mean([v.cpu().detach().item() if hasattr(v, "cpu") else v for v in values])
for metric, values in metrics.items()
}
import torch
from safetensors.torch import load_file
import json
import os
# path to HF checkpoint
index_file = "model.safetensors.index.json"
with open(index_file, "r") as f:
index = json.load(f)
@Ademking
Ademking / nearest.js
Created June 14, 2020 23:23
JS: Find Nearest Color from Array
const baseColors = [
{
"hex": "#FFFFFF",
"name": "White",
},
{
"hex": "#000000",
"name": "Black",
},
{
@Ademking
Ademking / readme.md
Last active August 28, 2025 14:22
💚 Android : Send SMS through ADB

(Android 5)

Run :

adb shell service call isms 9 s16 "com.android.mms" s16 "123456789" s16 "null" s16 "MESSAGEBODY" s16 "null" s16 "null"

The method is :