Skip to content

Instantly share code, notes, and snippets.

View tuxfight3r's full-sized avatar
:octocat:
Working from home

Mohan Balasundaram tuxfight3r

:octocat:
Working from home
View GitHub Profile
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active August 11, 2026 09:10
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@tuxfight3r
tuxfight3r / tcp_flags.txt
Last active July 15, 2026 02:05
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)
@tuxfight3r
tuxfight3r / vim-shortcuts.md
Last active June 19, 2026 13:58
VIM SHORTCUTS

VIM KEYBOARD SHORTCUTS

MOVEMENT

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
tuxfight3r / sslserver_notes.txt
Last active April 4, 2026 19:44
openssl tricks
#connect to ssl site
openssl s_client -connect ip:port
#vhost connect
openssl s_client -servername mysite.co.uk -connect mysite.co.uk:443
#Reading CSR
openssl req -noout -text -in uat-mobi.scotrail.co.uk.csr
#Reading certificates
@tuxfight3r
tuxfight3r / gist:58bd9b69134791c64255
Created June 9, 2015 11:15
Jenkins REST API Automation via curl
#Get the current configuration and save it locally
curl -X GET http://user:password@hudson.server.org/job/myjobname/config.xml -o mylocalconfig.xml
#Update the configuration via posting a local configuration file
curl -X POST http://user:password@hudson.server.org/job/myjobname/config.xml --data-binary "@mymodifiedlocalconfig.xml"
#Creating a new job via posting a local configuration file
curl -X POST "http://user:password@hudson.server.org/createItem?name=newjobname" --data-binary "@newconfig.xml" -H "Content-Type: text/xml"
@tuxfight3r
tuxfight3r / gist:593f35f297f8b619a470
Created November 28, 2014 18:43
openssh proxy tricks
METHOD 1: (with nc in localbox)
ssh -D 60002 mohan@10.1.1.20
sftp -o 'ProxyCommand=nc -xlocalhost:60002 %h %p' USER@remotehost.com
METHOD 2: (with nc in remote box)
sftp -o 'ProxyCommand ssh -q -l mohan 10.1.1.20 nc remotehost.com 22' USER@remotehost.com
METHOD 3: (without nc at all)
ssh -L 60002:remotehost.com:22 mohan@10.1.1.20
sftp -o Port=60002 USER@localhost
@tuxfight3r
tuxfight3r / gist:36bc739c6c69171f88ee
Last active March 23, 2026 14:44
Common linux signals

Common Linux Signals

Signal name Signal value Effect
SIGHUP 1 Hangup , graceful restart if programmed in daemon
SIGINT 2 Interrupt from keyboard, "ctrl+c"
SIGKILL 9 Kill signal, "kill -9"
SIGTERM 15 Termination signal, "kill"
SIGSTOP 17,19,23 Stop the process, "ctrl+z"
@tuxfight3r
tuxfight3r / notes.sh
Last active March 12, 2026 09:29
install stress on amazon linux 2
sudo amazon-linux-extras install epel -y
sudo yum install stress -y
#Run stress for 5mins
sudo stress --cpu 1 --timeout 320
@tuxfight3r
tuxfight3r / docker-cheat-sheet.md
Created July 28, 2016 15:30
Docker Cheat Sheet
@tuxfight3r
tuxfight3r / readme.md
Created December 4, 2019 12:25
curl as an ldap client

Use curl as an LDAP client

curl "ldap://localhost:1389/dc=example,dc=com?homephone?sub?cn=*amar" \

     -u "cn=directory manager"
Enter host password for user 'cn=directory manager':
DN: uid=mathieu,ou=People,dc=example,dc=com
    homephone: +1 225 216 5900