Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am joconcepts on github.
  • I am kdljns (https://keybase.io/kdljns) on keybase.
  • I have a public key whose fingerprint is 8F77 44DA 3805 1FB4 925F DE2A 5AAC 2D46 A064 4A74

To claim this, I am signing this object:

# apt install ceph
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
Jun 29 07:24:07 nbg1-dc3-r29-s24 radosgw[114064]: 2018-06-29 07:24:07.605 7f00a8808700 -1 *** Caught signal (Aborted) **
Jun 29 07:24:07 nbg1-dc3-r29-s24 radosgw[114064]: in thread 7f00a8808700 thread_name:civetweb-worker
Jun 29 07:24:07 nbg1-dc3-r29-s24 radosgw[114064]: ceph version 13.2.0 (79a10589f1f80dfe21e8f9794365ed98143071c4) mimic (stable)
Jun 29 07:24:07 nbg1-dc3-r29-s24 radosgw[114064]: 1: (()+0x291380) [0x56172adde380]
Jun 29 07:24:07 nbg1-dc3-r29-s24 radosgw[114064]: 2: (()+0x11390) [0x7f026c742390]
Jun 29 07:24:07 nbg1-dc3-r29-s24 radosgw[114064]: 3: (gsignal()+0x38) [0x7f02620e2428]
Jun 29 07:24:07 nbg1-dc3-r29-s24 radosgw[114064]: 4: (abort()+0x16a) [0x7f02620e402a]
Jun 29 07:24:07 nbg1-dc3-r29-s24 radosgw[114064]: 5: (()+0x777ea) [0x7f02621247ea]
Jun 29 07:24:07 nbg1-dc3-r29-s24 radosgw[114064]: 6: (__fortify_fail()+0x5c) [0x7f02621c615c]
Jun 29 07:24:07 nbg1-dc3-r29-s24 radosgw[114064]: 7: (()+0x117160) [0x7f02621c4160]
[1122601.963087] Stack:
[1122601.963088] ffff885e9cb79c1c ffff88a712363e00 ffff88a70257bd08 ffffffff81432980
[1122601.963090] ffff885e8851fd50 0000000000000003 7b1a64afef72acd0 ffff885e8851fd9c
[1122601.963092] ffff885e8851fd98 ffff885e8851fd88 ffffffff81432b1d 000000000000019c
[1122601.963095] Call Trace:
[1122601.963100] [<ffffffff81432980>] ? __extract_hwseed+0x2d/0x2d
[1122601.963103] [<ffffffff81432b1d>] rdmsr_on_cpu+0x5d/0x90
[1122601.963107] [<ffffffffc03f3353>] show_crit_alarm+0x43/0x80 [coretemp]
[1122601.963112] [<ffffffff81566fe3>] dev_attr_show+0x23/0x60
[1122601.963116] [<ffffffff8184d4d2>] ? mutex_lock+0x12/0x30
@joconcepts
joconcepts / main.py
Created July 22, 2017 10:21
Motion detector with ES8266
import machine
import time
import socket
import gc
def http_get(url):
_, _, host, path = url.split('/', 3)
addr = socket.getaddrinfo(host, 80)[0][-1]
s = socket.socket()
s.connect(addr)
# systemd-nspawn -b -D icinga --network-bridge=br0
Spawning container icinga on /var/lib/container/icinga.
Press ^] three times within 1s to kill container.
Failed to register machine: Unit machine-icinga.scope already exists.
#/etc/network/interface
auto br0
iface br0 inet static
address 192.168.0.254
netmask 255.255.255.0
bridge_ports none
#brctl show
bridge name bridge id STP enabled interfaces
br0 8000.36f22f064d21 no vb-archlinux
@joconcepts
joconcepts / gist:d3bdba2626c1741981b1
Created January 19, 2016 20:22
systemd-nspawn systemd-networkd bridged network
# start nspawn container
systemd-nspawn -b -D archlinux --network-veth --network-bridge=br0
## all in the container
# config file
[root@archlinux ~]# cat /etc/systemd/network/static.network
[Match]
Name=host0
@joconcepts
joconcepts / gist:d74edc733ddb36dd0cb8
Created January 11, 2016 20:31
bluetooth rfkill after resume
# before suspend
[jonas@archlaptop ~]$ rfkill list
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
# after suspend
@joconcepts
joconcepts / gist:07fb6318bcdf78b5bb0a
Created January 11, 2016 20:09
Bluetooth problem Logitech M557
# bluetooth controller
Intel Corporation Wireless 7260 with bluetooth
# manual connect
[bluetooth]# connect 34:88:5D:3F:DD:F2
Attempting to connect to 34:88:5D:3F:DD:F2
Failed to connect: org.bluez.Error.Failed
# when moving mouse
[CHG] Device 34:88:5D:3F:DD:F2 Connected: yes