Skip to content

Instantly share code, notes, and snippets.

View frazew's full-sized avatar

frazou frazew

  • Scaleway
  • Paris, France
View GitHub Profile
@frazew
frazew / mib2yaml
Last active January 12, 2019 15:45 — forked from sochkasov/mib2yaml
A mib to yaml converter for SNMP::MIB based of https://github.com/axic/rsnippets/blob/master/mib2yaml.rbRequires libsmi
# MIB2YAML converts MIB files to YAML files for the Ruby SNMP library with support for imports
#
# The code is heavily based on http://snmplib.rubyforge.org/, the only addition is the "find imports" block
#
# modify for ruby 2.3.3p222 (2016-11-21) [x86_64-linux-gnu]
#
# apt-get install smitools
require 'rubygems'
require 'fileutils'
@frazew
frazew / unsub.js
Last active January 8, 2019 17:42
YouTube bulk unsubscribe from unwanted channels after you've left your PC unlocked
####
# First export your YouTube data from https://account.google.com/, make sure you select JSON as the export format.
# Transform that JSON extracting the unwanted channel IDs and put them into the channellist array.
# Go to https://www.youtube.com/feed/channels, open your debugger and execute the following code
####
var channellist = [];
var i = 0;