Skip to content

Instantly share code, notes, and snippets.

View systemsoverload's full-sized avatar

TJ Kells systemsoverload

View GitHub Profile

Keybase proof

I hereby claim:

  • I am systemsoverload on github.
  • I am systemsoverload (https://keybase.io/systemsoverload) on keybase.
  • I have a public key whose fingerprint is 4572 93DD F128 1A9C E37D BCC3 7FC3 270A 7971 1F4E

To claim this, I am signing this object:

@systemsoverload
systemsoverload / fix-infinality.md
Created January 11, 2017 16:16 — forked from cryzed/fix-infinality.md
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08:

% Django % TJ Kells % 05-26-2016

What is it?

Django (/ˈdʒæŋɡoʊ/ jang-goh) is a free and open source web application framework, written in Python. A web framework is a set of components that helps you to develop websites faster and easier.

#---- Generated by tint2conf a0e7 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Backgrounds
# Background 1: Battery, Panel
rounded = 0
border_width = 1
background_color = #2f343b 100
border_color = #99a8b9 100
@systemsoverload
systemsoverload / pg_advisory_xact_lock.py
Created July 14, 2015 16:42
Simple context manager to wrap django utilities in pg_advisory locks
from django.db import connection, transaction
from contextlib import contextmanager
@contextmanager
def pg_advisory_xact_lock(*keys):
"""
Acquire an exclusive database lock against an arbitrary string key
"""
string_key = '.'.join(keys)
@systemsoverload
systemsoverload / jsonview-zenburn.css
Created February 28, 2015 22:52
JSON View Zenburn theme for Chrome Extension
body {
background-color: #393939;
color: #fed6af;
font-size: 14px;
white-space: pre !important;
font-family: "Consolas", "Source Code Pro", monospace;
}
.property {
font-weight: bold;
@systemsoverload
systemsoverload / lcd_input_count.cpp
Created January 27, 2015 05:20
Simple program to count button presses and display them on a 16x2 LCD screen with TeensyDuino libraries
#include <Bounce.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
const int buttonPin = 23;
Bounce pushbutton = Bounce(buttonPin, 10); // 10 ms debounce
byte previousState = HIGH;
unsigned int count = 0;
@systemsoverload
systemsoverload / 1602a_lcd_controller.py
Created January 10, 2015 17:43
RPi LCD Controller
# Forked from http://www.raspberrypi-spy.co.uk
# The wiring for the LCD is as follows:
# 1 : GND
# 2 : 5V
# 3 : Contrast (0-5V)*
# 4 : RS (Register Select)
# 5 : R/W (Read Write) - GROUND THIS PIN
# 6 : Enable or Strobe
# 7 : Data Bit 0 - NOT USED
# 8 : Data Bit 1 - NOT USED
# Make sure you have the pgdg apt source configured ( https://wiki.postgresql.org/wiki/Apt )
apt-get install postgresql-9.4 postgresql-server-dev-9.4 postgresql-plpython-9.4 postgresql-contrib-9.4
# If you're feeling bold - YMMV
apt-get install --only-upgrade pgadmin3
# Stop all running postgresql servers -- needed for migration of 9.3 data to 9.4 (pg_upgrade execution)
/etc/init.d/postgresql stop
# Must link conf file into data directory since it's expected there by pg_upgrade.

#No feigning surprise

The first rule means you shouldn't act surprised when people say they don't know something. This applies to both technical things ("What?! I can't believe you don't know what the stack is!") and non-technical things ("You don't know who RMS is?!"). Feigning surprise has absolutely no social or educational benefit: When people feign surprise, it's usually to make them feel better about themselves and others feel worse. And even when that's not the intention, it's almost always the effect. As you've probably already guessed, this rule is >tightly coupled to our belief in the importance of people feeling comfortable