Skip to content

Instantly share code, notes, and snippets.

View HammzaHM's full-sized avatar
🔬

Hamza Hmem HammzaHM

🔬
View GitHub Profile
@HammzaHM
HammzaHM / .wezterm.lua
Last active November 23, 2025 09:34
WezTerm Lua config file
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This will hold the configuration.
local config = wezterm.config_builder()
-- ============================================
-- WINDOW CONFIGURATION
-- ============================================
-- Full width and full height terminal
@HammzaHM
HammzaHM / external_ip_address.txt
Created May 23, 2021 08:59
How to find the external @ip of the current machine in nodeJS
const net = require('net');
const client = net.connect({port: 80, host:"google.com"}, () => {
console.log('MyIP='+client.localAddress);
console.log('MyPORT='+client.localPort);
});