Skip to content

Instantly share code, notes, and snippets.

View listx's full-sized avatar

Linus Arver listx

View GitHub Profile
@listx
listx / gist:a69301c9c3b98cc4eca8a04f0946f0f3
Created October 20, 2020 23:27
staging image build failure
Logs for https://console.cloud.google.com/cloud-build/builds/11096ed9-98a1-4c36-ac5e-40cf02944cf4?project=675573440409
==============================================================================
starting build "11096ed9-98a1-4c36-ac5e-40cf02944cf4"
FETCHSOURCE
Fetching storage object: gs://k8s-staging-artifact-promoter-gcb/source/1603178297.66-44754d982e0b445186d1db6a3be61896.tgz#1603178297795417
Copying gs://k8s-staging-artifact-promoter-gcb/source/1603178297.66-44754d982e0b445186d1db6a3be61896.tgz#1603178297795417...
/ [0 files][ 0.0 B/208.4 KiB]
/ [1 files][208.4 KiB/208.4 KiB]
from click import command, option, Option, UsageError
class MutuallyExclusiveOption(Option):
mutex_groups = {}
def __init__(self, *args, **kwargs):
opts_list = kwargs.pop('mutex_group', "")
self.mutex_group_key = ','.join(opts_list)
self.mutex_groups[self.mutex_group_key] = 0
help = kwargs.get('help', '')
@listx
listx / curl.md
Created October 21, 2015 18:13 — forked from btoone/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@listx
listx / Makefile
Created June 27, 2012 21:05
libyaml makefile
CC = gcc
CFLAGS = -shared
OBJECTS = api.o dumper.o emitter.o loader.o parser.o reader.o scanner.o writer.o
LIB = libyaml.so
LFLAGS = -shared -Wl,-soname,libyaml.so
%.o: %.c
$(CC) $(CFLAGS) -c -fPIC $<
yaml: $(OBJECTS)
$(CC) $(LFLAGS) -o libyaml.so $(OBJECTS)
@listx
listx / ghci-libyaml-error
Created June 15, 2012 17:38
ghci Libyaml error
[F 15] 45.7491 10:36:15 l@k0 ~/prog/foreign/yaml
> ghci Text/Libyaml.hs -L. -lhelper
GHCi, version 7.4.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading object (dynamic) ./libhelper.so ... done
final link ... done
[1 of 1] Compiling Text.Libyaml ( Text/Libyaml.hs, interpreted )