Skip to content

Instantly share code, notes, and snippets.

View calavera's full-sized avatar

David Calavera calavera

View GitHub Profile
- play with her before she has anything to eat in the morning.
That way she'll be hungrier for any reward you give her,
and she'll be willing to pay more attention to you.
- try different balls, or balls with squakers inside, or any object really.
What you want at the beginning is to create drive so she will chase it.
Find something that she really wants and tease her for her to grab it.
- As soon as she grabs the ball, say YES! and throw some kibble on the floor by her side.
// This file was initially generated by Windows Terminal Preview 1.3.2382.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see:
"$schema": "",
(type $i32_=>_none (func (param i32)))
(type $i32_i32_=>_none (func (param i32 i32)))
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
(type $i32_i32_i32_=>_none (func (param i32 i32 i32)))
(type $i32_=>_i32 (func (param i32) (result i32)))
(type $none_=>_none (func))
(type $i32_i32_i32_i32_=>_none (func (param i32 i32 i32 i32)))
(type $none_=>_i32 (func (result i32)))
(type $i32_i32_i32_=>_i32 (func (param i32 i32 i32) (result i32)))
# We need to create a hash map.
# We'll attach that map to a program later.
map create /sys/fs/bpf/hash_map type hash key 4 value 8 entries 10 name hash_map
# List all maps in the system,
# so I can verify that the new map is there.
map show
# Load a program and attach the new map to it.
prog load bpf_prog.o /sys/fs/bpf/bpf_prog map name hash_map /sys/fs/bpf/hash_map
calavera / Dockerfile
Last active January 13, 2020 07:56
Dockerfile to build the Go version of Execsnoop and run it with JSON output format
FROM ubuntu:18.04
# Install BCC Tools
RUN set -ex; \
echo "deb [trusted=yes] bionic-nightly main" > /etc/apt/sources.list.d/iovisor.list; \
apt-get update -y; \
DEBIAN_FRONTEND=noninteractive apt-get install -y auditd bcc-tools curl gcc git libelf1 libbcc-examples;
# Install Go
ENV GO_SHA 1dfe664fa3d8ad714bbd15a36627992effd150ddabd7523931f077b3926d736d
CircuitBreaker.for("b8ks") do |breaker|
breaker.happy do
breaker.sad do
if FEATURES.enabled?(actor, "b8ks")
CircuitBreaker.for("builds") do |breaker|
breaker.happy do
breaker.sad do
[Mar 28 16:54:30.035] Server {0x2b61c36ad700} DEBUG: < (main_handler)> (pvc_event) [1110] Passive: Received event 1
[Mar 28 16:54:30.041] Server {0x2b61c35ab700} DEBUG: < (main_handler)> (pvc_event) [1109] Passive: Received event 1
[Mar 28 16:54:30.042] Server {0x2b61c35ab700} DEBUG: < (main_handler)> (pvc_event) [1109] Active: Received event 1
[Mar 28 16:54:30.059] Server {0x2b61c34a9700} DEBUG: < (main_handler)> (pvc_event) [1111] Active: Received event 1
[Mar 28 16:54:30.061] Server {0x2b61c34a9700} DEBUG: < (main_handler)> (pvc_event) [1111] Active: Received event 1
[Mar 28 16:54:30.077] Server {0x2b61c36ad700} DEBUG: < (main_handler)> (pvc_event) [1111] Passive: Received event 1
Fatal: failed assertion `data == &tunnel`
traffic_server: using root directory '/opt/ts'
[Mar 28 16:54:30.082] traffic_crashlog {0x2adc7068afc0} NOTE: crashlog started, target=1207, debug=false syslog=true, uid=0 euid=0
require 'securerandom'
class NameGenerator
LEFT = [