Skip to content

Instantly share code, notes, and snippets.

@etenzy
etenzy / revision.py
Created January 12, 2024 01:11
translate raspberry pi revcodes
import subprocess
import sys
revcode = sys.argv[1]
code = int(revcode, 16)
new = (code >> 23) & 0x1
model = (code >> 4) & 0xff
mem = (code >> 20) & 0x7
@etenzy
etenzy / cilium-install.yaml
Last active December 8, 2023 02:17
cilium helm installer
apiVersion: v1
kind: ServiceAccount
metadata:
name: helm
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: helm
@etenzy
etenzy / flux-install.yaml
Last active December 4, 2023 00:34
install flux from helm using a job
apiVersion: v1
kind: Namespace
metadata:
name: flux-system
labels:
kubernetes.io/metadata.name: flux-system
name: flux-system
---
apiVersion: v1
kind: ServiceAccount
site.com/file.php
response = nothing
http://site.com/file.php~
response = source
-------------------------------------
https://github.com/kleiton0x00/CRLF-one-liner
------------------------------------------
try to add admin as your user,
change his email to yours,
@etenzy
etenzy / vhost.bash
Created July 24, 2022 20:55 — forked from oxtd/vhost.bash
vhost
gobuster vhost -u http://horizontall.htb/ -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt -t 200
===============================================================
Gobuster v3.1.0
by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart)
===============================================================
[+] Url: http://horizontall.htb/
[+] Method: GET
[+] Threads: 200
[+] Wordlist: /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt
[+] User Agent: gobuster/3.1.0
@etenzy
etenzy / node_exporter
Last active October 19, 2022 10:49
Native Prometheus exporter on older Synology NAS
# /etc/sysconfig/node_exporter
OPTIONS="--path.procfs=/proc --path.sysfs=/sys --collector.filesystem.ignored-mount-points "^/(rootfs/)?(dev|etc|host|proc|run|sys|volume1)($$|/)"
@etenzy
etenzy / gist:e2e8143bc10b6805e75f2c21cfd1cc62
Created March 23, 2022 12:57
Schedule pod on specific node
--overrides='{"spec": { "nodeSelector": {"kubernetes.io/hostname": "NODENAME"}}}'
@etenzy
etenzy / .bashrc
Last active February 8, 2022 10:58
CK{AD,A,S} Shell setup
# in most cases this would be already in the bashrc
alias k=kubectl
source <(kubectl completion bash)
complete -F __start_kubectl k
# these exports only work with bash
export do="--dry-run=client -o yaml"
# usage: k run example nginx $do > example.yaml