Skip to content

Instantly share code, notes, and snippets.

🐑
👀

Ciro S. Costa cirocosta

🐑
👀
Block or report user

Report or block cirocosta

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cirocosta
cirocosta / docker-compose.yml
Created Oct 16, 2019
a three-worker Concourse `docker-compose.yml` with Jaeger
View docker-compose.yml
version: '3'
services:
db:
image: postgres
ports:
- 6543:5432
environment:
POSTGRES_DB: concourse
POSTGRES_USER: dev
@cirocosta
cirocosta / Dockerfile
Created Jul 14, 2019
An example of how to build the `concourse/concourse` image with a modified `gdn`
View Dockerfile
FROM golang AS base
RUN apt update && \
apt install -y \
git gcc libseccomp-dev
ENV \
CC=gcc \
CGO_ENABLED=1
View test-execution-14945
Running in parallel across 6 nodes
• [SLOW TEST:57.335 seconds]
Main team role config
/Users/cirocosta/workspace/concourse/topgun/k8s/mainteam_role_test.go:11
Adding team role config yaml to web
/Users/cirocosta/workspace/concourse/topgun/k8s/mainteam_role_test.go:45
returns the correct user role
/Users/cirocosta/workspace/concourse/topgun/k8s/mainteam_role_test.go:74
------------------------------
@cirocosta
cirocosta / dump.sh
Created May 29, 2019
Get golang dumps from BOSH deployed concourse
View dump.sh
#!/bin/bash
set -o errexit
set -o nounset
set -o xtrace
readonly DUMP_PREFIX="/tmp/dump.$(date +%Y-%m-%d)"
readonly INSTANCE_GROUP=${INSTANCE_GROUP:-web}
View gist:16ee10c529f482ce0ce7af7a97ec7390
[2938142.956375] INFO: task link:3239126 blocked for more than 120 seconds.
[2938142.963358] Tainted: G W 4.15.0-45-generic #48~16.04.1-Ubuntu
[2938142.971542] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[2938142.979964] link D 0 3239126 3232390 0x000001a0
[2938142.979969] Call Trace:
[2938142.979980] __schedule+0x3d6/0x8b0
[2938142.979984] ? __switch_to_asm+0x40/0x70
[2938142.979986] schedule+0x36/0x80
[2938142.979988] schedule_timeout+0x1db/0x370
[2938142.979991] wait_for_completion+0xb4/0x140
@cirocosta
cirocosta / apfs.sh
Created Mar 15, 2019
a "baggageclaim-driver"-a-like script leveraging `hdiutil` and `clonefile(2)`
View apfs.sh
#!/bin/bash
# apfs - a "baggageclaim-driver"-a-like script leveraging `hdiutil` and
# `clonefile(2)`.
#
# Usage: apfs.sh (create|cow|destroy)
#
# Commands:
# create vol-id desc: creates a volume
# cow vol-id parent-vol-id desc: creates a cow layer based on `parent-vol-id`
View btrfs-setup.sh
#!/bin/bash
# Usage: ./script.sh arg1
#
# Arg1: the number of the loopback device to create
# (must be a number that does not match the entries under
# /dev/loop<N>)
#
# e.g.: if `ls /dev` shows /dev/loop{0,1,2}, here you can
# use something like `10`.
View httpstat-pipeline.yml
resources:
- name: periodically
type: time
source:
interval: 15s
- name: httpstat-image
type: registry-image
source:
repository: concourse/test-pivnet-resource-http-stat
@cirocosta
cirocosta / script.sh
Created Nov 20, 2018
Creates a loopback device w/ btrfs, creates a base volume and then a bunch of COWs based on the base volume.
View script.sh
#!/bin/bash
# Usage: ./script.sh arg1
#
# Arg1: the number of the loopback device to create
# (must be a number that does not match the entries under
# /dev/loop<N>)
#
# e.g.: if `ls /dev` shows /dev/loop{0,1,2}, here you can
# use something like `10`.
@cirocosta
cirocosta / main.go
Created Nov 6, 2018
Capturing errors on a deferred statement
View main.go
package main
import (
"fmt"
"os"
"code.cloudfoundry.org/lager"
)
// methodThatFails simply always fails, returning an
You can’t perform that action at this time.