Wednesday, August 3, 2022

RASPBERRY PI: Compiling kernel for long BLE advertising timings

just follow this for the compiling process :

https://www.raspberrypi.com/documentation/computers/linux_kernel.html

before compiling the kernel open include/net/bluetooth/hci.h with any text editor and find this line

then replace it with

Saturday, July 30, 2022

NGINX: reverse proxy for python websockets

the websockets can be accessed using ws://{ip-address}:11000.

or maybe using subdirectory on SSL enabled domain

the url now is wss://{domain-name}/ws

Friday, July 29, 2022

Sunday, July 17, 2022

INDONESIA'S VERY OWN CHAT APP (AN IDEA)

There is news in Indonesia about the plan to block WhatsApp and some other services for six days. The plan is to force the company behind them to register their services to KOMINFO during the ban or risk their services being banned permanently.


With the digitalization of the Indonesian citizen registry for the last decade, they should've been able to make their own chat app using NIK as an id number. The users can register the account using their registered SIM card or simply use NFC to scan the id card to automatically log in to the app.

 

This way the government can proactively protect their citizen from scams that getting more rampant over the last few years, especially during the pandemic. The government can verify the people behind an id and protect businesses and consumers so they can do their business online with peace of mind. And they can also create more jobs and business opportunities as a government-based public company.

Friday, July 15, 2022

MIKROTIK : reset usb modem

create the script to cut power to USB port for 5s

/system script add name=reset_usb owner=admin dont-require-permissions=yes policy=read,write source="/system routerboard usb power-reset bus=0 duration=5s"

create a netwatch to ping 8.8.8.8 or any public ip, that will run in 5min interval, with 5s timeout and add the down-script for when the test failed

/tool netwatch add host=8.8.8.8 interval=300s timeout=5s down-script=reset_usb