Skip to content

Instantly share code, notes, and snippets.

View leedm777's full-sized avatar

David M. Lee leedm777

View GitHub Profile
#!/bin/sh
#
# Spin up couchbase in a container
#
PROGNAME=$(basename $0)
: ${VERSION:=community-3.1.3}
alias couchbase-cli="docker exec couchbase couchbase-cli"

Even though I know it was a scam, this voicemail was terrifying.

Hi this is Leslie Owens with the Department of Legal Affairs with US Treasury, and I was trying to reach you in regards to a very important issue. This is verbal notification for you in regards to the enforcement actions that have been started against your name. My number is 339-230-9384. I repeat it's 339-230-9384. If for any reason your are busy to call back, I would suggest you to have your retain attorney to do it for you, as delaying calling us might end up into a legal mess for you. I hope you will take this > right and call me right back. This is Leslie Owens with the Department of

@leedm777
leedm777 / WebRTC-Standards.md
Last active December 4, 2015 19:52
If you start digging into WebRTC, here's all the stuff you'll run into
@leedm777
leedm777 / AnsibleVaultDiff.md
Last active January 2, 2024 08:50
Ansible vault diff in Git

Normally, when you diff an [Ansible vault][], all you see is gibberish.

$ git diff -- group_vars/all/vault.yml
diff --git a/group_vars/all/vault.yml b/group_vars/all/vault.yml
index 245ccf4..90bf9ee 100644
--- a/group_vars/all/vault.yml
+++ b/group_vars/all/vault.yml
@@ -1,111 +1,111 @@
 $ANSIBLE_VAULT;1.1;AES256
#!/bin/sh
# core set debug 3 res_rtp_asterisk.so
TOPDIR=$(cd $(dirname $0) && pwd)
PROGNAME=$(basename $0)
set -ex
eval "$(docker-machine env dev)"
@leedm777
leedm777 / different-hashes.md
Created September 30, 2015 15:11
Different hashes?

From docker build

Step 5 : RUN plugin install logstash-filter-range logstash-filter-json_encode
 ---> Using cache
 ---> d2347580a3d2
Step 6 : COPY conf.d/* /etc/logstash/conf.d/
 ---> Using cache
 ---> 2be77abb40f7

From docker-compose build on the same sources, without changing anything

commit 4619cb09a91249b20c207e67587165ce99349883
Author: David M. Lee <dlee@respoke.io>
Date: Tue Sep 1 16:31:00 2015 -0500
TURN decoders
Adds decoders for DTLS, RTP and TFTP to further decode the protocols
under it. Patch from creslin@digium.com.
diff --git a/epan/dissectors/packet-dtls.c b/epan/dissectors/packet-dtls.c
@leedm777
leedm777 / -
Last active September 1, 2015 21:41
commit 793757a680ed1c817319e6b6271ae22326e5a653
Author: David M. Lee <dlee@respoke.io>
Date: Tue Sep 1 16:31:00 2015 -0500
TURN decoders
Adds decoders for DTLS, RTP and TFTP to further decode the protocols
under it. Patch from creslin@digium.com.
diff --git a/epan/dissectors/packet-dtls.c b/epan/dissectors/packet-dtls.c
@leedm777
leedm777 / docker-run-ssh.sh
Created August 12, 2015 15:29
Run docker, forwarding your SSH agent into the container
#!/bin/sh
#
# Forwards SSH agent into a Docker container running in the active
# docker-machine
#
PROGNAME=$(basename $0)
NAME=$(docker-machine active)
@leedm777
leedm777 / git-krenim.sh
Last active August 29, 2015 14:20
Erases a file from the history of the current branch
#!/bin/sh
#
# Removes a file from git history of the current branch
#
PROGNAME=$(basename $0)
REMOVE=$1