Skip to content

Instantly share code, notes, and snippets.


Francesco Pantano fmount

View GitHub Profile
jbadiapa / tripleo-quickstart-ceph
Last active Oct 7, 2021
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 Jan 4, 2022
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 Jan 24, 2022
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

The squares in the chanmon buffer at the top of weechat in the gif above are there only to hide the nicknames and the messages in the gif to respect users privacies

You need at least WeeChat 3.4-dev

Enable mouse

/mouse enable
wandernauta / sp
Last active Jan 14, 2022
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.