Skip to content

Instantly share code, notes, and snippets.

@Jed-Giblin
Jed-Giblin / net_snmp_no_auth_no_priv.c
Created June 15, 2018 13:08
Perform a noAuthNoPriv SNMP-GET request
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/library/snmpv3.h>
#include <net-snmp/library/snmpusm.h>
#include <net-snmp/library/snmp_api.h>
#include <net-snmp/net-snmp-includes.h>
@Jed-Giblin
Jed-Giblin / go
Created July 30, 2018 22:59
Golang FizzBuzz
package main
import "fmt"
func main() {
for i := 1; i <= 100; i++ {
if ( i%15 == 0 ) {
fmt.Println("Fizzbuzz")
} else if i%5 == 0 {
fmt.Println("Buzz")
@Jed-Giblin
Jed-Giblin / userscript.js
Last active October 19, 2022 04:23
Tampermonkey Wowhead calculator link
// ==UserScript==
// @name Add Talent Calculator Button to WCL
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Adds a button to WCL Talents Breakdown to autobuild the import/export string for talent mangement. It will copy this value to your clipboard.
// @author Jed Giblin
// @match https://www.warcraftlogs.com/reports/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=warcraftlogs.com
// @resource raidbotsData https://www.raidbots.com/static/data/beta/new-talent-trees.json
// @grant GM_getResourceText
@Jed-Giblin
Jed-Giblin / commander_color_breakdown.js
Last active March 3, 2023 15:21
Tampermonkey script to colate and document commander deck colors for your profile in moxfield
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.moxfield.com/decks/personal
// @icon https://www.google.com/s2/favicons?sz=64&domain=moxfield.com
// @grant GM.xmlHttpRequest
// ==/UserScript==
() => {
function greet(name) {
return Hello, {$name};
}
}()