Skip to content

Instantly share code, notes, and snippets.

Force RGB Color on M1 Mac

How to Force RGB Color Output instead of YPbPr on your M1 Apple Silicon Mac for an External Monitor.

This step-by-step video tutorial will guide you through the procedure of forcing RGB color output on your M1 Mac.

Force RGB Color on M1 Mac

Here is the direct link to the video tutorial: https://www.youtube.com/watch?v=Z1EqH3fd0V4

The video also has Closed Captions (Subtitles) that you can enable, to make it easier to follow if needed.

@webdestroya
webdestroya / models.md
Last active August 24, 2020 21:21 — forked from RichardOrnelas/models.md
initial models. Looking for some guidance on the relationships, and examples of common patterns

Models

Users

  • Relationships
    • has_many :assignments, class_name: "Loan"
    • belongs_to :branch <-- do they?
      • Tracks Session IDs
  • Attributes
    • first_name
    • last_name
@webdestroya
webdestroya / gist:4837ab30ab2d090b27d158f77cbe84d5
Created June 22, 2019 06:17 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@webdestroya
webdestroya / postgres.md
Last active May 23, 2023 04:54
Postgres commands for debugging

Process List

SELECT (NOW() - query_start) as duration, pid, usename, application_name, client_addr, client_port, backend_start, query_start,
wait_event, wait_event_type, state, query
FROM pg_stat_activity 
WHERE pid <> pg_backend_pid()
AND state <> 'idle'
ORDER BY query_start ASC;
var MemoryStorage, e,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
MemoryStorage = (function(superClass) {
extend(MemoryStorage, superClass);
function MemoryStorage() {
this.db = {};
}
Welcome to the Official PUBG Team Finding Discord Server!
=========================================================
To invite people to this server use [Pubgteamfinder.com](https://discord.gg/nZBCBFR) .

Some general guidelines
\set QUIET 1
-- formatting
\x auto
\set VERBOSITY verbose
\set ON_ERROR_ROLLBACK interactive
-- show execution times
\timing
-- limit paging
\pset pager off

Keybase proof

I hereby claim:

  • I am webdestroya on github.
  • I am mrdempsey (https://keybase.io/mrdempsey) on keybase.
  • I have a public key ASCNsk1uwPwkQfovl_ACvcEyCa4qFID_h25SGNWaUF-Wego

To claim this, I am signing this object:

@webdestroya
webdestroya / load_cycle_check.sh
Created May 17, 2015 05:42
Check Load_Cycle_Count rate for drives
#!/bin/sh
drives=`sysctl -n kern.disks | awk '{for (i=NF; i!=0 ; i--) print $i }'`
echo "+------+-----------------+-----------------+---------+-----------+----------+"
echo "|Device|Model |Serial | Power | LCC | LCC/Hr |"
echo "+------+-----------------+-----------------+---------+-----------+----------+"
for drive in $drives
do
smartctl -A -i -v 7,hex48 /dev/${drive} | \

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: