Skip to content

Instantly share code, notes, and snippets.


Walter Sphinxs

View GitHub Profile
Sphinxs /
Created Jan 11, 2021
Plot and play WAV file in Python 3
import pyaudio
import matplotlib.pyplot as pyplot
import numpy
import wave
# from playsound import playsound
Sphinxs /
Created Dec 28, 2020
Holiday tree
from colorama import Fore, Style
size = 15
raw_tree = [*['*'], *[f"{'-' * (number)}" for number in range(2, size)]]
tree_centered = [ * 2) for node in raw_tree]
View cloudSettings
View traefik.yml
version: "3"
restart: always
context: ./
dockerfile: Dockerfile
- "4000:4000"
Sphinxs / events.js
Created Jun 2, 2020
Node essentials
View events.js
const events = require("events");
const emitter = new events.EventEmitter();
const util = require("util");
// Basic example
emitter.on("message", message => {
Sphinxs / Query.js
Last active Apr 21, 2020
Mongo / Mongoose query builder for nested objects
View Query.js
const _ = require("lodash");
const data = {
name: "Name",
age: 0,
house: {
color: "Color",
address: {
city: "City",
state: "State",
Sphinxs / Download.cpp
Last active Dec 19, 2019
Save binary files that are stored in Mongo database, in disk, through Mongo CXX driver in C++
View Download.cpp
// Makefile (change SOURCES=binary.cpp to download.cpp)
// How to save a document in Mongo
#include <iostream>
#include <fstream>
#include <mongocxx/instance.hpp>
Sphinxs / Mongo-makefile
Last active Jun 30, 2019
Makefile for store binary files in Mongo database, through Mongo CXX driver in C++, script
View Mongo-makefile
FLAGS=-Wall -Werror -std=c++17 -Werror=unused-variable
LIBRARIES=`pkg-config --libs libbson-1.0 libmongoc-1.0 libbsoncxx libmongocxx` -Wl,-rpath,/usr/local/lib
INCLUDES=`pkg-config --cflags libbson-1.0 libmongoc-1.0 libbsoncxx libmongocxx`
Sphinxs / Mongo.cpp
Last active Dec 2, 2020
Store binary files in Mongo database, through Mongo CXX driver in C++
View Mongo.cpp
// Makefile
// How to download a document from Mongo
#include <iostream>
#include <fstream>
#include <bsoncxx/types.hpp>

Sequeler Installation

Linux Ubuntu 18.04

Download the .deb package

cd ~/Downloads


Install the .deb package

sudo dpkg -i com.github.alecaddd.sequeler_0.5.5_amd64.deb