Skip to content

Instantly share code, notes, and snippets.

View chopmann's full-sized avatar

Cornelio Hopmann chopmann

  • WobCom
  • Hildesheim
View GitHub Profile
@chopmann
chopmann / decode.js
Created November 1, 2019 07:11
FeedbackNow - LoraServer Decoder
// 39 14 23 04c 4 00000000000000
// CC GG YY RRR X
// ButtonCodes
// 0x4 green, 0x8 yellow, 0xc red
function Decode(fport, bytes) {
var decoded = {}
decoded.loopStep = bytes[0] >>> 2
var greenHighBits = (bytes[0] % 4) << 8
decoded.green = (greenHighBits + bytes[1]) / 4
root@controller-0:~# kubectl logs pod/cilium-drq7h -n kube-system --timestamps
2019-06-21T12:51:36.936351182+02:00 level=info msg="Skipped reading configuration file" reason="Config File \"ciliumd\" Not Found in \"[/root]\"" subsys=daemon
2019-06-21T12:51:36.936647526+02:00 level=info msg=" --access-log=''" subsys=daemon
2019-06-21T12:51:36.936659064+02:00 level=info msg=" --agent-labels=''" subsys=daemon
2019-06-21T12:51:36.936669478+02:00 level=info msg=" --allow-localhost='auto'" subsys=daemon
2019-06-21T12:51:36.936675704+02:00 level=info msg=" --auto-direct-node-routes='false'" subsys=daemon
2019-06-21T12:51:36.936680014+02:00 level=info msg=" --bpf-compile-debug='false'" subsys=daemon
2019-06-21T12:51:36.936683855+02:00 level=info msg=" --bpf-ct-global-any-max='262144'" subsys=daemon
2019-06-21T12:51:36.936691346+02:00 level=info msg=" --bpf-ct-global-tcp-max='524288'" subsys=daemon
2019-06-21T12:51:36.936700823+02:00 level=info msg=" --bpf-policy-map-max='16384'" subsys=daemon
kubectl logs pod/cilium-operator-95ddbb5fc-hh8d7 -n kube-system --timestamps --previous
2019-06-21T12:32:45.954299666+02:00 level=debug msg="os.Hostname() returned" nodeName=cilium-operator-95ddbb5fc-hh8d7 subsys=node
2019-06-21T12:32:45.955297435+02:00 level=info msg="Cilium Operator " subsys=cilium-operator
2019-06-21T12:32:45.955469779+02:00 level=info msg="Starting apiserver on address :9234" subsys=cilium-operator
2019-06-21T12:32:45.956443761+02:00 level=info msg="Connecting to etcd server..." config=/var/lib/etcd-config/etcd.config endpoints="[https://cilium-etcd-client.kube-system.svc:2379]" subsys=kvstore
2019-06-21T12:32:45.956624631+02:00 level=debug msg="Starting new controller" name=kvstore-etcd-session-renew subsys=controller uuid=e89d7aaa-940f-11e9-89bc-724e04e7d0fc
2019-06-21T12:32:45.958075009+02:00 level=info msg="Establishing connection to apiserver" host="https://10.43.0.1:443" subsys=k8s
2019-06-21T12:32:50.957829081+02:00 level=debug msg="Checking status to etcd endpoint https://cilium-e
adv_net_template:
default:
network_assignments:
ceph_front:
ep: br-ceph-front
fuelweb_admin:
ep: br-pxe
management:
ep: br-mgmt-ops
private:
adv_net_template:
default:
nic_mapping:
default:
if1: eth0
if2: eth1
if3: eth2
if4: eth3
if5: eth4
if6: eth5
#Wrong
def my_function:
#Right
def my_function:
pass
def una_function():
mydict = {}
mydict['una_key'] = 'a_value'
mydict['otro_key'] = 'b_value'
return mydict
def otra_function():
a_var = "hallo welt"
b_var = "hello world"
return (a_var, v_var)
build_deps:
pkg.installed:
- pkgs:
- git
- createrepo
- rpm-build
- gcc
- gcc-c++
- python-virtualenv
- python-devel
Test-Server (Woingenau Backend)
http://thawing-stream-9266.herokuapp.com/
${id} = 1 (zum Testen)
| GET | /courses | Action: index |
Liefert - Liste (format unten):
| GET | /courses/${id} | Action: show |
Liefert ein Element (
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:363)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:303)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)