Skip to content

Instantly share code, notes, and snippets.

View tusharpm's full-sized avatar

Tushar Maheshwari tusharpm

  • India
View GitHub Profile
@tusharpm
tusharpm / zyxel_backup_restore.py
Last active May 17, 2026 18:44 — forked from ankurpandeyvns/zyxel_backup_restore.py
AOT-5221ZY Backup/Restore Decryption+Encryption
#!/usr/bin/env python3
"""
================================================================================
Zyxel Router Configuration Backup/Restore Tool
================================================================================
DESCRIPTION:
This tool provides comprehensive functionality for working with Zyxel router
configuration backups. It can download, decrypt, encrypt, and restore
@tusharpm
tusharpm / cythonize.py
Last active October 7, 2017 13:48
Cython raw string literal broken example
from Cython.Compiler import Options
Options.annotate = True
Options.fast_fail = True
from Cython.Build import cythonize
cythonize(["main.pyx"], language='c++')
@tusharpm
tusharpm / ReadVariables.cmake
Created May 28, 2017 09:58
Reading external Makefile variables (only) into CMake
# Simple CMake utility to read variables from MK files
# - Gets contents from given file (name or path)
# - Parses the assignment statements
# - Makes the same assignments in the PARENT_SCOPE
if(POLICY CMP0007)
cmake_policy(SET CMP0007 NEW)
endif()
function(ReadVariables MKFile)