Skip to content

Instantly share code, notes, and snippets.

@ollyg
ollyg / netdisco-dev-notes.md
Last active August 19, 2024 10:18
Notes for netdisco python and containers
  • brew install gnu-sed gnu-tar docker docker-compose docker-buildx colima
  • follow the instruction to edit docker config
  • follow the instruction to start colima daemon
  • follow the PATH updates guidance
  • colima start
  • curl -Ls -o docker-compose.yml https://tinyurl.com/nd2-dockercompose
  • docker-compose pull netdisco-do
  • docker run -it --entrypoint ash 5a0269c7d43a
  • docker rm -vf $(docker ps -aq)
  • docker rmi -f $(docker images -aq)
Device
GET /device?q={search}&{params} # Lists ALL devices OR filters by search and/or params, if present
# params: vendor, dns, name, location, ip, description
# these can hopefully be autogenerated/parsed
# Example Output:
#[
# {
# "device": "some-device.some.net",
# "location": "some-location",
# "system_name": "some-device",
@Su-Shee
Su-Shee / gist:5d1a417fa9de19c15477
Last active June 23, 2024 13:15
Falsehoods Programmers Believe About "Women In Tech"

Falsehoods Programmers Believe About "Women In Tech"

  • We have absolutely no idea what we're doing in tech. Please explain the utmost basic things to us.

  • We only do web design. Our whole reason of being in tech is to make things pretty. Consider us the doilies of the industry.

  • We're not laughing about your joke, so we clearly need you explain it to us. In great detail.

  • We're only in tech to find a husband, boyfriend or generally to get laid.

#!/usr/bin/env perl
use strict;
use warnings;
our $home;
BEGIN {
use FindBin;
FindBin::again();
@bldewolf
bldewolf / netdisco-trapd.pl
Last active December 24, 2015 03:19
snmptrapd plugin for Netdisco/Nagios integration
#!/usr/bin/perl
use warnings;
use strict;
use lib '/var/lib/netdisco';
use netdisco qw/:all/;
config("/var/lib/netdisco/netdisco.conf");