Skip to content

Instantly share code, notes, and snippets.

View slash-cyberpunk's full-sized avatar

Vladislav Shishkov slash-cyberpunk

View GitHub Profile
@slash-cyberpunk
slash-cyberpunk / gist:ee69fe75b56100d51f7e2c6f5dbd226c
Last active September 26, 2024 08:43
Discord with proxy (Mac OS version)
#!/bin/sh
# thnx: https://gist.github.com/Colk-tech/157fd6c81032dde528d3a22434b8f3e6
# and thnx: https://github.com/aiqinxuancai/discord-proxy
/Applications/Discord.app/Contents/MacOS/Discord --a=--proxy-server=http://<host>:<port> --a=--proxy-user=<login> --a=--proxy-password=<password>
@slash-cyberpunk
slash-cyberpunk / tcp_flags.txt
Created July 23, 2024 12:01 — forked from tuxfight3r/tcp_flags.txt
tcpdump - reading tcp flags
##TCP FLAGS##
Unskilled Attackers Pester Real Security Folks
==============================================
TCPDUMP FLAGS
Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere)
Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere)
Pester = PSH = [P] (Push Data)
Real = RST = [R] (Reset Connection)
Security = SYN = [S] (Start Connection)
@slash-cyberpunk
slash-cyberpunk / gist:5b9d41a916cc1ee9f4da231af32873b7
Created July 30, 2021 14:37
Bash multiline from file to one line
tr '\n' ',' < requirements.txt | sed 's/,$/\n/'
or
paste -sd ',' requirements.txt
@slash-cyberpunk
slash-cyberpunk / statsd_mapping.conf
Last active September 24, 2024 09:43
Config for stasd_exporter v0.22.7 and airflow 2.10.1
mappings:
- match: 'airflow\.(.+)_(start|end|heartbeat_failure)$'
match_type: regex
help: "Number of status jobs"
name: "airflow_jobs"
labels:
status: "$2"
job_name: "$1"
- match: "airflow.local_task_job.task_exit.*.*.*.*"
help: "Number of LocalTaskJob terminations with a return_code while running a task of a DAG."