Skip to content

Instantly share code, notes, and snippets.

View michezio's full-sized avatar
🛸
Working from space

Michele Abruzzese michezio

🛸
Working from space
  • 01:39 (UTC +01:00)
View GitHub Profile
@michezio
michezio / img_convert.sh
Created June 7, 2023 09:45
Bulk convert image files from a format to another
#! /bin/bash
srcExt=$1
destExt=$2
srcDir=$3
destDir=$4
opts=$5
@michezio
michezio / txt_to_biblio.py
Created April 15, 2022 09:31
Convert a citation list into a MS Word compatible source file in XML format
'''
This is a quick script I made to recreate the bibliography from a
copied text in MS Word. Just copy the bibliograpy list and format
this way:
1. <Text less than 255 chars>
2. <Text less than 255 chars>
...
Entries longer than 255 characters will be ignored (but reported con console output)
The tag for each entry will be the reference number itself, useful to then
manually replace the reference number text in the copied text with the actual reference
@michezio
michezio / openbox_window_snap_keybindings.xml
Last active February 1, 2024 17:02
Openbox keybindings to snap active window at side or corner of the screen
<!-- add this to ~/.config/openbox/rc.xml or lxde-rc.xml, lxqt-rc.xml or similar -->
<!-- use Ctrl + Alt + NumPad to move the window to the corrisponding position of the screen -->
<keyboard>
<!-- 5, Maximize the window -->
<keybind key="C-A-KP_5">
<action name="MaximizeFull"/>
</keybind>
@michezio
michezio / comp_macros.h
Last active March 15, 2024 13:13 — forked from abinashmeher999/comp_macros.h
Some of the most used macros in competitive programming
#include <cmath>
#include <climits>
#include <queue>
#include <vector>
#include <map>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>