Skip to content

Instantly share code, notes, and snippets.

@iverasp
iverasp / .zshrc
Created July 30, 2019 07:15
ZSH git aliases
# git shortcuts
alias gs='git status'
alias gcm='git checkout master'
alias gplom='git pull origin master'
alias gphom='git push origin master'
alias gb='git branch'
alias ga='git add'
alias gc='git commit -m'
alias gp='git pull'
alias go='git checkout'
@iverasp
iverasp / abbreviations.tex
Last active September 3, 2022 12:55
LaTeX automatically sorted list of abbreviations
\section{List of abbreviations}
\DTLnewdb{acronyms}
\addacronym{sps}{Samples Per Second}
\addacronym{IMU}{Inertial Measurement Unit}
\addacronym{SoC}{System on Chip}
\addacronym{DMP}{Digital Motion Processor}
\addacronym{DSP}{Digital Signal Processor}
\addacronym{QFN}{Quad Flat No-leads}
\addacronym{LED}{Light-Emitting Diode}
@iverasp
iverasp / example.py
Created May 25, 2017 17:52
PyQtGraph datetime axis in PyQt5
from PyQt5.QtWidgets import QWidget, QGridLayout
import pyqtgraph as pg
from utils import TimeAxisItem, timestamp
class ExampleWidget(QWidget):
def __init__(self, parent=None):
QWidget.__init__(self, parent)
self.plot = pg.PlotWidget(
title="Example plot",
@iverasp
iverasp / gist:5671c90c4b6bdfcc4704
Last active August 29, 2015 14:12
Debian Wheezy chroot on WDTV Live Gen3 (Model number: WDBGXT0000NBK)
The WD TV Live Streaming uses "a Sigma Designs SMP8670AD 700 MHz processor
with 512MB of DDR2 memory from Nanya" (wikipedia.org).
The CPU uses a MIPS instruction set, supported by debian-mipsel
(little-endian according to http://files.dune-hd.com/partners/sdk/dune_devel_info.txt)
Our directory with Debian needs to be "hidden" to prevent mt-daapd from continuously scanning it.
Make minimal Debian installation
apt-get install debootstrap
mkdir .wdtv_gen3_debian7