Skip to content

Instantly share code, notes, and snippets.

View cirocosta's full-sized avatar

Ciro S. Costa cirocosta

View GitHub Profile
---
apiVersion: v1
kind: Namespace
metadata:
name: git-serve-controller
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: git-serve-controller
#!/bin/bash
set -o errexit
main () {
local stats_collector_pid
make_all_jobs_active
login
@cirocosta
cirocosta / instructions
Last active April 21, 2020 21:08
demonstrating ResponseWriter.Write blocking
# run a server
./a.out -server
# run a client
./a.out
# see that the server does not finish writing right away
diff --git a/atc/atccmd/command.go b/atc/atccmd/command.go
index e33d9eee8..cd7006969 100644
--- a/atc/atccmd/command.go
+++ b/atc/atccmd/command.go
@@ -11,6 +11,7 @@ import (
_ "net/http/pprof"
"net/url"
"os"
+ "runtime"
"strings"
@cirocosta
cirocosta / a
Created March 23, 2020 15:28
a
a

trying it out

There are two ways of trying this out:

local build

As long as you have access to a cluster, you can get Concourse to run workloads there.

@cirocosta
cirocosta / a
Created February 5, 2020 21:46
a
a
@cirocosta
cirocosta / containerd-prune
Created January 30, 2020 13:09
prune containerd stuff
#!/bin/bash
set -o errexit
set -o xtrace
main() {
local namespaces=$(list_namespaces)
for namespace in $namespaces; do
local tasks=$(list_tasks $namespace)
@cirocosta
cirocosta / cow_cow_out-of-order.sh
Last active January 21, 2020 19:59
overlay copy-on-write of overlay copy-on-write out of order
#!/bin/bash
set -o errexit
main() {
case $1 in
run)
prepare_fs
empty
@cirocosta
cirocosta / run-concourse-microk8s.txt
Created January 17, 2020 19:59
running the concourse helm chart on microk8s
1. get `apiserver` to allow privileged
the flag `--allow-privileged` in `kube-apiserver`
(https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/)
is not set to `true` by default.
concourse workers need to run as privileged though.
to configure that flag, modify `/var/snap/microk8s/current/args/kube-apiserver` adding
that flag.