Skip to content

Instantly share code, notes, and snippets.

View KeyboardInterrupt's full-sized avatar
🐍
Living by the Zen of Python `import this`

KeyboardInterrupt

🐍
Living by the Zen of Python `import this`
View GitHub Profile

Tcpdump is a CLI tool to capture raw network packets. This is useful for various forms of network troubleshooting. This cheat sheet covers all the basic and advanced options for tcpdump.

Tcpdump cheat sheet

how-to-use-tcpdump

Tcpdump command is a famous network packet analyzing tool that is used to display TCP\IP & other network packets being transmitted over the network attached to the system on which tcpdump has been installed. Tcpdump uses libpcap library to capture the network packets & is available on almost all Linux/Unix flavors.

Capture ICMP Packets With Tcpdump

@KeyboardInterrupt
KeyboardInterrupt / Rendering-the-Nether-Roof.md
Last active August 15, 2024 09:55 — forked from depwl9992/Rendering-the-Nether-Roof.md
A fully comprehensive tutorial for webbukkit/dynmap to render the nether roof in Minecraft

ℹ: Note, this document is a fork, check out the original here: https://gist.github.com/depwl9992/626bf2c20269abe9cda79eeab0de58af My main alteration to it is that I am running a fabric Minecraft server, and the world name for the Nether is DIM-1in my case, all commands have been altered accordingly I also removed Stuff that is not applicable for my setup!

Initial Setup of the Nether Roof Map

  1. Assuming dynmap is already initialized and the folder structure has been generated during a first-time run, <server>/dynmap/custom-perspectives.txt should exist.
  2. Open custom-perspectives.txt in a text editor.
  3. In this file below the line perspectives: add the following lines of text.
 - class: org.dynmap.hdmap.IsoHDPerspective
@KeyboardInterrupt
KeyboardInterrupt / memdump.py
Last active May 31, 2022 10:35 — forked from Dbof/memdump.py
Dump process memory in Linux. See this blog post for more: https://davidebove.com/blog/?p=1620
#! /usr/bin/env python3
import sys
import re
if __name__ == "__main__":
if len(sys.argv) != 2:
print('Usage:', sys.argv[0], '<process PID>', file=sys.stderr)
exit(1)
@KeyboardInterrupt
KeyboardInterrupt / docker-ssh-forward.bash
Created May 23, 2022 07:43 — forked from d11wtq/docker-ssh-forward.bash
How to SSH agent forward into a docker container
docker run --rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash

Hardware specs

Chinese Brand "ITworks" , Model TW891, distributed in France and Belgium by Darty

  • CPU: Intel(R) Atom(TM) CPU Z3735F @ 1.33GHz
  • Video: Intel® HD Graphics for Intel Atom® Processor Z3700 Series
  • Screen: 1280x800
  • WiFi + BT: Realtek RTL8723BS_BT
  • Disks: mmcblk1: mmc1:0001 DF4032 29.1 GiB
  • RAM: 2GB DDR3 @ 1333 MHz
@KeyboardInterrupt
KeyboardInterrupt / github_mirror.py
Created April 28, 2021 06:29 — forked from mgedmin/github_mirror.py
Mirror all my github repositories and gists
#!/usr/bin/env python3
# See http://stackoverflow.com/questions/3581031/backup-mirror-github-repositories/13917251#13917251
# You can find the latest version of this script at
# https://gist.github.com/4319265
import os
import sys
import json
import urllib.request
import subprocess
@KeyboardInterrupt
KeyboardInterrupt / systemdunit.py
Created February 26, 2019 08:19 — forked from esamattis/systemdunit.py
Install Systemd units using Ansible
"""
Install Systemd units using Ansible
Handles unit restarting and systemd daemon reloading when the unit changes.
Also stops the unit correctly when uninstalled
In your playbook put this file to library/systemdunit.py and make sure the
server has python-sh package installed