Skip to content

Instantly share code, notes, and snippets.

View consentfactory's full-sized avatar

Jimmy Taylor consentfactory

View GitHub Profile
@consentfactory
consentfactory / ttp_asa_template.txt
Last active February 6, 2024 20:13
TTP ASA Template
## TTP ASA Template
## Published 2021.10.12
## Jimmy Taylor
##
## Template for Cisco ASA configurations that organizes objects, object-groups, and ACLs
## for JSON using TTP Project
##
## TTP Project: https://github.com/dmulyalin/ttp
##
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
@consentfactory
consentfactory / cisco_asa_tcp_udp_builtin_ports.json
Last active August 24, 2021 18:33
Cisco ASA Built-In TCP and UDP Service Objects
[
{
"source": "https://www.cisco.com/c/en/us/td/docs/security/asa/asa96/configuration/general/asa-96-general-config/ref-ports.html#ID-2120-000002b8",
"tcp": {
"aol": "5190",
"bgp": "179",
"chargen": "19",
"cifs": "3020",
"citrix-ica": "1494",
"cmd": "514",
@consentfactory
consentfactory / netdisco_queries.sql
Created July 19, 2021 18:44
Netdisco PSQL Queries
select *
from device_port as dp
join device as d
on dp.ip = d.ip
where
d.model = '38xxstack' and
dp.descr ~ '(Giga|TenGiga)' and
dp.ip << '10.0.0.0/8'
order by dp.ip desc;
@consentfactory
consentfactory / 2020_ada_county_election_results.csv
Created November 4, 2020 19:36
Ada County Election Results 2020 (Captured 20201104.0934 MST)
We can't make this file beautiful and searchable because it's too large.
Select a Contest to View,Race Corrected,Selected Contest,Race - Parameter Driven,Precinct,Choice Name,Contest Title,Race Corrected (group),#Precinct,Calculation1,Choice ID,Choice Name Corrected,Choice Party,Choice Party Corrected,Contest ID,Contest Party,Highlight Selection,Legislative District,Line 1,Line 2,Line 3,Line 3 (Mobile),Number,Parameter Page Selector Label,Precinct ID,Precinct Reporting,Race Corrected (copy),Update,% Turnout,Absentee Voting Invalid Votes,Absentee Voting Overvotes,Absentee Voting Undervotes,Absentee Voting Votes,Adjustment 2,Area,Ballots Cast,Calculated Total Votes,Choice ID Mod 4,Choice Sort,Choice Sort Mod 5,Color,Count Number of Precincts,COUNT PRECINTS,Early Voting Invalid Votes,Early Voting Overvotes,Early Voting Undervotes,Early Voting Votes,Election Day Voting Invalid Votes,Election Day Voting Overvotes,Election Day Voting Undervotes,Election Day Voting Votes,F29,F39,FIXED Absentee Mail Voting Votes ,FIXED Con Ballots Cast,FIXED Constitutional Overvotes,FIXED Constitutional
@consentfactory
consentfactory / netmiko_threading_queuing.py
Last active October 18, 2024 02:29
Script to perform multithreading with Netmiko.
#!/usr/bin/python3
# Jimmy Taylor
# https://www.consentfactory.com/python-threading-queuing-netmiko/
# This method will spin up threads and process IP addresses in a queue
# Importing Netmiko modules
from netmiko import Netmiko
from netmiko.ssh_exception import NetMikoAuthenticationException, NetMikoTimeoutException