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
@KeyboardInterrupt
KeyboardInterrupt / ogamex-notes.md
Created October 30, 2024 09:19
Tips and tricks for ogamex

Gameplay Tips:

  • Fleet Saving (FS): Use "moon-to-moon" deployment for safer fleet saving.
  • Expedition Fleet Composition: Send ships based on metal cost for optimal returns; avoid slow ships.

Miner Strategy:

  • Expeditions can be profitable even for miners. Focus on fleet compositions like Cargo/Recycler/Asteroid miners to maximize efficiency.
  • The Scrap Event allows miners to recycle fleet finds for resource gains.
  • Raiding Strategy: Regularly raid inactive players to gather resources without stress; it’s a sustainable way to earn points.
  • Locate asteroids by using the "Find asteroids" function to receive coordinates; send Asteroid Miner afterward.

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 / clone_all_project_in_gitlab_group.sh
Last active May 15, 2023 09:17
Clone all Git Projects in a Gitlab Group, including Subgroups, by ID
#!/usr/bin/env bash
if [ -z ${GITLAB_BASE_PATH+x} ]; then
read -p "GITLAB_BASE_PATH: " -r GITLAB_BASE_PATH
fi
if [ -z ${GITLAB_READONLY_PRIVATE_TOKEN+x} ]; then
read -p "GITLAB_READONLY_PRIVATE_TOKEN: " -r GITLAB_READONLY_PRIVATE_TOKEN
fi
if [ -z ${GROUP_ID+x} ]; then
read -p "GROUP_ID: " -r GROUP_ID
@KeyboardInterrupt
KeyboardInterrupt / list_all_user_crontabs.sh
Created October 25, 2019 08:02
list all user specific crontabs
#!/bin/bash
for user in /var/spool/cron/crontabs/*
do
echo #${user}'s crontab:
cat ${user}
done
@KeyboardInterrupt
KeyboardInterrupt / crm.fact
Last active August 14, 2019 11:49
Ansible Custom Fact to gather Pacemaker Cluster Information - This script is a custom fact for ansible that turns `crm configure show` and `crm_mon` output into a fact that can be used in Ansible. i.E. to iterate over all nodes in a cluster, check for the location of a resource and so on.
#!/usr/bin/python
#
# Description:
# This script is a custom fact for ansible that turns `crm configure show` and `crm_mon`
# output into a fact that can be used in Ansible. i.E. to iterate over all
# nodes in a cluster, check for the location of a resource and so on.
#
# Dependencies:
# - xmltodict - https://pypi.org/project/xmltodict/
#