Skip to content

Instantly share code, notes, and snippets.

View astrixgame's full-sized avatar
🎯
Focusing

AstrixGame astrixgame

🎯
Focusing
View GitHub Profile
#| Welcome to RouterOS!
#| 1) Set a strong router password in the System > Users menu
#| 2) Upgrade the software in the System > Packages menu
#| 3) Enable firewall on untrusted networks
#| -----------------------------------------------------------------------------
#| RouterMode:
#| * WAN port is protected by firewall and enabled
@astrixgame
astrixgame / nodejs-udp-example.js
Created March 12, 2025 20:31
UDP Server & Client in Node.js using dgram library
// ------------------------------
// UDP Server
// ------------------------------
const udp = require('dgram');
const udpServer = udp.createSocket('udp4');
udpServer.on('error', (error) => {
console.log('Error: ' + error);
@astrixgame
astrixgame / nodejs-tcp-example.js
Last active March 12, 2025 20:30
TCP Server & Client in Node.js using net library
// ------------------------------
// TCP Server
// ------------------------------
const net = require('net');
const tcpServer = net.createServer((socket) => {
socket.write('pong');
socket.pipe(socket);
});