Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
""" Translates a ugly data point name (DP_351652) into something uglier (A0numeric0).
The translation will be needed while exporting old ScadaBR databases into the new main database.
For this class we will assume that:
Data point (dp) --> somewhat like "DP_351652"
Param --> somewhat like "A0numeric0"
Keep that in mind.
#!/bin/sh
buster generate
git add -A
git commit -m "Update on the website at $(date)"
git push origin master
@paladini
paladini / tstp_sizes.cc
Created May 4, 2016 20:52
Small application to print TSTP sizes.
#include <network.h>
#include <utility/ostream.h>
using namespace EPOS;
OStream cout;
int main()
{
while(true) {
@paladini
paladini / aws-ec2-redis-cli.md
Last active January 30, 2025 23:20 — forked from todgru/aws-ec2-redis-cli.md
AWS redis-cli without redis server on AWS EC2

Setup redis-cli without the whole Redis Server on AWS EC2

This fast tutorial will teach you how to install redis-clion AWS EC2 without having to install the whole Redis Server. Firstly, SSH into your EC2 instance and run the following command:

$ sudo yum install gcc

This may return an "already installed" message, but that's OK. After that, just run:

$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make && sudo cp src/redis-cli /usr/local/bin/ && sudo chmod 755 /usr/local/bin/redis-cli

@paladini
paladini / .block
Last active March 2, 2017 12:15 — forked from mbostock/.block
Bubble Chart
license: gpl-3.0
height: 880
border: no
@paladini
paladini / .block
Last active March 3, 2017 03:19 — forked from mbostock/.block
Multi-Foci Force Layout
license: gpl-3.0
[{"name":"Angola","region":"Sub-Saharan Africa","income":[[1800,359.93],[1820,359.93],[1913,556.12],[1950,3363.02],[1951,3440.9],[1952,3520.61],[1953,3598.81],[1954,3450.82],[1955,3672.08],[1956,3549.04],[1957,3827.94],[1958,3966.42],[1959,3917.76],[1960,4006.21],[1961,4463.83],[1962,4269.28],[1963,4413.6],[1964,4826.49],[1965,5102.21],[1966,5308.14],[1967,5522.78],[1968,5346.63],[1969,5408.12],[1970,5651.88],[1971,5526.21],[1972,5473.29],[1973,5722.02],[1974,5470.21],[1975,3430.85],[1976,3050.32],[1977,3008.65],[1978,3070.82],[1979,3064.89],[1980,3074.75],[1981,2953.41],[1982,2756.95],[1983,2584.56],[1984,2527.47],[1985,2492.83],[1986,2220.61],[1987,2430.21],[1988,2728.53],[1989,2730.56],[1990,2777.42],[1991,2730.85],[1992,2627.85],[1993,1869.92],[1994,1851.45],[1995,1989.02],[1996,2157.35],[1997,2277.14],[1998,2384.48],[1999,2417.18],[2000,2446.65],[2001,2479.69],[2002,2773.29],[2003,2785.39],[2004,3007.11],[2005,3533],[2006,4069.56],[2007,4755.46],[2008,5228.74],[2009,5055.59]],"population":[[1800,1567028]
@paladini
paladini / How to Open Ports for Guild Wars 2 on Ubuntu and other Linux distros.md
Last active March 21, 2021 14:22
How to open / allow Guild Wars 2 ports on Linux / Ubuntu

Opening ports needed by Guild Wars 2 when running on Lutris in Ubuntu 20.04 or any other Linux distributions.

Based on instructions listed here.

1) Allow Port 6112

Open Your Terminal and enter the following commands to open port 6112 UDP and TCP:

sudo ufw enable
@paladini
paladini / git-rewrite-author.sh
Created July 19, 2025 17:39
This script will automatically find your global name/email, detect the old emails in your repository's log, and ask you which one you want to replace before rewriting the history. Be very careful with this command. Read the first comment too.
#!/bin/bash
# A script to rewrite author/committer history for a Git repository.
# It uses 'git filter-branch' and has no external dependencies.
# Created by @paladini - github.com/paladini
# Define colors for output
C_BLUE="\033[1;34m"
C_GREEN="\033[1;32m"
C_RED="\033[1;31m"
@paladini
paladini / how-to-install-ai-vocal-remover-and-instrument-separator.md
Created July 19, 2025 17:49
Guide to installing a free, open-source AI music separator that runs on your own computer. Separate vocals, drums, bass, and instruments from songs (MP3, WAV) or YouTube links to create karaoke/instrumental tracks. No APIs or subscriptions needed. Simple setup with Docker or Python.

Quick Start: AI Vocal Remover & Instrument Separator

A free and open-source tool that turns your computer into an AI-powered audio separation studio. It runs entirely on your local machine, meaning no external APIs, no subscriptions, and no costs. Separate vocals, drums, bass, and other instruments from any song file or YouTube link using Meta's powerful Demucs AI model.

Full documentation and source code: https://github.com/paladini/voice-separator-demucs


🚀 Easiest Installation (Docker)