Skip to content

Instantly share code, notes, and snippets.

View bandit145's full-sized avatar
💭
Angrily deleting config-drifted VMs

Philip Bove bandit145

💭
Angrily deleting config-drifted VMs
View GitHub Profile
Counterpoint courtesy of /u/crankysysadmin
I see people on here trying to learn Linux, but I feel like a lot of them take the wrong path and either try to learn Linux using a cert of some kind, or try to learn it on their own but focus on the wrong stuff.
You don't actually have to be an expert, or learn the entire platform from top to bottom. There are ways you can learn things that make you immediately useful in a mixed environment with a decent Linux footprint.
First, the stuff you shouldn't waste time on in my opinion (you can always return to this stuff later):
• Desktop linux. In reality you're going to be managing linux boxes via SSH from a Mac or Windows machine. If you have a spare PC and want to set it up there's nothing wrong with that, but it's only marginally useful career-wise to get an Ubuntu desktop going and get web browsers and stuff going. You're probably not going to be managing Linux desktops.
import pysnmp.hlapi as pysnmp
COMMUNITY = pysnmp.CommunityData('data')
ADDRESS = ''
DATA = 'cdpCacheDeviceId'
table_results = pysnmp.nextCmd(pysnmp.SnmpEngine(), COMMUNITY, pysnmp.UdpTransportTarget((ADDRESS, 161)), pysnmp.ContextData(),
pysnmp.ObjectType(pysnmp.ObjectIdentity('CISCO-CDP-MIB', DATA)), lexicographicMode=False)
count = 0
for row in table_results:
@bandit145
bandit145 / string_recurse.py
Last active August 22, 2021 00:44
recursion exercise
name = 'Dakota'
# data_struct = {
# 'data1': {
# 'data2': {}
# }
# }
@bandit145
bandit145 / Vagrantfile
Created May 3, 2023 16:55
Problem vagrantfile
Vagrant.configure('2') do |config|
if Vagrant.has_plugin?('vagrant-cachier')
config.cache.scope = 'machine'
end
config.vm.define "lb1" do |c|
##