Skip to content

Instantly share code, notes, and snippets.

View pablopunk's full-sized avatar
:shipit:
shipping

Pablo P Varela pablopunk

:shipit:
shipping
View GitHub Profile
@pablopunk
pablopunk / docker-cephfs-virtiofs.md
Created May 7, 2025 10:39 — forked from scyto/docker-cephfs-virtiofs.md
Hypervisor Host Based CephFS pass through with VirtioFS

Using VirtioFS backed by CephFS for bind mounts

This is currently a work-in-progress documentation - rough notes for me, maybe missing a lot or wrong

The idea is to replace GlusterFS running inside the VM with storage on my cephfs cluster. This is my proxmox cluster and it runs both the storage and is the hypervisor for my docker VMs.

Other possible approaches:

  • ceph fuse clien in VM to mount cephFS or CephRBD over IP
  • use of ceph docker volume plugin (no useable version of this yet exists but it is being worked on)

Assumptions:

@pablopunk
pablopunk / a_better_linux_shell.sh
Last active May 13, 2025 16:42
Blazing fast zsh/vim experience for a brand new linux server
echo "Installing requirements"
sudo apt install -y curl git zsh vim neovim
echo "Setting up zsh as default shell"
chsh -s "$(which zsh)"
echo "Installing zim"
curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
if [ ! -f ~/.vimrc ]; then
@pablopunk
pablopunk / Keypirinha.ini
Last active October 2, 2023 10:37
Keypirinha for windows (yaml config)
[app]
hotkey_run = Alt+Space
launch_at_startup = yes
[gui]
show_on_taskbar = no
[external]
editor = "C:\Program Files\Microsoft VS Code\Code.exe"
editor_accepts_multifiles = yes
@pablopunk
pablopunk / replace-on-search.vim
Created March 1, 2021 13:19
replace on a vim search
:%s/\\(:.*\\)\\@<=_/ /g
@pablopunk
pablopunk / example.json
Last active March 1, 2021 13:18
How to replace text in vim only inside a specific search
{
"America/New_York": "America/New_York"
}
{"name":"Mac custom","device":1,"model":3,"type":"layout","data":{"layer0":[41,30,31,32,33,34,35,36,37,38,39,45,46,42,43,20,26,8,21,23,28,24,12,18,19,47,48,49,192,4,22,7,9,10,11,13,14,15,51,52,40,225,29,27,6,25,5,17,16,54,55,56,229,224,226,227,44,230,192,193,228],"layer1":[100,58,59,60,61,62,63,64,65,66,67,68,69,0,0,0,82,0,0,0,0,0,0,0,70,74,77,0,192,80,81,79,0,0,80,81,82,79,75,78,0,0,53,0,0,0,0,0,0,0,73,76,0,0,0,0,0,0,192,193,0],"layer2":[0,200,201,202,203,0,0,0,246,241,240,244,243,0,0,0,82,0,0,0,0,0,82,0,70,74,77,0,192,80,81,79,0,0,0,80,81,79,75,78,0,0,0,0,0,0,0,0,0,0,73,76,0,0,0,0,0,0,192,193,0],"taps":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,53,0,0,0,0,0,0,0,0,0,0,82,0,0,0,0,0,80,81,79]},"crc":"f9f8f0da"}
[
{
"enabled": true,
"updateUrl": "https://userstyles.org/styles/chrome/175752.json?ik-W=ik-WAM",
"md5Url": "https://update.userstyles.org/175752.md5",
"url": "http://userstyles.org/styles/175752",
"originalMd5": "65a20cc7bb26c15b36059b39047ecc8a",
"installDate": 1588241372078,
"sections": [
{
[
{
"enabled": true,
"updateUrl": "https://userstyles.org/styles/chrome/175752.json?ik-W=ik-WAM",
"md5Url": "https://update.userstyles.org/175752.md5",
"url": "http://userstyles.org/styles/175752",
"originalMd5": "65a20cc7bb26c15b36059b39047ecc8a",
"installDate": 1588241372078,
"sections": [
{
[
{
"enabled": true,
"updateUrl": "https://userstyles.org/styles/chrome/175752.json?ik-W=ik-WAM",
"md5Url": "https://update.userstyles.org/175752.md5",
"url": "http://userstyles.org/styles/175752",
"originalMd5": "65a20cc7bb26c15b36059b39047ecc8a",
"installDate": 1588241372078,
"sections": [
{
@pablopunk
pablopunk / stylus-2020-04-08.json
Created April 8, 2020 09:11
Stylus Chrome Backup
[
{
"enabled": true,
"updateUrl": null,
"md5Url": null,
"url": null,
"originalMd5": null,
"installDate": 1576532770539,
"name": "github dark",
"sections": [