What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

1

"초개인화의 시대, 역설적으로 사람들은 다시 관계와 연결에서 답을 찾고 있다. 위선조차 떨지 않는 혐오가 만연해지고 국제 관계에서도 힘의 논리만이 강하게 작동되는 시절의 반작용일 것이다. 2026년을 예측하는 트렌드 리포트에서는 공통적으로 ‘인간다움’ ‘감정 회복’을 핵심 단어로 뽑았다."

양관식, 박정민, 후덕죽의 공통점 [정문정의 대화의 발...

0
0
1
0
1
0
0
1
0
1
1
0
0
0
1
2
0
3
0
0
0
0
0
0
0







:murakamisan_arigatou:​​:syuilo_mama_arigatou:​そらいろさん​:deep_arigatou_hukakukansya:

支援期間長すぎてファンカードが見えなくなってしまったw
みんなもできる範囲の金額で支援よろしくね!


RE: https://misskey.io/notes/afs4kscuqw6d0fbq

1
1
0
0
0
0
0
0
0
2
0
0
0

도쿄에서 볼만한 것이라고 하면 서점인데, 음... 그 돈이면 일본 아마존에서 고속 배송도 가능해서. ㅎㅎ; 전문서적이면 일본어 서적 외의 선택지도 있으니까.

1
1
1

It seems as though some vendor in Hong Kong may have managed to assign 20-30 orders of widgets (no idea what) to my Shop account. I see various order shipping details (UPS/FedEx tracking) but no evidence of being charged anything, and the shipments seem bound for US, Switzerland, elsewhere in mainland China, Germany. 🤷 quite annoying. No obvious way to contact them about it other than marking “not my order” against each one.

0
0

[22:39]초크 님이 환상약을 손에 넣었습니다.

님들!! 7.3 무료 환상약 배포 오늘까지입니다!!
그리다니아 구시가지 아프칼루 폭포 > 떠돌이 모그리!!

0
1
1

Hello ! Thanks to my new DFF grant, I'm now looking to hire a PhD student to join me at AAU in Aalborg 🇩🇰 to work on "usable decentralization", i.e. on making distributed and federated cloud services accessible to the everyday user. For more details, see link below, and please don't hesitate to DM me with questions!

vacancies.aau.dk/phd-positions

0
0
1
0
0

So, after I met problems with iwlwifi driver and my attempts to aggregate both em0 and wlan0 interfaces to the one lagg0 interface (mastodon.bsd.cafe/@evgandr/115) — looks like I found a much (MUCH!) simpler solution :drgn_happy:

I wanted to automatically switch between wired and wireless networks when I plug-in (or disconnect) my Ethernet cable. First, because I was a newbie in the FreeBSD world, I tried to search for some kind of NetworkManager. Thankfully, I didn't find any NetworkManager clone ported to the FreeBSD. I found some tries to port NetworkManager from Linux to FreeBSD but all of them are failed (not surprised, lol).

Then, I finally started to read documentation :drgn_think_science: . In the section about advanced networking I read about aggregation interfaces. And somehow I managed to aggregate both of em0 and wlan0 to the one lagg0 interface and it works well.

But, looks like (see mstdn.social/@erikarn/11598626) it is not the way how the lagg interfaces should work. It is not intended to use wireless interfaces in the aggregate interfaces — so my tricky setup stopped working in the FreeBSD 15.0.

BUT, since we have a beautiful devd daemon, which listens for various system events and able to execute actions when event is happened — I just wrote 23 lines of shell script to learn my laptop how to switch between interfaces when the Ethernet cable (dis)connects, lol. Solution is very simple:

First, we already have /etc/devd/dhclient.conf, which starts dhclient when some interface appeared in the system. I modified it, so it calls the sPeCiAL script, each time when em0, or wlan0, or ue0 interface appeared in the system, or when em0 is disappeared:

notify 0 {
match "system" "IFNET";
match "type" "LINK_UP";
media-type "ethernet";
action "/root/bin/unfuck_network.tcsh $subsystem ifup";
};

notify 0 {
match "system" "IFNET";
match "type" "LINK_DOWN";
media-type "ethernet";
action "/root/bin/unfuck_network.tcsh $subsystem ifdown";
};

notify 0 {
match "system" "IFNET";
match "type" "LINK_UP";
media-type "802.11";
action "/root/bin/unfuck_network.tcsh $subsystem";
};

notify 0 {
match "system" "ETHERNET";
match "type" "IFATTACH";
match "subsystem" "ue0";
action "/root/bin/unfuck_network.tcsh ue0";
};

Then, the main magic happens in the /root/bin/unfuck_network.tcsh:
— When Ethernet cable is connected — it destroys the wlan0 interface and starts dhclient for em0 to talk with DHCP server.
— When Ethernet cable is disconnected — it makes all to remove route using em0 from routing table (removes em0 interface completely, flush routing table, etc — somehow em0 still stays in the routing table if interface is not destroyed; btw system will create it anyway later, in some point) and recreates the wlan0 interface.
— When wlan0 device is created — it starts dhclient for it.

Script contents (for tcsh):
#!/bin/tcsh

switch ( $1 )
case "em0":
if ( $2 == "ifup" ) then
service netif quietstop wlan0
service dhclient quietstart em0
else if ( $2 == "ifdown" ) then
service dhclient quietstop em0
ifconfig em0 delete
route flush
service routing restart
service netif quietstart wlan0
endif
breaksw;
case "wlan0":
service dhclient quietstart wlan0
breaksw;
case "ue0":
service dhclient quietstart ue0
breaksw;
endsw

0
0

Stefano has lived through a harrowing experience. Read and learn on how it can feel to be hit by a vehicle in the back, learn you may be paralized, then learn how to pull Positive Energy from the Universe to get 100% better again

Millimeters have tremendous weight

my-notes.dragas.net/2026/02/02

0
1