Skip to content

Instantly share code, notes, and snippets.


Francesco Pantano fmount

View GitHub Profile
jbadiapa / tripleo-quickstart-ceph
Last active February 17, 2022 14:39
View tripleo-quickstart-ceph
git clone
cd tripleo-quickstart
# Apply patch to use pacific repos on tripleo-quickstart
git fetch "" refs/changes/43/782943/2 && git checkout FETCH_HEAD
cp config/nodes/3ctlr_2comp_3ceph.yml ~/myNodes.yml
#Apply the following patch
# Create the patch
cd ~
cat > ~/myNodes.patch <<EOF
--- tripleo-quickstart/config/nodes/3ctlr_2comp_3ceph.yml 2021-03-26 10:02:05.997970444 +0100
oleksiiBobko / tcp_server.c
Last active November 24, 2022 13:43
Simple socket server in C using threads (pthread library) Compiles on linux
View tcp_server.c
C socket server example, handles multiple clients using threads
gcc server.c -lpthread -o server
#include<string.h> //strlen
#include<stdlib.h> //strlen
pascalpoitras /
Last active January 19, 2023 05:47
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

You need at least WeeChat 3.8-dev

Enable mouse

/mouse enable

Secured data

wandernauta / sp
Last active January 12, 2023 11:44
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
View sp
#!/usr/bin/env bash
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.