Skip to content

Instantly share code, notes, and snippets.

View leogr's full-sized avatar
🎓
I made Falco fly

Leonardo Grasso leogr

🎓
I made Falco fly
View GitHub Profile
@leogr
leogr / gdbsudo
Created March 19, 2021 17:05
GDB with sudo
#!/bin/sh
pkexec /usr/bin/gdb "$@"
@leogr
leogr / dummy-workload.yaml
Created May 14, 2021 09:19
Dummy workload (testing Falco)
apiVersion: apps/v1
kind: Deployment
metadata:
name: alpine-deployment
labels:
app: alpine
spec:
replicas: 300
selector:
matchLabels:
@leogr
leogr / 1000-ports-deployment.yaml
Created June 15, 2021 13:55
k8s deployment with large number of ports (> 1000)
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deploy
spec:
selector:
matchLabels:
app: nginx
template:
metadata:
@leogr
leogr / gdbsudo
Created June 8, 2022 10:30
sudo gdb
#!/bin/sh
pkexec /usr/bin/gdb "$@"
@leogr
leogr / launch.json
Created June 8, 2022 10:33
Debug Falco with sudo gdb in VSCode
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdbsudo) Launch",
"type": "cppdbg",
"request": "launch",