Skip to content

Instantly share code, notes, and snippets.

🤔
how come bread is spelled bread but read is spelled read, and so is read?

Nicolas F. CounterPillow

🤔
how come bread is spelled bread but read is spelled read, and so is read?
Block or report user

Report or block CounterPillow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fixing_edid.md

Modding your EDID for Fun and Profit

The EDID is a small binary blob your display sends to your system that describes the capabilities of the display, for example, what physical dimensions it is, or what resolution is supports at what clockrates.

I recently had to modify my EDID to fix a DTD (Detailed Timing Descriptor), which caused the display to report a 59.93 Hz refresh rate mode that actually could only do about 48 Hz. Nudging around the pixel clock and V-Blank "fixed"

@CounterPillow
CounterPillow / README.md
Last active Jun 5, 2018
mpv script to show GPU frequencies on Linux.
View README.md

This script shows the current frequency and max frequency of a Linux DRM GPU.

To use it, bind script-message show-gpu-freq "cardnamehere" to a key, e.g. U script-message show-gpu-freq "card0".

Check /sys/class/drm/ for available cards.

View testenv.sh
CUMFILE="$HOME/.cum/config.json"
MADOKAMI_USERNAME=$(jq -r '.madokami.username' $CUMFILE)
MADOKAMI_PASSWORD=$(jq -r '.madokami.password' $CUMFILE)
BATOTO_USERNAME=$(jq -r '.batoto.username' $CUMFILE)
BATOTO_PASSWORD=$(jq -r '.batoto.password' $CUMFILE)
export MADOKAMI_USERNAME
export MADOKAMI_PASSWORD
export BATOTO_USERNAME
export BATOTO_PASSWORD
View refreshget.c
#include <GLFW/glfw3.h>
#include <stdio.h>
int main() {
if (!glfwInit())
return(-1);
int monitor_count;
GLFWmonitor** monitors = glfwGetMonitors(&monitor_count);
@CounterPillow
CounterPillow / fix-ini-data.patch
Created Oct 26, 2015
Snowmix build system patches
View fix-ini-data.patch
--- ini/Makefile.am 2015-10-26 18:28:47.631165505 +0100
+++ ini/Makefile_new.am 2015-10-26 18:53:43.926985177 +0100
@@ -1,2 +1,12 @@
-ini_DATA = *
+ini_DATA = audio basic_feeds.ini basis.ini camrelay-stream-ts Clock \
+demo-scenes DigitalClock DigitalCounter DigitalMeter example-3vfeed \
+gl_test2.ini intercom logotest logotest2 minimal minimal-1feed \
+minimal-1feed.ini minimal.ini mosaic-basis ninefeeds.ini saphire-audio \
+saphire-basis.ini saphire-DigitalCounter saphire-DigitalMeter saphire-Radar \
+saphire-shape sapphire-audio sapphire-basis.ini sapphire-clocks sapphire-feeds \
View suckage.md

List of Current Gripes With Various Open-Source Software

This document is an ever-evolving list of shitty usability in open-source software. It's not meant as a "list of shame", but as a piece of evidence for FLOSS not putting enough effort towards creating usable GUI applications.

All of it

  • Apparently no standard or widespread bad implementation of standard for system theme colour detection and application-specific overrides configuration. Many applications assume light background colour and dark font colour and have some of those colours hardcoded, but not others. This leads to some applications with dark system colours ending up with black text on dark background, e.g. the ksysguard detailed memory information dialogue.
View keybase.md

Keybase proof

I hereby claim:

  • I am counterpillow on github.
  • I am fratti (https://keybase.io/fratti) on keybase.
  • I have a public key whose fingerprint is 0D41 0011 861B C0A5 AE40 EF19 92DC BCC5 5E99 8B10

To claim this, I am signing this object:

You can’t perform that action at this time.