Skip to content

Instantly share code, notes, and snippets.

View hansamann's full-sized avatar

Sven Haiges hansamann

View GitHub Profile
#same for left and right
import board;
from kb import varList;
from kmk.kmk_keyboard import KMKKeyboard;
keyboard = KMKKeyboard()
from kmk.keys import KC
from kmk.modules.layers import Layers; keyboard.modules.append(Layers())
from kmk.modules.modtap import ModTap; keyboard.modules.append(ModTap())
@hansamann
hansamann / install.sh
Created July 24, 2019 13:31
Hacked Google Coral RPI4 install.sh
#!/bin/bash
#
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
type Query {
category(categoryId: String) : Category
}
type Category {
id: ID
name: String
subcategories: [Category]
products: [Product]
}
@hansamann
hansamann / flannel_multiarch.yaml
Created May 4, 2018 07:30
Multi-Arch Kubernetes Flannel API Objects
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: flannel
rules:
- apiGroups:
- ""
resources:
- pods
deploy:
stage: deploy
when: manual
script:
- ...
deploy:
stage: deploy
dependencies: []
variables:
GIT_STRATEGY: none
tags:
- tablemaster
script:
- echo ${CI_REGISTRY_PASSWORD} | docker login -u ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY}
- TABLESERVICE=$(docker service ls --filter name=tableservice --quiet)
manifest:
stage: manifest
dependencies: []
variables:
GIT_STRATEGY: none
tags:
- local
script:
- echo ${GITLAB_REGISTRY_PASSWORD} | docker login -u ${GITLAB_REGISTRY_USER} --password-stdin ${CI_REGISTRY}
- docker manifest create ${CI_REGISTRY_IMAGE}:${DEPLOY_TAG} ${CI_REGISTRY_IMAGE}:arm32-${DEPLOY_TAG} ${CI_REGISTRY_IMAGE}:arm64-${DEPLOY_TAG}

Keybase proof

I hereby claim:

  • I am hansamann on github.
  • I am hansamann (https://keybase.io/hansamann) on keybase.
  • I have a public key ASBxo9FENZ9myaGNzREvE6cI7pXnr2Sn7Xp3zYFC8QjNzAo

To claim this, I am signing this object:

@hansamann
hansamann / gist:9490825
Created March 11, 2014 17:33
Espruino Garduino
var wlan, dht, interval, failTimeout;
var debug = true;
var pastValues = {
temperature: [],
air_humidity: [],
soil_humidity: [],
light: [],
vref: []
};