Skip to content

Instantly share code, notes, and snippets.

Avatar
🐝
eBPF is the future

Liz Rice lizrice

🐝
eBPF is the future
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am lizrice on github.
  • I am lizrice (https://keybase.io/lizrice) on keybase.
  • I have a public key whose fingerprint is 09C3 9806 D4C5 31E7 2215 D9C9 19C1 59ED 9DBA D993

To claim this, I am signing this object:

@lizrice
lizrice / fabfile.py
Created Aug 7, 2014
Fab file for connecting and disconnecting to Raspberry PI
View fabfile.py
from __future__ import with_statement
from fabric.api import local, lcd
# Usage:
# fab connect - mounts /home/pi/<pi_dir> so it's available locally at <workspace><remote>
# fab disconnect - unmount
#
# Note this is Mac specific - Linux distributions use fusermount -u instead of umount
# Requires OSXFUSE and SSHFS from http://osxfuse.github.io/
@lizrice
lizrice / hellodeploy.json
Created Sep 13, 2017
Example template for multi-container group in Azure Container Instance deployment
View hellodeploy.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
},
"resources": [
{
"name": "helloContainerGroup",
"type": "Microsoft.ContainerInstance/containerGroups",
"apiVersion": "2017-08-01-preview",
@lizrice
lizrice / variable.go
Created Aug 17, 2019
Variables in functions in Go
View variable.go
func main() {
x := 1
f := func() {
fmt.Printf("x is %d\n", x)
}
x = 2
f()
}
@lizrice
lizrice / cla.md
Last active Aug 22, 2019
Contributor License Agreement
View cla.md

I hereby irrevocably assign all of my right, title and interest in and to my past, present and future contributions to the Name of project Open Source project (“Contributions”) to Recipient, and irrevocably waive and release all rights and claims in respect thereof (including all moral rights or similar rights), without the right to receive any compensation or royalties.

I hereby represent and warrant that I am the sole author of the Contributions, which are my original creations, that I have the legal right to make the assignment set forth above, and that no Contributions are subject to any claim of ownership or otherwise by my employer or any other organization with which I may be affiliated in any way.

@lizrice
lizrice / metadata
Last active Nov 4, 2019
Trivy project CLA
View metadata
{
"name": {
"title": "Full Name",
"type": "string",
"githubKey": "name"
},
"email": {
"title": "E-Mail",
"type": "string",
"githubKey": "email",
@lizrice
lizrice / Vagrantfile
Created Mar 7, 2019
Openshift single-node cluster Vagrantfile
View Vagrantfile
$ cat Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<-SCRIPT
cat > /etc/docker/daemon.json << EOF
{
"insecure-registries": [
"172.30.0.0/16"
@lizrice
lizrice / stars.html
Created Jun 15, 2020
Stargazer count
View stars.html
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<p>Project <span id="repo">aquasecurity/trivy</span> <span id="starcount"></span></p>
</body>
<script>
function getStarcount(repo, resultElement) {
@lizrice
lizrice / Vagrantfile
Last active Jul 13, 2020
Preventative Kubernetes Security demo
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# After loading this
# Install a pod network
# $ kubectl apply -f https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')
# Allow pods to run on the master node
# $ kubectl taint nodes --all node-role.kubernetes.io/master-
@lizrice
lizrice / who-can.yaml
Created Jul 13, 2020
Role & RoleBinding as an example for who-can
View who-can.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: default
name: pod-runner
rules:
- apiGroups: [""] # "" indicates the core API group
resources: ["pods"]
verbs: ["create", "delete", "get", "watch", "list"]
---