Skip to content

Instantly share code, notes, and snippets.

View sgnn7's full-sized avatar
🤔
ǝʌᴉʇɔǝdsɹǝd ɹnoʎ ǝƃuɐɥƆ

Srdjan Grubor sgnn7

🤔
ǝʌᴉʇɔǝdsɹǝd ɹnoʎ ǝƃuɐɥƆ
View GitHub Profile
@sgnn7
sgnn7 / Dockerfile
Last active November 19, 2021 20:47
Datadog Agent integrations live Python interpreter profiling
FROM python:3.8-slim-bullseye
RUN apt update && \
DEBIAN_FRONTEND="noninteractive" apt install -y procps && \
apt clean
RUN pip3 install py-spy==0.3.11
RUN mkdir -p /output
@sgnn7
sgnn7 / .dockerignore
Created October 18, 2021 16:24
OpenSSL FIPS Canister - Ubuntu 20.04
*.sw[po]
@sgnn7
sgnn7 / BoringCrypto_Windows_DLL
Last active July 10, 2023 02:42
Build BoringCrypto / BoringSSL DLL on Windows 10
PS ...\boringssl> mkdir build
PS ...\boringssl> cd build
PS ...\boringssl> # Create build_boringssl.ps1
PS ...\boringssl\build> powershell -executionpolicy bypass -File .\build_boringssl.ps1
...
DLL is at ...\boringssl\build\outx64\ssl\ssl.dll
@sgnn7
sgnn7 / testcheck.py
Created June 8, 2021 21:56
Datadog Agent check that exercises the multiprocessing library
import logging
import os
import sys
import time
import multiprocessing as mp
from multiprocessing import Process, Queue
try:
from datadog_checks.base import AgentCheck
@sgnn7
sgnn7 / go_deps.go
Last active September 3, 2021 07:37
Golang deps enumeration
package main
import (
"bufio"
"bytes"
"context"
"fmt"
"io"
"os"
"os/exec"
@sgnn7
sgnn7 / docker-compose.compiler.yml
Last active September 4, 2020 05:40
Puppet w/ Compile Masters Test Env
version: "3"
services:
# Puppet - Compilation Server
puppet-compiler:
image: puppet/puppetserver:${PUPPET_SERVER_TAG:-latest}
network_mode: "host"
ports:
- 8140
volumes:
@sgnn7
sgnn7 / install_local_puppetmaster.sh
Last active June 26, 2020 19:57
Install Puppet6 on Ubuntu w/ dev `cyberark-conjur` module script
#!/bin/bash
set -euo pipefail
if [ $EUID != 0 ]; then
echo "Must run this script as root!"
exit 1
fi
PUPPET_VERSION=6
@sgnn7
sgnn7 / README.md
Last active June 16, 2020 13:39
Upgrading Conjur OSS Helm chart from `v1.3.8` to `v2.0.0`
@sgnn7
sgnn7 / conjur_openapi.md
Last active October 30, 2019 18:47
Conjur API openapi - use http://editor.swagger.io/ to edit /validate or a regular text editor
package log
import (
"bytes"
"fmt"
"reflect"
"regexp"
"strings"
"testing"