Skip to content

Instantly share code, notes, and snippets.

View constanedes's full-sized avatar
:octocat:

Constantino Edes constanedes

:octocat:
View GitHub Profile
@constanedes
constanedes / poem.md
Created April 16, 2026 01:12
Adapted passage from Ithaca by C. P. Cavafy

Ithaca — Adapted Passage

Hope that the road is long, rich in adventure and knowledge.
[...]
Always keep the destination in your mind; to arrive there is your goal,
yet do not hurry the journey in the least.
Better that it lasts many years...
and you reach it wise with so much experience.

— Konstantinos P. Cavafy, Ithaca (1911)

@constanedes
constanedes / file_manager.py
Created August 26, 2023 22:48
Simple file manager script
#!/usr/bin/env python3
import logging
from argparse import ArgumentTypeError, ArgumentParser
from shutil import move, copy, rmtree
from pathlib import Path
from glob import glob
from os.path import isfile, isdir, join, exists, splitext, dirname
from os import makedirs, removedirs, remove, getenv, listdir
@constanedes
constanedes / discord-rpc.js
Created June 19, 2023 06:16
Simple script for create a custom Discord RPC
const clientId = 'your_client_id';
const discordRPC = require('discord-rpc');
const RPC = new discordRPC.Client({ transport: 'ipc' });
discordRPC.register(clientId);
async function setActivity() {
if (!RPC) {
return;
}
RPC.setActivity({
@constanedes
constanedes / ubuntu_php_env.md
Last active May 17, 2022 08:53
Download PHP8, Laravel, MySQL & Apache in Ubuntu for Test an App

Guia comandos de la maquina virtual usando Ubuntu 22.04 LTS

1. Primero se debe actualizar todo -> Fuente

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get full-upgrade
sudo do-release-upgrade