Skip to content

Instantly share code, notes, and snippets.

View eranchetz's full-sized avatar
🔧

Eran Chetz eranchetz

🔧
View GitHub Profile
@eranchetz
eranchetz / gcp-security-monitoring.md
Created October 20, 2021 16:30 — forked from mikesparr/gcp-security-monitoring.md
Google Cloud Platform CIS Benchmark Configs For Log Monitoring
@eranchetz
eranchetz / gist:8da503bd5d61bd8e4f1f22e76fb6ae3e
Created August 22, 2017 12:52 — forked from tonyc/gist:1384523
Using strace and lsof

Using strace and lsof to debug blocked processes

You can use strace on a specific pid to figure out what a specific process is doing, e.g.:

strace -fp <pid>

You might see something like:

select(9, [3 5 8], [], [], {0, 999999}) = 0 (Timeout)

@eranchetz
eranchetz / config.ctmpl
Created March 29, 2017 09:22
Example Chef recipe to install Consul Template
{{
# /opt/my-app/consul.ctmpl
#
# This file is read by Consul Template and rendered onto disk using
# the configuration placed in /etc/consul-template.d.
}}
{{ with vault "postgresql/creds/readonly" }}
[config]
username = "{{ .Data.username }}"