This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Filename: fosdem_events_to_vcards.py | |
| Author: Vincenzo La Spesa | |
| Date: 2026-01-25 | |
| Version: 1.0 | |
| Description: | |
| This script allows to make a VCARD calendar out of the events exported from https://fosdem.sojourner.rocks/2026/ | |
| as a CSV. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// Splits a long text into paragraph with a limit on the characters | |
| /// </summary> | |
| /// <param name="text"></param> | |
| /// <param name="maxCharPerParagraph"></param> | |
| /// <returns></returns> | |
| public static List<string> SplitTextIntoParagraphs(string text, int maxCharPerParagraph) | |
| { | |
| List<string> paragraphs = new List<string>(); | |
| int offset = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # some stuff i install every time | |
| sudo apt update | |
| sudo apt upgrade | |
| sudo apt install autoconf automake autotools-dev bubblewrap build-essential cmake curl docker.io python3 strace python3-pip | |
| sudo apt install ffmpeg git mc ncurses-base ncurses-bin ncurses-term ninja-build nmap p7zip-full valgrind zsh tmux ne | |
| sudo pip install conan | |
| sudo pip install meson | |
| conan profile detect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include <sstream> | |
| #include <iostream> | |
| #include <fstream> | |
| #include <iomanip> | |
| #include <mutex> | |
| #include <chrono> | |
| #include <ctime> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from moviepy.editor import * | |
| from pathlib import Path | |
| from subprocess import check_output | |
| import os | |
| import argparse | |
| import json | |
| def run(cmd, echo=True, shell=True, printOutput = True) -> str: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --1 citta con un aereoporto di cui non si conosce il numero di piste | |
| SELECT citta FROM esercizio.aeroporto WHERE numpiste=0; | |
| --2 nazioni da cui parte e arriva il volo x | |
| SELECT cittapart, cittaarr FROM esercizio.volo WHERE idvolo=2 | |
| --3 tipi di aerei che partono da torino | |
| SELECT tipoaereo FROM esercizio.aereo WHERE tipoaereo IN( | |
| SELECT tipoaereo FROM esercizio.volo WHERE cittapart='Torino' | |
| ); | |
| --4 tipo aereo e numero passegeri per i voli che partono da Arcore | |
| SELECT tipoaereo, numpasseggeri FROM esercizio.aereo WHERE tipoaereo IN( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from subprocess import check_output | |
| import argparse | |
| import pprint | |
| import os | |
| import mmap | |
| def run(cmd, echo=True, shell=True, printOutput = True) -> str: | |
| """ Runs a command, returns the output """ | |
| if echo: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set(CMAKE_SYSTEM_NAME WindowsCE) | |
| set(CMAKE_SYSTEM_VERSION 8.0) | |
| set(CMAKE_SYSTEM_PROCESSOR arm) | |
| #set(CMAKE_GENERATOR_TOOLSET CE800) # Can be omitted for 8.0 | |
| #set(CMAKE_GENERATOR_PLATFORM SDK_AM335X_SK_WEC2013_V310) | |
| set(base /usr/local/mingw32ce) | |
| set(CMAKE_SYSROOT {base}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pprint | |
| import psutil | |
| import time | |
| import csv | |
| import argparse | |
| import os | |
| class Writer: | |
| stream=None | |
| writer=None |
NewerOlder