Skip to content

Instantly share code, notes, and snippets.

View llucax's full-sized avatar

Leandro Lucarella llucax

View GitHub Profile
@llucax
llucax / dell-battery.sh
Last active June 29, 2022 17:25
dell-battery
#!/bin/bash
set -eu
cctk=/opt/dell/dcc/cctk
usage_error() {
exec >&2
echo "Error: $@"
echo
echo "Usage: $0 [MODE]"
@llucax
llucax / keybase.md
Created November 19, 2017 18:37
Keybsse proof

Keybase proof

I hereby claim:

  • I am llucax on github.
  • I am llucax (https://keybase.io/llucax) on keybase.
  • I have a public key ASC-6uKdGcpRqERoTKbES47SdWtV9XgoDANkCOvikLzv1Qo

To claim this, I am signing this object:

@llucax
llucax / ocici.py
Last active August 29, 2015 14:11
OwnCloud iCal Calendar Importer
#!/usr/bin/env python2
# Works only on Python2 because depends on caldav that only works on Python2
# (but this script should be compatible with Python3)
# https://pypi.python.org/pypi/caldav
# pip install caldav
from __future__ import print_function
import sys
import caldav
@llucax
llucax / pasaffe-dump-keepassx-xml.py
Last active August 29, 2015 14:09
Password DB exporters to KeePassX XML.
#!/usr/bin/python
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
# Converts Pasaffe DB format to KeePassX XML.
### BEGIN LICENSE
# Copyright (C) 2014 Leandro Lucarella <llucax@gmail.com>
# Based on work by Jamie Strandboge <jamie@canonical.com> which was
# based on work by Marc Deslauriers <marc.deslauriers@canonical.com>
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published