Skip to content

Instantly share code, notes, and snippets.

View kalsmic's full-sized avatar
🎯
Focusing

Arthur Kalule kalsmic

🎯
Focusing
  • Uganda
View GitHub Profile
@kalsmic
kalsmic / nokia-router-cfg-tool.py
Created October 18, 2023 08:27 — forked from rajkosto/nokia-router-cfg-tool.py
Nokia/Alcatel-Lucent router backup configuration tool
#!/usr/bin/env python3
#
# Nokia/Alcatel-Lucent router backup configuration tool
# G2425 support added by rajkosto on 20/11/2022
# XS-2426G-B support added by rajkosto on 28/02/2023
#
# Features:
# - Unpack/repack .cfg files generated from the backup and restore functionnality
@kalsmic
kalsmic / nokia-router-cfg-tool.py
Created October 13, 2023 13:50 — forked from thedroidgeek/nokia-router-cfg-tool.py
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
@kalsmic
kalsmic / image-filter-fun.markdown
Last active May 12, 2021 13:00
Image Filter Fun
#meetup views
"""
Contains functionality for the meetup endpoints
"""
from django.contrib.auth.models import User
from django.db.models import ProtectedError, Q
from django.shortcuts import get_object_or_404
from drf_yasg.utils import swagger_auto_schema
from rest_framework import status
from rest_framework.permissions import IsAdminUser
@kalsmic
kalsmic / test_meetups.py
Last active March 20, 2019 13:52
Test the meetup feature
#test_meetups.py
"""
Tests for the meetup app
"""
import json
from django.urls import reverse
meetup_wrong = {"date": "2019-03-07", "start": "10:21:39", "end": "12:21:39"}
@kalsmic
kalsmic / conftest.py
Last active March 20, 2019 13:55
Set up fixtures to be used in other tests
#conftest.py
"""
Set up fixtures for the tests
"""
import pytest
from django.contrib.auth import get_user_model
from rest_framework.test import APIClient
from meetup.models import Meeting, Tag, MeetingTag
@kalsmic
kalsmic / README-Template.md
Created November 12, 2018 15:14 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites