Skip to content

Instantly share code, notes, and snippets.

import = [ "~/.config/alacritty/themes/themes/campbell.toml" ]
[font]
# normal = { family = "Monaco", style = "Regular" }
# normal = { family = "Monooki", style = "Regular" }
# normal = { family = "JetBrains Mono", style = "Regular" }
# normal = { family = "CommitMono Nerd Font Propo", style = "Regular" }
# normal = { family = "CommitMono Nerd Font Mono", style = "Regular" }
normal = { family = "CommitMono Nerd Font", style = "Regular" }
[alias]
ci = commit
co = checkout
st = status
d = diff
lp = log -p
l = log --abbrev-commit
pr = pull --rebase
po = push origin
pp = push production
@oki
oki / fix
Last active November 9, 2023 09:22
tb-devops|master⚡ ⇒ brew remove ansible
Uninstalling /opt/homebrew/Cellar/ansible/8.6.0_1... (30,291 files, 445.5MB)
tb-devops|master⚡ ⇒ brew install ansible.rb
Error: Failed to load cask: ansible.rb
Cask 'ansible' is unreadable: wrong constant name #<Class:0x0000000132b16e70>
Warning: Treating ansible.rb as a formula.
==> Downloading https://ghcr.io/v2/homebrew/core/ansible/manifests/8.5.0_1
Already downloaded: /Users/oki/Library/Caches/Homebrew/downloads/7883d6116327f8dbacc0433a06e78abbc1e858c60e6612bd0f81619a198f26fb--ansible-8.5.0_1.bottle_manifest.json
==> Fetching ansible
⇒ dig communication.etoll.gov.pl +trace
; <<>> DiG 9.10.6 <<>> communication.etoll.gov.pl +trace
;; global options: +cmd
. 40354 IN NS a.root-servers.net.
. 40354 IN NS f.root-servers.net.
. 40354 IN NS h.root-servers.net.
. 40354 IN NS b.root-servers.net.
. 40354 IN NS k.root-servers.net.
. 40354 IN NS j.root-servers.net.
# dig communication.etoll.gov.pl +trace
; <<>> DiG 9.18.19-1~deb12u1-Debian <<>> communication.etoll.gov.pl +trace
;; global options: +cmd
. 30641 IN NS k.root-servers.net.
. 30641 IN NS c.root-servers.net.
. 30641 IN NS h.root-servers.net.
. 30641 IN NS m.root-servers.net.
. 30641 IN NS l.root-servers.net.
. 30641 IN NS g.root-servers.net.
@oki
oki / mqtt.yml
Created December 7, 2022 16:53
Momentary switch configuration for light and iTL-16-20-230 16A 2NO 230VAC/110VDC Acti9 A9C30812 Schneider relay
mqtt:
discovery: true
broker: localhost
username: xxx
password: xxx
port: xxx
birth_message:
topic: 'hass/status'
payload: 'online'
will_message:
---
# secrets: secrets.yaml
appdaemon:
latitude: 1.1
longitude: 1.2
elevation: 3
time_zone: Europe/Amsterdam
plugins:
HASS:
type: hass
root@ceph-admin ~ # ceph -s
cluster:
id: 9545503e-bf20-11ec-bd53-51523cfe5c45
health: HEALTH_WARN
OSD count 2 < osd_pool_default_size 3
services:
mon: 3 daemons, quorum ceph-osd3,ceph-osd2,ceph-mon (age 2h)
mgr: ceph-admin.qyqfni(active, since 5d), standbys: ceph-osd3.yhbita
osd: 2 osds: 2 up (since 5d), 2 in (since 5d)
# ceph orch device ls
HOST PATH TYPE DEVICE ID SIZE AVAILABLE REJECT REASONS
ceph-admin /dev/xvda1 ssd 536M Insufficient space (<5GB), locked
ceph-mon /dev/xvda1 ssd 536M Insufficient space (<5GB), locked
ceph-osd1 /dev/sda hdd QEMU_HARDDISK_drive-scsi0-0-2 214G Insufficient space (<10 extents) on vgs, LVM detected, locked
ceph-osd1 /dev/sdc hdd QEMU_HARDDISK_QM00002 2147M Insufficient space (<5GB)
ceph-osd2 /dev/xvda1 ssd 536M Insufficient space (<5GB), locked
ceph-osd2 /dev/xvda3 ssd 214G In
oki@debian:~/vaultwarden$ find .
.
./ssl
./ssl/xxx.xxx.xxx.pem
./docker-compose.yml
./haproxy
./haproxy/haproxy.cfg
./vw-data
./vw-data/rsa_key.pub.pem
./vw-data/rsa_key.pem