Skip to content

Instantly share code, notes, and snippets.

View hoerup's full-sized avatar

Torben Hørup hoerup

  • Horsens, Denmark
View GitHub Profile
@hoerup
hoerup / ingress.yml
Last active January 18, 2022 21:57
kyverno-ingress-sample
# section 1 : Ingress rules already present on cluster
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: present-ingress-1
spec:
rules:
- host: foo.bar.com
http:
paths:
[16:08 xen02 ~]# lsmod
Module Size Used by
nfsv3 49152 1
nfs_acl 16384 1 nfsv3
nfs 307200 2 nfsv3
lockd 110592 2 nfsv3,nfs
grace 16384 1 lockd
fscache 380928 1 nfs
bnx2fc 159744 0
cnic 81920 1 bnx2fc
@hoerup
hoerup / error
Created July 2, 2019 11:36
ansible grafana error
fatal: [dspv-cephmgmt01]: FAILED! =>
msg: |-
The task includes an option with an undefined variable. The error was: No first item, sequence was empty.
The error appears to be in '/home/cephadm/ceph-ansible/roles/ceph-facts/tasks/facts.yml': line 306, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
@hoerup
hoerup / ceph.conf
Last active June 19, 2019 13:01
rsyslog-ceph
Module( load="imuxsock")
Module( load="omfile")
Ruleset (name="radosgw") {
Action(type="omfile" file="/var/log/ceph/radosgw-ops.log")
}
Input( type="imuxsock"
Socket="/var/log/ceph/rgw.sock"
Unlink="off"
@hoerup
hoerup / gist:f79d83d7da8be2d711f1179619ca13b9
Created November 2, 2018 08:42
piding-mattermost debug1
(09:37:49) account: Connecting to account <user removed>|<hostname removed>.
(09:37:49) connection: Connecting. gc = 0x55970adc25f0
(09:37:49) dnsquery: Performing DNS lookup for <hostname removed>
(09:37:49) mattermost: Fetching url https://<hostname removed>/api/v4/users/login
(09:37:49) mattermost: With postdata {"login_id":"<user removed>","password":"<removed>","token":""}
(09:37:49) http: Performing new request 0x55970ada6d00 to <hostname removed>.
(09:37:49) signals: Signal data for chat-conversation-typing not found!
(09:37:49) dns: Wait for DNS child 366 failed: No child processes
(09:37:49) dns: Wait for DNS child 365 failed: No child processes
(09:37:49) dns: Created new DNS child 537, there are now 1 children.
@hoerup
hoerup / gist:e2ed46bae757ac7bbc507e26612f4d57
Last active October 16, 2018 21:29
Pircbotx -> influx udp performance log
diff --git a/src/main/java/org/pircbotx/InfluxLogger.java b/src/main/java/org/pircbotx/InfluxLogger.java
new file mode 100644
index 0000000..9a8da03
--- /dev/null
+++ b/src/main/java/org/pircbotx/InfluxLogger.java
@@ -0,0 +1,45 @@
+package org.pircbotx;
+
+import java.net.DatagramPacket;
+import java.net.DatagramSocket;
@hoerup
hoerup / xo-installer.sh
Created March 29, 2016 07:09
Install Script for Xen Orchestra
#!/bin/bash
# Note: this script works on debian 7/wheezy and debian 8/jessie
#
# If running on a raspberry 1(A/B) raspian/wheezy - downgrade node.js to 5.4.0
# Please note that raspian/wheezy for arm defaults to gcc 4.6
# gcc 4.7 is needed for compiling node-js modules
BRANCH=master
@hoerup
hoerup / gist:543830af6c31f54f8e2f
Created January 11, 2016 11:05
osrm-routed post
# curl -v --data "src=55.2622189848261,9.71226630748429&dst=55.2585,9.70742" http://127.0.0.1:5000/table
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 5000 (#0)
> POST /table HTTP/1.1
> User-Agent: curl/7.38.0
> Host: 127.0.0.1:5000
> Accept: */*
> Content-Length: 57
> Content-Type: application/x-www-form-urlencoded