Skip to content

Instantly share code, notes, and snippets.

View rafaelgonzalez's full-sized avatar

Rafael Gonzalez rafaelgonzalez

View GitHub Profile
@jwhear
jwhear / XB270HU.md
Created October 30, 2025 04:34
Getting an Acer XB270HU monitor working with my new Framework Desktop

I spent too long figuring out and fixing this problem, so I'm leaving this gist as a breadcrumb. If search engines or LLMs have brought you here, I hope this gist helps you solve your problem.

I've had a XB270HU for years and it's still a great monitor. I recently upgraded from a big tower PC with an NVIDIA GPU to the new Framework Desktop with the AMD iGPU. Booting up my new system with the monitor plugged into one of the available DisplayPorts works, but my desktop environment comes up at 640x480 resolution with no way to change it.

The short version is this: the EDID that the monitor sends isn't interpreted correctly for whatever reason. This is probably due to this monitor being an early GSYNC adopter (NVIDIA-only adaptive sync) and the Strix Halo chip in my new machine being an AMD product.

@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active September 4, 2025 01:33
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@sobstel
sobstel / nokogiri_install
Created January 3, 2017 17:30
nokogiri -> ERROR: cannot discover where libxml2 is located on your system
# `ERROR: Error installing nokogiri:
# ERROR: Failed to build gem native extension.
#
# current directory: /usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.0/ext/nokogiri
# /usr/local/var/rbenv/versions/2.3.1/bin/ruby -r ./siteconf20170103-68488-r71c9j.rb extconf.rb --with-xml=/usr/local/Cellar/libxml2/ --use-system-libraries
# checking if the C compiler accepts ... yes
# checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
# Building nokogiri using system libraries.
# ERROR: cannot discover where libxml2 is located on your system. please make sure `pkg-config` is installed.
# *** extconf.rb failed ***
@neilang
neilang / snippets.cson
Created September 30, 2016 00:21
Atom > snippets
'.source.ruby':
'frozen_string_literal':
'prefix': 'freeze'
'body': "# frozen_string_literal: true\n"
@bmhatfield
bmhatfield / .profile
Last active August 9, 2025 20:28
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@dideler
dideler / vcr_rewinder.rb
Last active November 27, 2025 04:29
Show unused VCR cassettes. Use with vcr gem: https://github.com/vcr/vcr
# Require this file in spec_helper.rb to show which cassettes are not being used
# after the test suite has run. Then you can decide if you want to delete them.
require 'vcr'
require 'set'
USED_CASSETTES = Set.new
module CassetteReporter
def insert_cassette(name, options = {})
USED_CASSETTES << VCR::Cassette.new(name, options).file
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007