Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@plucena24
plucena24 / gns3_config_generator.py
Last active November 26, 2018 13:27
Automatically generate and apply basic IP addressing config for a GNS3 dynamips topology.
'''
GNS3_auto_ip_script
author: plucena24@gmail.com
Automatically generate and apply basic IP addressing config for a GNS3 dynamips topology.
Example: a network consisting of R1---R2---R3.
Using the script, the links will be numbered as:
from concurrent.futures import ThreadPoolExecutor
pool = ThreadPoolExecutor(100)
url = "http://d2zmdbbm9feqrf.cloudfront.net/2016/usa/pdf/{}.pdf"
sessions = [
dict(name = "ACI 1.2 CLI Configuration",
session_id = "LABACI-1010"),
dict(name = "ACI - Application Deployment with External Connectivity",
wisp_labs = [
'Branch_Threat_Defense_Module-1-lab-guide-2.pdf',
'CLUS16_LABACI-1010_NXOSStyleCli_v1.0.pdf',
'CLUS16_LABACI-1010_NXOSStyleCli_v1.1.pdf',
'CLUS16_LABNMS1005.pdf',
'CLUS16_LABNMS2005.pdf',
'CLUS16_WISP_LABSEC1012_GUIDE.pdf',
'COLLAB-EDGE2.pdf',
'COLLAB-EDGE2_e6OBlFf.pdf',
'COLLAB-EDGE2_jmKXa9L.pdf',
@plucena24
plucena24 / Core_ml_image_recognition.py
Created March 19, 2020 12:38
IOS ML image recognition
#!python3
'''
This is a demo of how you can use the CoreML framework (via objc_util) to classify images in Pythonista. It downloads the trained 'MobileNet' CoreML model from the Internet, and uses it to classify images that are either taken with the camera, or picked from the photo library.
'''
import requests
import os
import io
import photos
import dialogs
@plucena24
plucena24 / 2fa
Created April 16, 2020 19:57 — forked from MineRobber9000/2fa
2-factor authentication terminal app in Python
#!/usr/bin/env python
import os, os.path, stat, sys, base64
# TOTP lib inlined
import time, hmac, base64, hashlib, struct
def pack_counter(t):
return struct.pack(">Q", t)
@plucena24
plucena24 / app.py
Created March 31, 2021 15:09 — forked from rpkyle/app.py
Dash for Python Stock Ticker Sample App
import dash
from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
from pandas_datareader import data as web
from datetime import datetime as dt
app = dash.Dash('Hello World',
external_stylesheets=['https://codepen.io/chriddyp/pen/bWLwgP.css'])
@plucena24
plucena24 / Service KMS
Created May 10, 2023 00:50 — forked from judero01col/Service KMS
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@plucena24
plucena24 / windows_and_office_kms_setup.adoc
Created May 29, 2023 14:27 — forked from jerodg/windows_and_office_kms_setup.adoc
Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

Action Center.{BB64F8A7-BEE7-4E1A-AB8D-7D8273F7FDB6}
Backup and Restore.{B98A2BEA-7D42-4558-8BD1-832F41BAC6FD}
Credential Manager.{1206F5F1-0569-412C-8FEC-3204630DFB70}
Devices and Printers.{A8A91A66-3A7D-4424-8D24-04E180695C7A}
Display.{C555438B-3C23-4769-A71F-B6D3D9B6053A}
HomeGroup.{67CA7650-96E6-4FDD-BB43-A8E774F73A57}
Notification Area Icons.{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}
Recovery.{9FE63AFD-59CF-4419-9775-ABCC3849F861}
RemoteApp and Desktop Connections.{241D7C96-F8BF-4F85-B01F-E2B043341A4B}
Speech Recognition.{58E3C745-D971-4081-9034-86E34B30836A}