Skip to content

Instantly share code, notes, and snippets.

View targzeta's full-sized avatar

Emanuele Tomasi targzeta

View GitHub Profile
@targzeta
targzeta / eml2maildir.sh
Last active December 26, 2015 10:29
Traslating .eml file to a maildir filename.
#!/bin/bash
# Copyright (C) 2013 Emanuele Tomasi <targzeta@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@targzeta
targzeta / dencrypt.sh
Last active October 15, 2019 17:53
Encrypting/Decrypting a file with openssl and AES-CBC (256 bits) algorithm
#!/bin/bash
# Copyright (C) 2013 Emanuele Tomasi <targzeta@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@targzeta
targzeta / auto-complete-etags.el
Last active December 10, 2017 21:10
Emacs: using etags with auto-complete
;;; auto-complete-etags.el --- using etags with auto-complete
;;
;; Copyright (C) 2014-2017 Emanuele Tomasi <targzeta@gmail.com>
;;
;; Author: Emanuele Tomasi <targzeta@gmail.com>
;; URL: https://gist.github.com/targzeta/10499354
;; Maintainer: Emanuele Tomasi <targzeta@gmail.com>
;; Keywords: auto-complete
;; Version: 0.4
;;
@targzeta
targzeta / mount.luks
Created October 15, 2019 20:30
Mounting LUKS filesystem like usual
#!/bin/bash
#
# Copyright (C) 2019 Emanuele Tomasi <targzeta@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@targzeta
targzeta / timepicker_exit_time.js
Created September 25, 2020 21:20
JS for the 'Custom Style Script' browser extension to render the exit time
// Homepage: https://www.timepicker.it/home_dipendenti.php
window.addEventListener("load", () => {add_listner()});
function add_listner() {
if (window.jQuery) {
$('body').on('DOMSubtreeModified', '#mainPanelDipendente', function() {
if ($('#container-sp-cl-total').length) {
$('body').off('DOMSubtreeModified'); // stopping observe the event to avoid infinite loop!
render_exit_time();
}