Skip to content

Instantly share code, notes, and snippets.

Mohan Balasundaram tuxfight3r

Block or report user

Report or block tuxfight3r

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tuxfight3r / tcp_flags.txt
Last active Apr 8, 2020
tcpdump - reading tcp flags
View tcp_flags.txt
Unskilled Attackers Pester Real Security Folks
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)
tuxfight3r / ipxe_with_dhcp.txt
Last active Apr 8, 2020
ipxe kickstart over http - dhcp and static configuration
View ipxe_with_dhcp.txt
#clone the repo
git clone
cd ipxe/src
cat >ubuntu-amd64-installer.ipxe <<EOF
echo Starting Ubuntu x64 installer for ${hostname}
set base-url
kernel ${base-url}/linux
tuxfight3r / openshift_cli_tricks.MD
Last active Apr 3, 2020
openshift cli tricks - using go templates
View openshift_cli_tricks.MD

openshift list all pods and thier specs (requests/limits)

oc get pod -o jsonpath='{range .items[*]}{"SPEC:  \n  LIMITS  : "}{.spec.containers[*].resources.limits}{"\n  REQUESTS: "}{.spec.containers[*].resources.requests}{"\n"}{end}'

openshift list all pods and thier specs with name (requests /limits)

oc get pod -o jsonpath='{range .items[*]}{"NAME:  "}{}{"\nSPEC:  \n  LIMITS  : "}{.spec.containers[*].resources.limits}{"\n  REQUESTS: "}{.spec.containers[*].resources.requests}{"\n\n"}{end}'
tuxfight3r / slapd
Last active Mar 24, 2020
openldap proxy to AD with TLS
View slapd
#file /etc/sysconfig/slapd
# OpenLDAP server configuration
# see 'man slapd' for additional information
# Where the server will run (-h option)
# - ldapi:/// is required for on-the-fly configuration using client tools
# (use SASL with EXTERNAL mechanism for authentication)
# - default: ldapi:/// ldap:///
# - example: ldapi:/// ldap:// ldap:// ldaps:///
SLAPD_URLS="ldap:/// ldaps:///"
tuxfight3r / jenkins-decrypt.groovy
Created Sep 23, 2015
Decrypting Jenkins Password
View jenkins-decrypt.groovy
#To Decrypt Jenkins Password from credentials.xml
#go to the jenkins url
#In the console paste the script
View gist:9056eb0862fdf2e8b8755b3c6ce40af1
curl -s -X GET http://localhost:8080/pdb/query/v4/facts --data-urlencode query@test --data-urlencode 'pretty=true'
curl -X POST http://localhost:8080/pdb/query/v4/facts \
-H 'Content-Type:application/json' \
-d '{"query":["and",["=","certname","FQDN"],["=","name","ipaddress"]]}'
content of file test :



h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)
tuxfight3r / menu.livecd.ipxe
Created May 3, 2016
ipxe linux livecd / netinstall menus
View menu.livecd.ipxe
# To access this file via http use following redirection:
menu LiveCD
item --gap Ubuntu:
item live_ubuntu_16.04 Ubuntu Trusty 16.04 LiveCD
item live_ubuntu_14.04 Ubuntu Trusty 14.04 LiveCD
item live_ubuntu_12.04 Ubuntu Precise 12.04 LiveCD
tuxfight3r /
Last active Feb 27, 2020
minikube tips & tricks

create a new minikube profile

minikube profile lab

minikube set config for cpu/memory/disk

minikube config set cpus 4
minikube config set memory 8192
minikube config set disk-size 10240MB
tuxfight3r /
Last active Feb 26, 2020
Bash keyboard shortcuts



command description
ctrl + a Goto BEGINNING of command line
ctrl + e Goto END of command line
ctrl + b move back one character
You can’t perform that action at this time.