Skip to content

Instantly share code, notes, and snippets.

Avatar

Francesco Pantano fmount

View GitHub Profile
@jbadiapa
jbadiapa / tripleo-quickstart-ceph
Last active Oct 7, 2021
tripleo-quickstart-cephadm(pacific-release)
View tripleo-quickstart-ceph
git clone https://github.com/openstack/tripleo-quickstart.git
cd tripleo-quickstart
# Apply patch to use pacific repos on tripleo-quickstart
git fetch "https://review.opendev.org/openstack/tripleo-quickstart" 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
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
Compile
gcc server.c -lpthread -o server
*/
#include<stdio.h>
#include<string.h> //strlen
#include<stdlib.h> //strlen
#include<sys/socket.h>
@pascalpoitras
pascalpoitras / myweechat.md
Last active Jan 24, 2022
My always up-to-date WeeChat configuration (weechat-dev)
View myweechat.md

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
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.
#