Skip to content

Instantly share code, notes, and snippets.

View sebastianwebber's full-sized avatar
Working from home

Sebastian Webber sebastianwebber

Working from home
View GitHub Profile
sebastianwebber /
Last active July 14, 2022 04:20
enable arm support for docker in fedora 36 on x86_64 machines
sebastianwebber /
Last active March 17, 2023 14:33
Run benchmarks on postgres with pgbench
#!/bin/bash -ex
export PGBIN=/usr/pgsql-9.3/bin
export PGUSER=postgres
export PGDATABASE=bench
export DATADIR=/dados/pgbench
export CLUSTER_LOG=/tmp/benchmark.log
export TOTAL_CPUS=$(grep 'cpu cores' /proc/cpuinfo | uniq | awk '{print $NF}')
sebastianwebber /
Last active June 25, 2023 00:43
9.3.5 build on centos 7

9.3 build on centos 7


yum install -y wget systemtap-sdt-devel gcc make bison flex perl-devel perl-ExtUtils-Embed readline-devel zlib-devel python-devel openssl-devel pam-devel libxml2-devel libxslt-devel openldap-devel tcl-devel


sebastianwebber /
Created June 26, 2020 17:36
How to install buildah on ubuntu 20.04

. /etc/os-release
sudo sh -c "echo 'deb${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
wget -nv${VERSION_ID}/Release.key -O Release.key
sudo apt-key add - < Release.key
sudo apt-get update -qq
sudo apt-get -qq -y install buildah
sebastianwebber /
Created May 12, 2020 15:41
keybase proof

Keybase proof

I hereby claim:

  • I am sebastianwebber on github.
  • I am sebawebber ( on keybase.
  • I have a public key ASAVnC1vicYp9QJrHT8KelRyeM740ej76ZUqnzdOXWYJmgo

To claim this, I am signing this object:

sebastianwebber /
Created July 15, 2019 17:32
list crontabs from all gcp servers
server_list=$(gcloud compute instances list --format='get(networkInterfaces[0].networkIP)' --filter="status=running")
for server in ${server_list[@]}; do
echo "server: $server"
ssh $server 'sudo cat /var/spool/cron/* /etc/crontab'
echo "-----------"
sebastianwebber /
Created February 28, 2019 02:24
find YOUR git history amoung lots of git repositories
## include on your .zshrc (or similar)
#### tested on OSX
function findGitHistory() {
targetUser=$(git config --get
sebastianwebber /
Last active February 19, 2019 02:36
go animal race


small experiment on our go meetup.


sebastianwebber / pg-notify-parallel.go
Last active March 11, 2024 15:45
postgres listen/notifiy with golang and `go-pg`
package main
import (
const maxWorkers = 5
sebastianwebber / ftpd.mtail
Last active January 4, 2019 20:48
mtail prog to parse vsftpd logs in xferlog format
hidden text FILENAME
counter log_ftp_files_processed_count by username, remote_host, transfer_type, direction
counter log_ftp_files_deleted_count by username, remote_host, transfer_type
counter log_ftp_files_incomplete_transfers_count by username, remote_host, transfer_type
FILENAME = getfilename()
## example file
### Fri Jan 4 12:55:27 2019 1 224 /path/to/file.CSV b _ o r user_name ftp 0 * c