Skip to content

Instantly share code, notes, and snippets.

# Telegraf Configuration
#
# Telegraf is entirely plugin driven. All metrics are gathered from the
# declared inputs, and sent to the declared outputs.
#
# Plugins must be declared in here to be active.
# To deactivate a plugin, comment out the name and any variables.
#
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config
# file would generate.
@Fusion86
Fusion86 / blue.txt
Last active January 15, 2024 18:41
VisualStudio.SDK color brushes (exported from VisualStudio 2019 Preview)
VsBrush.AccentBorder = #FFE5C365
VsBrush.AccentDark = #FFC0A776
VsBrush.AccentLight = #FFFFF0D0
VsBrush.AccentMedium = #FFFFECB5
VsBrush.AccentPale = #FFDEE1E7
VsBrush.ActiveBorder = #FFB4B4B4
VsBrush.ActiveCaption = #FF99B4D1
VsBrush.AppWorkspace = #FFABABAB
VsBrush.AutoHideResizeGrip = #FFE8E8EC
VsBrush.AutoHideTabBackgroundBegin = #FF5D6B99
civilizations = [
"Aztecs",
"Berbers",
"Britons",
"Bulgarians",
"Burmese",
"Byzantines",
"Celts",
"Chinese",
"Cumans",
#############################################################################
#
# Project Makefile
#
# (c) Wouter van Ooijen (www.voti.nl) 2016
#
# This file is in the public domain.
#
#############################################################################
#!/usr/bin/env python3
import os
import json
import time
import subprocess
if __name__ == "__main__":
try:
with open(os.devnull, "w") as devnull:
#include "book.h"
#include <iostream>
void book::print()
{
print_title();
print_author();
print_text();
}
@Fusion86
Fusion86 / opdr3.md
Last active February 27, 2019 20:46

Installatie

Laad de ISO in een virtuele machine en klik op enter om te starten.

User setup

Met passwd passen we het root wachtwoord aan. Via useradd -m -G users woutervisser voegen wij een nieuwe gerbuiker toe. Met passwd woutervisser passen we het wachtwoord aan voor deze nieuwe gebruiker.

#!/usr/bin/env python3
"""
Rename SRT files in a given directory to match that of a video file.
Matches SRT files with video files based on S{00}E{00} in filename
Example:
Video: Game of Thrones - S03E02 - Dark Wings, Dark Words Bluray-1080p.mkv
Old srt name: game.of.thrones.s03e02.1080p.bluray.x264-rovers.srt
New srt name: Game of Thrones - S03E02 - Dark Wings, Dark Words Bluray-1080p.srt
@Fusion86
Fusion86 / insertion_sort.py
Created January 13, 2019 11:07
ASK Huiswerkopdracht 4
def insertion_sort(lst):
"""
Implementatie met twee while loops, omdat recursief alleen maar moeite is.
Pseudocode is 1:1 overgenomen zonder erbij na te denken (niet nagedacht over var names, `for i in range()` ipv `while`, etc)
"""
i = 1
while i < len(lst):
x = lst[i]
j = i - 1
while j >= 0 and lst[j] > x:
@Fusion86
Fusion86 / restart-arcadyan.py
Created December 29, 2018 18:08
Restart shitty routers
import re
import requests
import sys
config = {
"admin_page": "http://192.168.0.254",
"admin_username": "Admin",
"admin_password": "password",
}