Skip to content

Instantly share code, notes, and snippets.

View jaromil's full-sized avatar
🇪🇺
Trans Europa Express

Jaromil jaromil

🇪🇺
Trans Europa Express
View GitHub Profile
@jaromil
jaromil / REA_generator.py
Last active January 19, 2023 09:00
REA graph dataset generator
import networkx as nx
import random
# Set the number of resources, events, and agents
num_resources = 80
num_events = 30
num_agents = 10
# Initialize the graph
G = nx.Graph()
@jaromil
jaromil / startmenu2homebin
Created September 29, 2022 22:50
Script to make applications pinned in StartMenu easy to launch from WSL
#!/bin/sh
# Copyright (C) 2022 Dyne.org Foundation
##
# This source code is free software; you can redistribute it and/or
# modify it under the terms of the GNU Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This source code is distributed in the hope that it will be useful,
@jaromil
jaromil / debian-to-devuan-ansible-role.yaml
Created June 17, 2022 09:55
Ansible for the non-interactive migration of Debian 11 "Bullseye" to Devuan 4 "Chimaera"
---
- name: INSTALL DEVUAN
hosts: all
# become: yes
tasks:
- name: Install Devuan keyring
shell: >-
curl https://pkgmaster.devuan.org/devuan/pool/main/d/devuan-keyring/devuan-keyring_2017.10.03_all.deb -o devuankeys.deb && dpkg -i devuankeys.deb
- name: Install sysvinit
{"tarots":["The Fool","The Magician","The High Priestess","The Empress","The Emperor","The Hierophant","The Lovers","The Chariot","Strength","The Hermit","Wheel of Fortune","Justice","The Hanged Man","Death","Temperance","The Devil","The Tower","The Star","The Moon","The Sun","Judgment","The World","Ace of Wands","Two of Wands","Three of Wands","Four of Wands","Five of Wands","Six of Wands","Seven of Wands","Eight of Wands","Nine of Wands","Ten of Wands","Page of Wands","Knight of Wands","Queen of Wands","King of Wands","Ace of Cups","Two of Cups","Three of Cups","Four of Cups","Five of Cups","Six of Cups","Seven of Cups","Eight of Cups","Nine of Cups","Ten of Cups","Page of Cups","Knight of Cups","Queen of Cups","King of Cups","Ace of Swords","Two of Swords","Three of Swords","Four of Swords","Five of Swords","Six of Swords","Seven of Swords","Eight of Swords","Nine of Swords","Ten of Swords","Page of Swords","Knight of Swords","Queen of Swords","King of Swords","Ace of Pentacles","Two of Pentacles","Three o
@jaromil
jaromil / vcard2outlook.sh
Last active March 26, 2021 17:50
Shell script to convert a VCard file to a CSV compatible to import in Outlook
#!/bin/zsh
# Shell script to convert a VCard to a CSV to import in Outlook
#
# Requirements: Zsh, GNU AWK and unix2dos
#
# Usage:
# cat Contacts.vcf | ./vcard2outlook.sh | unix2dos > Contacts.csv
#
# * Copyright (C) 2021 Dyne.org foundation
@jaromil
jaromil / tile.sh
Last active February 11, 2022 08:32
Minimalistic tiling based on golden ratio
#!/usr/bin/env bash
# minimalistic tiling manager based on golden ratio
# uses only zsh, awk and wmctrl
# Copyleft (C) 2020-2021 by Jaromil
#
# usage: tile [ center | left | right | top ]
#
# geometry of tiles:
# ________________
# | top |
@jaromil
jaromil / decidiamo.sh
Last active January 20, 2021 00:53
Zencode script per il servizio di decidiamo.it
#!/usr/bin/env bash
# RNGSEED="hex:00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
####################
# common script init
if ! test -r ../utils.sh; then
echo "run executable from its own directory: $0"; exit 1; fi
. ../utils.sh
Z="`detect_zenroom_path` `detect_zenroom_conf`"

Keybase proof

I hereby claim:

  • I am jaromil on github.
  • I am jaromil (https://keybase.io/jaromil) on keybase.
  • I have a public key whose fingerprint is 6113 D89C A825 C5CE DD02 C872 73B3 5DA5 4ACB 7D10

To claim this, I am signing this object: