Skip to content

Instantly share code, notes, and snippets.

View mikeliturbe's full-sized avatar

Mikel Iturbe Urretxa mikeliturbe

View GitHub Profile
@mikeliturbe
mikeliturbe / caps_lock_changer.sh
Created July 28, 2021 18:36
Caps lock changer
# Sets caps lock both as Esc and Ctrl (when used in combination with other keys).
# Pressing both shift keys activate the Caps lock
setxkbmap -option ctrl:nocaps,shift:both_capslock
xcape -e 'Control_L=Escape'
@mikeliturbe
mikeliturbe / convert_vimwiki_to_markdown.sh
Created April 14, 2021 07:22
Convert Vimwiki files from Vimwiki syntax to Markdown using Pandoc
!#/bin/bash
# (C) 2021, Mikel Iturbe.
# License: https://gist.github.com/mikeliturbe/7d81ef358d072bdf9bbab7e7cc0d80fe
# Prepared to be executed inside the root wiki directory
# Assumes Vimwiki files have use the ".wiki" file extension
find . -type f -name '*.wiki' -print0 |
while IFS= read -r -d '' f; do
@mikeliturbe
mikeliturbe / LICENSE
Created April 14, 2021 07:22
License for all gists by Mikel Iturbe
Copyright (c) 2021-present Mikel Iturbe
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all

Keybase proof

I hereby claim:

  • I am mikeliturbe on github.
  • I am miturbe (https://keybase.io/miturbe) on keybase.
  • I have a public key whose fingerprint is 1966 86E8 8D8C 84D0 D53B 6001 614A CDA0 8141 DED2

To claim this, I am signing this object:

@mikeliturbe
mikeliturbe / time_series_transform.py
Created December 9, 2014 10:27
Simple script that converts an Excel timed series file with "Timestamp | Value" row-format to a to a CSV file with "Timestamp | Value1 | Value2 | ... |" format.
#!/usr/bin/env python
"""
Simple script that converts an Excel timed series file with Time | Value
row-format to a to a CSV file with Timestamp | Value1 | Value2 | ... | format.
Author: Mikel Iturbe Urretxa, mikel@hamahiru.org
"""
from xlrd import open_workbook