Skip to content

Instantly share code, notes, and snippets.

View Cloud-Mak's full-sized avatar
🏡
Working from home

Makrand Cloud-Mak

🏡
Working from home
View GitHub Profile
@Cloud-Mak
Cloud-Mak / sensors-detect
Created October 23, 2024 18:59
sensors-detect-azom laptop
makrand@zmint:~$ sudo sensors-detect
# sensors-detect version 3.6.0
# System: Notebook X170KM-G [Not Applicable] (laptop)
# Kernel: 6.8.0-47-generic x86_64
# Processor: Intel(R) Core(TM) i9-10850K CPU @ 3.60GHz (6/165/5)
This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Screen Quick Reference

Wait a minute, why would anyone use 'screen', and what is it anyway?

Well, because it's both AWESOME and FUN!!

It lets you keep your own session running on all the servers you already use, and chances are, it's probably already installed and waiting for you! (since 1987!)

Basic

| Description | Command |

@Cloud-Mak
Cloud-Mak / journalctl -u incus
Last active September 9, 2024 14:46
incus not starting logs
Sep 09 14:06:03 chennai20 incusd[4357]: incusd: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
Sep 09 14:06:03 chennai20 systemd[1]: incus.service: Main process exited, code=exited, status=127/n/a
Sep 09 14:06:03 chennai20 incusd[4358]: incusd: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
Sep 09 14:06:03 chennai20 systemd[1]: incus.service: Control process exited, code=exited, status=127/n/a
systemctl status incus.service
× incus.service - Incus - Daemon
Loaded: loaded (/usr/lib/systemd/system/incus.service; indirect; preset: enabled)
Active: failed (Result: exit-code) since Mon 2024-09-09 14:06:03 UTC; 4min 52s ago
TriggeredBy: × incus.socket
@Cloud-Mak
Cloud-Mak / bhutan GDC VM apt upgrade run
Last active July 5, 2024 06:56
bhutan GDC VM apt upgrade run
root@m1:~# apt list --upgradable
Listing... Done
python3-update-manager/jammy-updates 1:22.04.20 all [upgradable from: 1:22.04.10]
tzdata/jammy-updates 2024a-0ubuntu0.22.04.1 all [upgradable from: 2024a-0ubuntu0.22.04]
ubuntu-advantage-tools/jammy-updates 32.3.1~22.04 amd64 [upgradable from: 27.12~22.04.1]
update-manager-core/jammy-updates 1:22.04.20 all [upgradable from: 1:22.04.10]
root@m1:~# apt upgrade
Reading package lists... Done
Building dependency tree... Done
root@stage-mast1:/# kubeadm certs check-expiration
[check-expiration] Reading configuration from the cluster...
[check-expiration] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
W0623 15:09:12.445876 129959 initconfiguration.go:120] Usage of CRI endpoints without URL scheme is deprecated and can cause kubelet errors in the future. Automatically prepending scheme "unix" to the "criSocket" with value "/run/containerd/containerd.sock". Please update your configuration!
CERTIFICATE EXPIRES RESIDUAL TIME CERTIFICATE AUTHORITY EXTERNALLY MANAGED
admin.conf Jul 18, 2023 09:52 UTC 24d ca no
apiserver Jul 18, 2023 09:52 UTC 24d ca no
apiserver-etcd-client Jul 18, 2023 09:52 UTC 24d etcd-ca no
apiserver-kubelet-client Jul 18, 2023 09:52 UTC 24d ca
dukaan@sentry:~/self-hosted-22.6.0$ sudo ./install.sh
▶ Parsing command line ...
▶ Initializing Docker Compose ...
▶ Setting up error handling ...
▶ Checking for latest commit ...
skipped
49.207.202.112 - - [05/Jul/2022:19:14:52 +0000] "GET /organizations/sentry/issues/?project=3 HTTP/1.1" 200 5697 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
54.255.44.247 - - [05/Jul/2022:19:14:52 +0000] "POST /api/3/envelope/ HTTP/1.1" 200 2 "-" "sentry.python/1.6.0" "-"
54.255.44.247 - - [05/Jul/2022:19:14:52 +0000] "POST /api/3/envelope/ HTTP/1.1" 200 2 "-" "sentry.python/1.6.0" "-"
49.207.202.112 - - [05/Jul/2022:19:14:52 +0000] "GET /api/0/organizations/sentry/issues/?expand=owners&expand=inbox&limit=25&project=3&query=is:unresolved&shortIdLookup=1&statsPeriod=14d&cursor=1657048096000:0:1 HTTP/1.1" 200 2 "http://sentry.dukan.tech:9000/organizations/sentry/issues/?project=3" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
49.207.202.112 - - [05/Jul/2022:19:14:52 +0000] "POST /api/1/envelope/?sentry_key=916f58cc659c4a41b1039a472288223d&sentry_version=7 HTTP/1.1" 200 2 "http://sentr