Skip to content

Instantly share code, notes, and snippets.

Avatar

Francesco Pantano fmount

View GitHub Profile
@jbadiapa
jbadiapa / tripleo-quickstart-ceph
Last active February 17, 2022 14:39
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 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
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 January 19, 2023 05:47
My always up-to-date WeeChat configuration (weechat-dev)
View myweechat.md

WeeChat Screenshot

You need at least WeeChat 3.8-dev

Enable mouse

/mouse enable

Secured data

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