Skip to content

Instantly share code, notes, and snippets.

View msrd0's full-sized avatar

msrd0

View GitHub Profile
/**************************************************************************/
/*!
@brief Custom lookup tables for full screen updates. Public domain (?) from Waveshare.
@note Video explainer: https://www.youtube.com/watch?v=MsbiO8EAsGw and more info:
https://benkrasnow.blogspot.com/2017/10/fast-partial-refresh-on-42-e-paper.html
@warning YOU CAN PERMANENELY DAMAGE YOUR DISPLAY BY ABUSING THESE LOOKUP TABLES!
Seriously, the controller is incredibly programmable and you can force all
kinds of voltages and timings onto the screen that it wasn't meant to deal
with. TWEAK AT YOUR OWN RISK!
*/
@slipeer
slipeer / media_clean.py
Last active August 8, 2018 03:23
Synapse clean unclaimed local media.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# For https://github.com/matrix-org/synapse/
# Synapse old local media analyze and cleanup util.
# @author Pavel Kardash <pavel@kardash.su>
"""
Since synapse v0.27.0 there last_accessed_ts column
in table local_media_repository present.
This made it possible to clean unclaimed local media.
@pkorpine
pkorpine / install_vivaldi.sh
Created January 17, 2017 07:37
Add Vivaldi repo to Debian/Ubuntu
echo "deb http://repo.vivaldi.com/stable/deb/ stable main" | sudo tee /etc/apt/sources.list.d/vivaldi.list > /dev/null
wget -O - http://repo.vivaldi.com/stable/linux_signing_key.pub | sudo apt-key add -
sudo apt update && sudo apt install vivaldi-stable