This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Usage: | |
# $ inspect-tls-cert.sh facebook.com | |
set -eux | |
server=${1:-"stripe.com"} | |
certfile=/tmp/${server}.cert | |
openssl_client_connect="openssl s_client -connect ${server}:443 -servername ${server}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Backup an entire LVM logical volume via a snapshot LV and rsync | |
[[ $( whoami ) != 'root' ]] && echo "sudo please" && exit 1 | |
set -o errexit | |
set -o nounset | |
# LVM logical volume to backup | |
lv=book01 |
To be able to use PHP5 PDO with MS Access mdb files the following is required (the same applies for the PHP4 style of using odbc_X
except for the obviously PDO specific requirements):
In Linux this is achieved by intalling the php5-odbc
package:
Questions marked as (HM) are best suited for the hiring manager.
- Why are you working at this company? What motivates you to stay?
- What’s something that if your team/org achieves this year, the entire company/leadership would notice?
- If you had a magic wand, what’s one thing you’d change about the company?
- (HM) If you had filled this role 2 months ago, what would they be doing now?
This is an example of using Linux Kernel's
Transparent Proxy
to route all TCP traffic to docker containers without having to resort to
PROXY protocol
which is not supported by some applications
(e.g. sshd
). To get the demo to work you only need vagrant installed:
git clone [this-gist] tproxy-demo
cd tproxy-demo
vagrant up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
venv | |
pos.txt | |
neg.txt | |
plot.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import argparse | |
import subprocess | |
REMOTE = 'origin' | |
class CmdError(RuntimeError): |
NewerOlder