Skip to content

Instantly share code, notes, and snippets.

View maanimis's full-sized avatar
💬

Meisam Maani maanimis

💬
View GitHub Profile
@Minion3665
Minion3665 / userscript.js
Last active March 21, 2025 18:06
Leave my keybinds alone userscript
// ==UserScript==
// @name Leave my keybinds alone
// @namespace Violentmonkey Scripts
// @match http*://*/*
// @grant none
// @version 1.0
// @author Skyler Grey <[email protected]>
// @description 19/03/2025 18:14:32: stop websites from overriding common browser keybinds
// @license MIT OR Unlicense OR CC0-1.0
// ==/UserScript==
// ==UserScript==
// @name Anti-Anti-Debug
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Bypass anti-debugging techniques and protect developer tools
// @author Hamaaad Raza
// @match *://*/*
// @run-at document-start
// @grant none
// ==/UserScript==
@realbardia
realbardia / main.cpp
Last active February 5, 2025 11:58
Very simple Neural Network using C++
#include <iostream>
#include <vector>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <random>
using namespace std;
// Activation and Derivative functions
@yigitkonur
yigitkonur / cloudflare-workers.md
Last active January 17, 2025 12:21
AI Instruction Content for Cloudflare Workers

Cloudflare Workers Bible

1. FOUNDATIONS OF CLOUDFLARE WORKERS

Cloudflare Workers revolutionize how developers build and deploy applications by running code directly on Cloudflare's global edge network. This section delves into the foundational aspects of Cloudflare Workers, providing a comprehensive understanding of their definition, benefits, core concepts, supported languages, infrastructure, and various use cases.

1.1 Definition of Cloudflare Workers

Cloudflare Workers are serverless applications that execute JavaScript, TypeScript, Python, Rust, and WebAssembly (WASM) code directly on Cloudflare’s edge servers. Operating at over 300 data centers worldwide, Workers intercept HTTP requests and responses, allowing developers to manipulate, enhance, or respond to web traffic in real-time.

@Ashraf-wan
Ashraf-wan / code.cpp
Created January 4, 2025 16:56
This is the reverse shell code in c++ that bypass 71/72 av in virustotal. This code uses xor, syscalls, qemu cpu checks, earlybird apc and prime number calculation for sleep.
#if (defined(_MSC_VER) || defined(_WIN32) || defined(_WIN64) || defined(__MINGW32__))
#define MSVC 1
#define LINUX 0
#elif (defined(__linux__))
#define MSVC 0
#define LINUX 1
#else
#define MSVC 0
#define LINUX 0
#endif
@hutt
hutt / third-party-cdn-cloudflare-worker-proxy.worker.js
Last active January 17, 2025 14:16
This Cloudflare Worker proxies and caches requests to a CDN, making it easier to avoid third-party-requests
// This Cloudflare Worker proxies and caches requests to a CDN, making it easier to avoid third-party-requests
// https://gist.github.com/hutt/7b3c254a995849e6a06709a872840685/
// Base URL for JSDelivr CDN
const JSDELIVR_BASE_URL = 'https://cdn.jsdelivr.net';
// Path prefix for our proxy
const PROXY_PATH = '/cdn-jsdelivr';
// Default cache duration in seconds (6 hours)
@sontl
sontl / country-detect-cf-worker.js
Created December 27, 2024 07:49
Country detection using CF Worker
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
const headers = {
'Access-Control-Allow-Origin': '*',
'Content-Type': 'application/json'
}
@jakeisnt
jakeisnt / img-proxy-cloudflare-worker.ts
Last active January 17, 2025 14:15
Cloudflare worker: leverage cloudflare image resizing
/**
* - Run `npm run dev` in your terminal to start a development server
* - Open a browser tab at http://localhost:8787/ to see your worker in action
* - Run `npm run deploy` to publish your worker
*
* Bind resources to your worker in `wrangler.toml`. After adding bindings, a type definition for the
* `Env` object can be regenerated with `npm run cf-typegen`.
*
* Learn more at https://developers.cloudflare.com/workers/
*/
@yasershahi
yasershahi / Docker-Ubuntu-Server.md
Last active December 24, 2024 17:28
Install Docker on Ubuntu Server

Note: Before proceeding with the installation, it's recommended to perform some post-installation steps on your server. You can find the details in this gist.

Run the following command to uninstall all conflicting packages:

for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done

Set up Docker's apt repository.

@yasershahi
yasershahi / ubuntu-server-post-install.md
Last active March 16, 2025 06:06
Ubuntu Server Initial Setup

Server Setup Instructions

Login via SSH

ssh root@IP
# enter password and hit Return