Skip to content

Instantly share code, notes, and snippets.

View XioNoX's full-sized avatar

Arzhel Younsi XioNoX

View GitHub Profile
@peelman
peelman / README.md
Created December 19, 2023 20:53
SRLinux Module for Rancid

SRLinux Rancid Module

Summary

Allows using RANCID to extract platform and configuration from the Nokia IXR 7250, IXR 7220, and SXR 7350 series devices.

Currently the attached module and configuration will fetch the following:

  • show version - Retrieve basic metrics about the system
  • show platform fan-tray - Retrieve fan tray info
@tyler-8
tyler-8 / netbox_validator_unique_vm_names.py
Last active July 4, 2022 14:59
Enforce case-insensitive unique VM names.
from extras.validators import CustomValidator
from virtualization.models import VirtualMachine
class UniqueVirtualMachineNamesCasefold(CustomValidator):
"""Enforce case-insensitive unique VM names.
Your configuration.py file would contain something like this:
CUSTOM_VALIDATORS = {

Moved to repo: /quenhus/uBlock-Origin-dev-filter

In order to keep filters up to date, please use this repo.

@prologic
prologic / LearnGoIn5mins.md
Last active August 12, 2025 02:24
Learn Go in ~5mins
class fastnetmon (
Hash $policy_defaults = {}
Hash $policy_overrides = {}
Array[Stdlib::IP::Address,1] $networks = [],
Array[Stdlib::IP::Address,1] $all_networks = [],
Optional[Stdlib::Host] $graphite_host = undef,
) {
$policy_overrides.each |String $network| {
$network = slice_network_constants($network['network'], {'desription' => '$network['desrciption']})
file {"etc/fastnetmodn.d/$network_$network['description'].conf": { ... }
@netaviator
netaviator / netbox-graph.php
Last active September 3, 2023 15:50
Display interface graphs in Netbox fetched from LibreNMS.
<?php
/*
* Display LibreNMS interface graphs in Netbox
*
* 1. Upload this file into the plugin folder of LibreNMS.
* 2. Generate an API key in LibreNMS and insert the connection details below.
* 3. Create graphs in Netbox using the following URL scheme.
* https://nms.level66.network/plugins/netbox-graph.php?device={{ obj.device.name }}&interface={{ obj.name }}&duration=8h
* 4. Save time in your daily work!
*
@joakin
joakin / remote-advice.md
Last active February 26, 2018 17:56
What have you learned by working remote?
@joar
joar / sierra-em7455.md
Last active September 4, 2025 02:06
Sierra EM7455

The final part of the EM7455 Linux driver support is going in Linux v4.7 which will be released in a couple of weeks. It will also be backported to the currently maintained stable kernels, so you should eventually get it through Ubuntu kernel updates.

Sorry it took this long. In theory, any MBIM modem should just work with the existing Linux drivers. But it turned out that the EM7455 needed a small delay during initialization, or it would silently fail to work. The "fix" is a single line of code:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/net/usb/cdc_ncm.c?id=c086e7096170390594c425114d98172bc9aceb8a

>

@ytti
ytti / jnh_exception_packet_trace.rb
Last active August 22, 2022 11:56
script to turn JunOS Trio exception capture into a PCAP
#!/usr/bin/env ruby
# script to generate PCAP from Trio exception trace. Potentially you may need to change POP_BYTES variable.
# Trio exception trace allows you to capture things like broken packets (checksum error), to see who is sending them
# clogin junos-trio-box | tee exception_trace
# start shell pfe network fpc0
# show jnh 0 exceptions terse
# debug jnh exceptions N discard ## get N from above command
# debug jnh exceptions-trace
@almereyda
almereyda / falsehoods.md
Created April 14, 2016 15:11 — forked from wboykinm/falsehoods.md
Falsehoods programmers believe about addresses

Falsehoods programmers believe about addresses

This is an anchor-linked version of the excellent, amazing original opus magnum by Michael Tandy.

An address will start with, or at least include, a building number.

Counterexample: Royal Opera House, Covent Garden, London, WC2E 9DD, United Kingdom.

When there is a building number, it will be all-numeric.

Counterexample: 1A Egmont Road, Middlesbrough, TS4 2HT