iBug Thought �
1.16K subscribers
1.99K photos
29 videos
31 files
1.6K links
iBug's random thoughts

Website: https://ibug.io

Private channel:
https://t.me/+ju8PlLfwy0o4NWJl
(Admission will be entirely based on iBug's personal preference)
Download Telegram
My first Grafana dashboard is up! Guess the URL by yourself :)
Nginx access_log on doesn't do what you'd think (as you'd think, the same for error_log on )
Forwarded from taoky 的日常记事本
ubuntu@web:/usr/share/nginx$ ls -l
total 15266
drwxr-xr-x 2 root root 3 Sep 10 22:55 html
lrwxrwxrwx 1 root root 23 Nov 7 2018 modules -> ../../lib/nginx/modules
drwxr-xr-x 2 root root 7 Sep 10 22:55 modules-available
-rw-r--r-- 1 www-data root 471448 Oct 24 21:55 off
-rw-r--r-- 1 www-data root 15060172 Oct 24 22:30 on
InfluxDB sucks a lot of RAM with just a few telegraf clients. Had to move up to a 2 GB instance just for that sucker DB.
Forwarded from taoky 的日常记事本
systemd 好糟糕啊……这是我刚刚经历的一个故事:
- 我需要在某服务器上配置网站后端的守护进程。我打算用 systemd 的 user unit 来做。这台服务器的设置是密钥登录为 root,然后 tmux 之后 `su - userxxx`。userxxx 没有 sudo 的权限。
- 我加了这个 unit,然后 systemctl --user 失败,提示 Failed to connect to bus: Permission denied
- 我搜了一下,在 .bashrc 里面加了 export XDG_RUNTIME_DIR="/run/user/$UID"`,结果错误变成了 `Failed to connect to bus: No such file or directory
- 我又搜了一下,发现 su - userxxx 不会创建新的 user session,`loginctl` 没有显示,从而没有新建 /run/user/$UID 的 tmpfs 的挂载。
- 花了半个小时搜解决方案。
- 内心受到了打击,决定换成 supervisord 来干这件事情。
Correct solution
getent passwd doesn't sort entries by UID, could be a trick to the less careful
What cretins decided that "blog" isn't allowed on personal websites...
https://zh.wikipedia.org/wiki/%E5%90%88%E7%B4%84%E6%A9%8B%E7%89%8C
因此在 3 这个叫品之后,不能叫 2 或 3 ,但可以叫 3NT(没有特朗普) 或 4 。
(NT = No Trump)
Too bad Cloudflare doesn't offer their global PoP with Pro plan ($20/mo), but only Business ($200/mo) and Enterprise. But the satisfaction is, CF's free plan offers almost everything you need for a secure and fast website.
Every 18 months the smoothness of experience of using iPhones reduces by half.
Forwarded from zzh 的日常记事本
有没有“反向摩尔定律”:每过 18 个月,CPU 漏洞补丁就会让 CPU 的性能降低一半
A Linux user never does the same thing more than thrice - after doing it the 3rd time they must have automated it 😂
Forwarded from Programmer Jokes
Forwarded from zzh 的日常记事本
$ python3.8 -q
>>> pow(233, -1, 2333)
1552
>>> 233 * 1552 % 2333
1
How ridiculous that systemd-networkd ignores one whole file when there's one single misconfigured line or section...
Got rid of ufw and started using iptables directly :)
when you have to split one network block into interleaving subnets