Skip to content

Instantly share code, notes, and snippets.

View dbvdb's full-sized avatar
🇫🇷
Keep it 💯

Danny dbvdb

🇫🇷
Keep it 💯
  • Nowhere
View GitHub Profile
@letsjustfixit
letsjustfixit / decode_config.bash
Created August 6, 2020 18:07
Decode Docker Config
docker config inspect pxc_proxysql_cnf | jq '.[0].Spec.Data' -r | base64 --decode > proxysql.cfg
@ekreutz
ekreutz / ansible_variable_precedence.md
Last active May 28, 2025 08:13
Ansible variable precedence (order, hierarchy)
@pylover
pylover / ssh-tun-freebsd.sh
Last active June 10, 2023 10:57
SSH TUN/TAP for various platforms.
#! /usr/bin/env bash
HOST=example.com
USER=alice
LTUN=0
RTUN=3
LADDR=192.168.2.4/31
RADDR=192.168.2.3
HOSTADDR=$(dig $HOST +short)
GW=192.168.1.1
FLAGS="-p7575 -N -v -w $LTUN:$RTUN"
@sloria
sloria / bobp-python.md
Last active May 28, 2025 02:41
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@yaph
yaph / tunnel.sh
Created December 4, 2012 23:12
aliases for creating and killing an ssh tunnel using sshuttle
# http://coding.smashingmagazine.com/2012/10/29/powerful-command-line-tools-developers/
alias tunnel='sshuttle -D --pidfile=/tmp/sshuttle.pid -r <server> --dns 0/0'
alias stoptunnel='[[ -f /tmp/sshuttle.pid ]] && kill `cat /tmp/sshuttle.pid`'
@pazdera
pazdera / adapter.py
Created August 15, 2011 07:38
Example of `adapter' design pattern in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Example of `adapter' design pattern
# Copyright (C) 2011 Radek Pazdera
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.