ufw
1 | sudo ufw deny from <ip_range> port <port> |
firewalld
1 | sudo firewall-cmd --add-rich-rule='rule family="ipv4" source address="<ip_range>" port protocol="tcp" port="<port>" drop' |
ufw
1 | sudo ufw deny from <ip_range> port <port> |
firewalld
1 | sudo firewall-cmd --add-rich-rule='rule family="ipv4" source address="<ip_range>" port protocol="tcp" port="<port>" drop' |
Replicate internally use Cog for packaging and serving large AI models in Docker containers. Currently it only supports macOS and Linux.
According to the doc it offers nearly the same functionally as Replicate such as API calls, fine-tuning.
You may connect your local LLM to VSCode using Continue, an open-source Copilot alternative.
goto supports bash and zsh (compdef needed)
go-shell supports powershell
up navigates to parent directory, supports fish, bash, zsh
to increase stability, you need to prevent computer from overheating (throttle). also, replace normal laptop ram with ecc ram (not server-grade reg-ecc)
but ecc is only supported on Xeon processors.
moreover, you could just use UPS+NUC instead of laptop, to prevent this bloody battery issue.
will these charging limits still work if we close the lid? if not, we could possibly damage the battery.
to prevent damage to computer battery due to overcharging
kernel 5.5 or newer:
1 | echo 60 | sudo tee /sys/class/power_supply/BAT0/charge_control_end_threshold |
with platform-specific drivers, look for: /sys/devices/platform/.*/.*(battery|charge|thresh|limit).*
For ThinkPads and selected other laptops tlp/tlpui (acts like powertop which turns off usb devices, so be careful when running long-term programs) provides a unified way
to configure charge thresholds and recalibrate the battery.
Sometimes tp-smapi from apt
will not install and you need to fetch the source and compile yourself. Activate the plugin by sudo modprobe tp_smapi
Run sudo systemctl start tlp
to initiate service. Run sudo tlp-stat -s
to check status.
save this under /lib/systemd/system/neo4j.service
1 | [Unit] |