Skip to content

Instantly share code, notes, and snippets.

View silopolis's full-sized avatar

Jérémie Tarot silopolis

View GitHub Profile
@cloorc
cloorc / vscode-customize-css.css
Last active February 19, 2025 02:35
vscode-customize-css
/*
* A simple vscode style customization for https://github.com/be5invis/vscode-custom-css
* Just put this file into anywhere and refer it from your vscode `settings.json` under `vscode_custom_css.imports` as following:
* "vscode_custom_css.imports": [
* "file:///c:/Users/anyone/vscode.css"
* ]
**/
a.label-name,
p.subtitle.description,
h1.product-name.caption,

Poor Man's Global Traffic Manager

Sometimes we need to add redundancy to some service or server which happen to be a public-facing entry point of our infrastructure. For example, imagine we want to add a high availability pair for a load balancer which sits on the edge of network and forwards traffic to alive backend servers.

                                             ┌─────────────┐
                                             │             │
                                      ┌─────►│  Backend 1  │
                                      │      │             │
                                      │      └─────────────┘
@auycro
auycro / rfc_1.md
Last active December 7, 2022 19:31
RFC templates

(this is an old example that illustrates how I introduced a a team to the process of RFCs, my understanding of how to deploy this process well has evolved since then)

RFC on RFCs

  • Main Author: @buritica
  • Backers: n/a

1 Summary

@mario52a
mario52a / Macro_FCTreeView.FCMacro
Last active December 18, 2021 19:21
Macro for list all objects in the project in one list without hierarchy, options sort by name, label, visibility, group, by length option search by name, label .... without case sensitive or with case sensitive and select all objects displayed in the macro window.
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
#
"""
***************************************************************************
* Copyright (c) 2017 2018 2019 2020 <mario52> *
* *
* This file is a supplement to the FreeCAD CAx development system. *
* *
* This program is free software; you can redistribute it and/or modify *
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Sends HAL signals to the given MQTT broker host.
#
# usage: hal2mqtt.py [hostname]
#
# Video demo at https://www.youtube.com/watch?v=uFbr7xBjItE
#
# sudo apt-get install mosquitto mosquitto-clients python-mosquitto
List of DebOps things to do in 2015:
✓ add ansible_managed template in debops script
✓ add option to automatically upgrade all packages instead of just security upgrades
✓ new PKI role
- nginx certificate pinning
✓ update gitlab role, remove shasum dependency
- gitlab role, detach mysql/postgresql dependency
- add racktables role or opendcim role
✓ add tls support in mysql
@mislav
mislav / _readme.md
Last active April 24, 2025 10:07
tmux-vim integration to transparently switch between tmux panes and vim split windows

I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).

In Vim I have key bindings C-h/j/k/l set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W.) I'd like to use the same keystrokes for switching tmux panes.

An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\.

Here's how it should work: