Skip to content

Instantly share code, notes, and snippets.

@yoeria
yoeria / table_csv.js
Created July 27, 2023 01:46
UserScript: Download Table as CSV
// ==UserScript==
// @name Download Table as CSV
// @namespace Violentmonkey Scripts
// @match *://*/*
// @grant none
// @version 1.9
// @author igorlogius
// @description Add a download button at the top of every html table to download / export it as a CSV (comma seperated values) file
// ==/UserScript==
@yoeria
yoeria / LearnXInYMinProtocolBuffer.proto
Created January 11, 2022 18:52 — forked from shankarshastri/LearnXInYMinProtocolBuffer.proto
Self-Explanatory Protocol Buffer Lang Guide (CheatSheet)
/*
* Self-Explanatory Protocol Buffer Lang Guide
*/
/*
* Why Protocol Buffers?
* Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data – think XML, but smaller, faster, and simpler.
* You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages.
* Protocol Buffers are Schema Of Messages. They are language agnostic.
@yoeria
yoeria / wezterm.lua
Last active December 4, 2021 19:25
wezterm_config
local wezterm = require 'wezterm';
return {
color_scheme = "Man Page",
font = wezterm.font_with_fallback({
"Roboto Mono",
"Fira Code",
"DengXian",
}),
ssh_domains = {
@yoeria
yoeria / skc.py
Last active March 22, 2021 18:25
HvA HBO-ICT (Cyber Security) SKC 2021
#!/usr/bin/env python3
# Auteur: Karel
# Datum: 22-03-2021
# Library imports
from datetime import date
# Function to avoid unnecessary repition
@yoeria
yoeria / tableToCSV.js
Last active January 16, 2021 16:41
download a html table to csv by clicking a button near it
// ==UserScript==
// @name Table => CSV
// @namespace Violentmonkey Scripts
// @match *://*/*
// @grant none
// @version 1.9.2
// @updateURL https://gist.github.com/yoeria/8f2df67800e5e14dac8e3c0fb93ff3898/raw/tableToCSV.js
// @author igorlogius; forked
// @description Add a download button at the top of every html table to download / export it as a CSV (comma seperated values) file
// @exclude http*://*ftx.com/*
@yoeria
yoeria / portainer.sh
Last active March 9, 2021 14:00
is not a service since it says it is connected with swarms, but those are deprecated. so this is a docker run with --restart always enabled
sudo mkdir /portainer ; docker run -d --restart always -p 9050:9000 -p 8765:8000 --name portainer -v /var/run/docker.sock:/var/run/docker.sock -v /portainer:/data portainer/portainer-ce
@yoeria
yoeria / xterm-256color.svg
Created November 17, 2020 16:51 — forked from jasonm23/xterm-256color.svg
Xterm 256color mode color chart, organised into sections.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yoeria
yoeria / force_roboto-mono.js
Last active January 23, 2022 10:50
forces roboto mono on certain sites
// ==UserScript==
// @version 0.2.1
// @name Force_Font: Roboto Mono
// @homepageURL https://gist.github.com/yoeria/85f203419a48c8c47f7bb9ae817f9171
// @supportURL https://superuser.com/questions/1209191/force-chrome-to-use-my-preferred-font-over-the-authors
// @updateUrl https://gist.github.com/yoeria/85f203419a48c8c47f7bb9ae817f9171/raw/force_roboto-mono.js
// @icon https://raw.githubusercontent.com/yoeria/icons_public/master/homemade/roboto_mono-favicon.svg
// @namespace http://tampermonkey.net/
// @description forces roboto mono on certain sites
// @author You
@yoeria
yoeria / update-python.md
Created June 1, 2020 15:54 — forked from growtopiajaw/update-python.md
update-alternatives for python2 and python3 in Ubuntu 16.04.x

List available python options

ls -larth `which python`*
lrwxrwxrwx 1 root root   10 Mar 23  2016 /usr/bin/python3m -> python3.5m
lrwxrwxrwx 1 root root    9 Mar 23  2016 /usr/bin/python3 -> python3.5
lrwxrwxrwx 1 root root    9 Nov 24  2017 /usr/bin/python2 -> python2.7
lrwxrwxrwx 1 root root    9 Nov 24  2017 /usr/bin/python -> python2.7
-rwxr-xr-x 2 root root 4.3M Nov 28  2017 /usr/bin/python3.5m
-rwxr-xr-x 2 root root 4.3M Nov 28  2017 /usr/bin/python3.5
@yoeria
yoeria / tmux.conf
Last active February 20, 2021 13:41 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 50000