Skip to content

Instantly share code, notes, and snippets.

@thedroidgeek
thedroidgeek / nokia-router-cfg-tool.py
Last active May 5, 2024 07:44
Nokia/Alcatel-Lucent router backup configuration tool
#!/usr/bin/env python3
#
# Nokia/Alcatel-Lucent router backup configuration tool
#
# Features:
# - Unpack/repack .cfg files generated from the backup and restore functionnality
# in order to modify the full router configuration
# - Decrypt/encrypt the passwords/secret values present in the configuration
@jirihnidek
jirihnidek / getaddrinfo_example.c
Last active October 31, 2023 20:09
Example of getaddrinfo() program.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
int
lookup_host (const char *host)