Skip to content

Instantly share code, notes, and snippets.

View ddmunhoz's full-sized avatar

Diego Munhoz ddmunhoz

View GitHub Profile
@colinoflynn
colinoflynn / ioprox_encode.py
Created September 7, 2021 14:27
ioprox Card Numbers to Proxmark Hex Data
# Encodes ioprox data to format used by proxmark, if using a version that doesn't allow you to specify
# the version/facility/cardnumber seperately.
id_str = "XSF(01)66:25342"
version = id_str.split('(')[1].split(')')[0]
facility = id_str.split('(')[1].split(')')[1].split(':')[0]
code = id_str.split(':')[1]
version = int(version, 16) #is this hex? Have only seen 1 or 2 here
@skyzyx
skyzyx / homebrew-gnubin.md
Last active April 13, 2025 03:08
Using GNU command line tools in macOS instead of FreeBSD tools

macOS is a Unix, and not built on Linux.

I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.

Homebrew

Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.

All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.

@thefranke
thefranke / RSS.md
Last active April 11, 2025 10:50
A list of RSS endpoints, readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

global:
scrape_interval: 1m
scrape_timeout: 10s
evaluation_interval: 1m
alerting:
alertmanagers:
- kubernetes_sd_configs:
- role: pod
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
tls_config:
@bortzmeyer
bortzmeyer / gist:1284249
Created October 13, 2011 13:42
The only simple way to do SSH in Python today is to use subprocess + OpenSSH...
#!/usr/bin/python
# All SSH libraries for Python are junk (2011-10-13).
# Too low-level (libssh2), too buggy (paramiko), too complicated
# (both), too poor in features (no use of the agent, for instance)
# Here is the right solution today:
import subprocess
import sys