Skip to content

Instantly share code, notes, and snippets.

View calavera's full-sized avatar

David Calavera calavera

View GitHub Profile
package main
import (
"github.com/docker/docker-credential-helpers/client"
"github.com/docker/docker-credential-helpers/credentials"
)
var nativeStore = client.NewShellProgramFunc("docker-credential-secretservice")
func main() {
#!/bin/bash
set -e
case $1 in
"store")
in=$(</dev/stdin)
server=$(echo "$in" | jq --raw-output ".ServerURL" | sha1sum - | awk '{print $1}')
username=$(echo "$in" | jq --raw-output ".Username")
DOs
- 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.
require 'securerandom'
class NameGenerator
LEFT = [
"admiring",
"adoring",
"affectionate",
"agitated",
"amazing",
"angry",
package main
import (
"github.com/docker/docker-credential-helpers/credentials"
"github.com/docker/docker-credential-helpers/secretservice"
)
var nativeStore = secretservice.SecretService{}
func main() {
// 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: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
(module
(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)))
@calavera
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] http://repo.iovisor.org/apt/bionic 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
# 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
CircuitBreaker.for("b8ks") do |breaker|
breaker.happy do
send_message_to_b8ks(message)
end
breaker.sad do
FEATURES.disable!("b8ks")
retry_message_in_queue(message)
end
end