Skip to content

Instantly share code, notes, and snippets.

Silviu Vulcan silviuvulcan

Block or report user

Report or block silviuvulcan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View rmate
#!/usr/bin/env bash
# rmate
# Copyright (C) 2011-2018 by Harald Lapp <>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
silviuvulcan /
Created Jul 9, 2019
Push a list of unwatched myepisodes to IFTTT
# unaquired feed
if [ "$1" = "unwatched" ]; then
# unwatched feed
UNW=$(curl -s $UNWARSS | grep '<title>\[' | sed -e 's/<[^>]\+>//g' -e 's/^[ \t]*//' -e 's/\]\[/-/g' -e 's/\[\ //g' -e 's/\ \]//g' -e 's/$/<br>/')
UNWNO=$(echo "$UNW"| sed '/^\s*$/d'|wc -l)
if [ $((UNWNO)) -gt 0 ]; then
silviuvulcan / dark-slack.ps1
Last active Jun 4, 2019
Sets a dark mode for slack. Run once after each update without slack running.
View dark-slack.ps1
$darkString = @'
document.addEventListener('DOMContentLoaded', function() {
url: '',
success: function(css) {
let overrides = `
code { background-color: #535353; color: #85c5ff; } /* Change color: to whatever font color you want */
.c-mrkdwn__pre, .c-mrkdwn__quote { background: #535353 !important; background-color: #535353 !important; }
.p-threads_footer__input .p-message_input_field { background: #000 }
View gist:3c1016477b7e0692a3396a1022404725

How to compile and install latest realtek network driver in pfSense 2.4.x (FreeBSD 11.1)

  1. Download FreeBSD 11.1 VMDK and create a VM with it as HDD.

  2. Get FreeBSD source tree for your exact FreeBSD version and uncompress it to /usr/src:

    fetch -o /tmp`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
    tar -C / -xvf /tmp/src.txz
  3. Download latest Realtek network driver.

silviuvulcan /
Created Sep 18, 2018
Bash script to send pushover notifications with optional images attachments
function usage {
echo "Usage: --title "Title" --message "Cool message" [ --file catmeme.jpg ]"
echo "Options:"
echo "-h, --help"
silviuvulcan /
Created Jul 23, 2018 — forked from squidpickles/
Multi-platform (amd64 and arm) Kubernetes cluster

Multiplatform (amd64 and arm) Kubernetes cluster setup

The official guide for setting up Kubernetes using kubeadm works well for clusters of one architecture. But, the main problem that crops up is the kube-proxy image defaults to the architecture of the master node (where kubeadm was run in the first place).

This causes issues when arm nodes join the cluster, as they will try to execute the amd64 version of kube-proxy, and will fail.

It turns out that the pod running kube-proxy is configured using a DaemonSet. With a small edit to the configuration, it's possible to create multiple DaemonSets—one for each architecture.


Follow the instructions at for setting up the master node. I've been using Weave Net as the network plugin; it see


Simple wrapper to launch CygWin Git from windows applications. I use it with Sublime Text Git plugin (so I don't have to maintain .gitconfig, ssh keys, etc both for cygwin and git-bash)

The PATH export is there to permit launching without -l which is slow especially if, like me, you have lots of customizations in your .bashrc.

silviuvulcan / gist:06c7db5622d0ddd630054f00988abe12
Created Sep 15, 2017
ThinkPad 750p memory includes and excludes.txt
View gist:06c7db5622d0ddd630054f00988abe12
DOS Memory Management - Memory Includes and eXcludes for EMM386
B000-B7FF Video (Mono) 2
View patch-mvsas.txt
Steps to patch mvsas for ASUS P9A-I/C2550/SAS/4L Marvell 88SE9485 - proxmox 4 needed it.
Get the patched file, copy to copy of linux headers path
cd /usr/src/
cp -pr linux-headers-4.4.35-2-pve/ /usr/local/src/
apt-get install pve-headers-4.4.35-1-pve
git pull pve-kernel
tar -xf ubuntu-xenial.tgz
silviuvulcan /
Created Aug 31, 2017
Python script to recover freeotp tokens. Not mine, but can't remember where I got it...
#!/usr/bin/env python
from __future__ import print_function
import base64
import ctypes
import json
import subprocess
import sys
import xml.etree.ElementTree as ET
You can’t perform that action at this time.