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 / 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