Skip to content

Instantly share code, notes, and snippets.

View piotr1212's full-sized avatar

Piotr Popieluch piotr1212

  • The Netherlands
View GitHub Profile
@piotr1212
piotr1212 / _etc_uwsgi.d_graphite.ini
Created December 1, 2015 18:37
wsgi config for graphite-web on f21-22 (using Fedora rpm package)
[uwsgi]
socket=0.0.0.0:4800
master = true
single-interpreter = true
uid = apache
gid = apache
pythonpath = /usr/share/graphite
pythonpath = /usr/share/graphite/webapp
chdir = /usr/share/graphite/webapp
plugins=python
@piotr1212
piotr1212 / statsd.py
Created May 30, 2018 20:19
Trying out Python's asyncio: Minimal statsd thingy
import asyncio
import time
import threading
from time import time
SERVER_ADDRESS = ('127.0.0.1', 5566)
INTERVAL = 10
@piotr1212
piotr1212 / connect_stat.stp
Created June 26, 2020 14:07
Check what connects to my port systemtap, from https://sourceware.org/systemtap/examples/network/connect_stat.stp but added port
#! /usr/bin/env stap
############################################################
# connect_stat.stp
# Author: Robin Hack <[email protected]>
# An example script show process tree of process
# which tried to call connect with specific ip address
############################################################
function process_tree (ip:string) {