Skip to content

Instantly share code, notes, and snippets.

View ShabbirHasan1's full-sized avatar

Xor Byte ShabbirHasan1

View GitHub Profile
@ShabbirHasan1
ShabbirHasan1 / _deobfuscating-unminifying-obfuscated-web-app-code.md
Created December 11, 2025 14:41 — forked from 0xdevalias/_deobfuscating-unminifying-obfuscated-web-app-code.md
Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code
@ShabbirHasan1
ShabbirHasan1 / http_over_tcp_browser_server.md
Created November 27, 2025 11:18 — forked from guest271314/http_over_tcp_browser_server.md
How to use the browser as an HTTP over TCP socket server

Today we will be using the Web browser (Google Chrome for Testing 125) as a local HTTP over TCP socket server.

WICG Direct Sockets specifies an API that provides TCPSocket, UDPSocket, and TCPServerSocket.

In Chromium based browsers, for example Chrome, this capability is exposed in an Isolated Web Apps (IWA).

Previously we have created an IWA that we launch from arbitrary Web sites with open(),

@ShabbirHasan1
ShabbirHasan1 / slack_delete.py
Created September 7, 2025 07:08 — forked from jackcarter/slack_delete.py
Delete Slack files older than 30 days. Rewrite of https://gist.github.com/jamescmartinez/909401b19c0f779fc9c1
import requests
import time
import json
token = ''
#Delete files older than this:
ts_to = int(time.time()) - 30 * 24 * 60 * 60
def list_files():
@ShabbirHasan1
ShabbirHasan1 / README.md
Created September 3, 2025 14:17 — forked from Xuanwo/README.md
他现在运行的是linux我想在上面安装windows.txt
@ShabbirHasan1
ShabbirHasan1 / kpc_demo.c
Created September 1, 2025 07:31 — forked from ibireme/kpc_demo.c
A demo shows how to read Intel or Apple M1 CPU performance counter in macOS.
// =============================================================================
// XNU kperf/kpc demo
// Available for 64-bit Intel/Apple Silicon, macOS/iOS, with root privileges
//
//
// Demo 1 (profile a function in current thread):
// 1. Open directory '/usr/share/kpep/', find your CPU PMC database.
// M1 (Pro/Max/Ultra): /usr/share/kpep/a14.plist
// M2 (Pro/Max): /usr/share/kpep/a15.plist
// M3: /usr/share/kpep/as1.plist
@ShabbirHasan1
ShabbirHasan1 / dynamic_snapshots.rs
Created August 19, 2025 05:43 — forked from Omustardo/dynamic_snapshots.rs
egui_dock save and load DockState from a menu
// Demo of snapshotting and loading DockState.
//
// The general idea is to allow a user to save their layout and then be able to reload it later.
// For example, in an IDE it might be helpful to have one layout for UI programming (e.g. a render
// window on one side) while more space for terminal output might be preferable in other situations.
//
// Being able to save and load DockState allows quickly swapping between layouts. It also allows
// the program to provide preset layouts that users could choose between.
use eframe::NativeOptions;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ShabbirHasan1
ShabbirHasan1 / change-command-line-tools.sh
Created August 8, 2025 04:42 — forked from cansik/change-command-line-tools.sh
Change Xcode Command Line Tools
# change to seperate installation
sudo xcode-select --switch /Library/Developer/CommandLineTools
# change to default installation
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
@ShabbirHasan1
ShabbirHasan1 / nginx.conf
Created August 2, 2025 09:04 — forked from v0lkan/nginx.conf
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
@ShabbirHasan1
ShabbirHasan1 / readme.md
Created August 1, 2025 09:27 — forked from paul-vd/readme.md
GPU Passthrough Fedora