Skip to content

Instantly share code, notes, and snippets.

View mruoss's full-sized avatar

Michael Ruoss mruoss

View GitHub Profile
@mruoss
mruoss / README.md
Last active January 6, 2025 19:34
Livebook with Kubernetes Port-Forwarding using ThousandIsland and Kubereq

Kubernetes Port-Forwarding Livebook

The File below is a livebook implementing Port-Forwarding to a Kubernetes Pod. I uses Thousand Island to open a socket on the local machine and kubereq to open a websocket to the Kubernetes API Server to forward the traffic to the Pod.

Currently depends on an open Pull Request on thousand_island.

Run in Livebook

@mruoss
mruoss / ch.banana.filter.import.qif.js
Created February 1, 2020 16:15
Banana QIF Importer
// @id = ch.banana.filter.import.qif
// @api = 1.0
// @pubdate = 2018-06-09
// @publisher = Banana.ch SA
// @description = Quicken Interchange Format (*.qif)
// @doctype = *
// @docproperties =
// @task = import.transactions
// @outputformat = transactions.simple
// @inputdatasource = openfiledialog
@mruoss
mruoss / .tmux.conf
Last active April 6, 2017 12:50
tmux
setw -g mouse on
set -g @scroll-speed-num-lines-per-scroll 5
set -g history-limit 1000
set -g status-interval 1
set -g status-left '#H#[default]'
set -g status-right '#(cut -d ” ” -f 1-4 /proc/loadavg)#[default] #%Y-%m-%d %H:%M:%S#[default]'
setw -g monitor-activity on
set -g visual-activity on
# Setting the prefix from C-b to C-a

Keybase proof

I hereby claim:

  • I am mruoss on github.
  • I am mruoss (https://keybase.io/mruoss) on keybase.
  • I have a public key ASDhEnJ5_L5RvMCq05lLgK71daDMLIhaQmHlEh04aYW3wQo

To claim this, I am signing this object:

# Save this in /etc/systemd/system/docker.service.d/overlay.conf to use overlayfs for docker
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon -H fd:// --storage-driver=overlay
@mruoss
mruoss / resilio-sync-docker-compose.yml
Last active May 3, 2018 08:11
Resilio Sync Scripts
version: "3"
services:
resilio:
image: resilio/sync
container_name: resilio
restart: always
ports:
- "8567:8888"
- "55555"
user: "1000"
@mruoss
mruoss / day2_1.rb
Created August 13, 2011 15:29
Seven Languages in Seven Weeks - Ruby
#!/usr/bin/env ruby
# print array in slices using each
a = (1..16).to_a
(0..3).each do |i|
p a[4*i..4*i+3]
end
# print array in slices using each_slice
a.each_slice(4) {|s| p s}