Skip to content

Instantly share code, notes, and snippets.

@boomshadow
boomshadow / dnsmasq.conf
Last active October 11, 2023 21:51 — forked from NAR8789/dnsmasq.conf
wildcard dns for docker-compose using dnsmasq
# explicitly define host-ip mappings
# dnsmasq entries are always wildcard entries, so this maps both myapp.local and *.myapp.local
address=/myapp.local/219.219.219.125
# set the upstream resolver for people running Linux; this allows all other DNS to be resolved:
server=1.1.1.1
server=1.0.0.1
@boomshadow
boomshadow / Dockerfile
Created May 1, 2019 02:09
basic psql install on CentOS
FROM centos:7
RUN yum install -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm
RUN yum install -y postgresql10 postgresql10-devel
@boomshadow
boomshadow / disk_partition.py
Created August 20, 2017 19:00
Datadog custom agent check for number of drives/partitions
from checks import AgentCheck
import psutil
class DiskPartitionCheck(AgentCheck):
def check(self, instance):
self.gauge('disk_partition.count', len(psutil.disk_partitions()))
@boomshadow
boomshadow / aws_config.yml.example
Last active August 15, 2017 14:12
OpenVPN Dynamic DNS with Amazon Route53
access_key_id: XXXXXXX
secret_access_key: XXXXXXX
@boomshadow
boomshadow / InstaRaider_installation.sh
Last active October 20, 2015 05:45
Installing InstaRaider on Ubuntu desktop 14.04 LTS.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git firefox
#Python 3 should already be installed on Ubuntu 14
apt-get install python3-dev libffi-dev libssl-dev
wget https://bootstrap.pypa.io/get-pip.py
sudo -H python3 get-pip.py
sudo -H pip install requests[security]