Skip to content

Instantly share code, notes, and snippets.

@GetVladimir
GetVladimir / Force-RGB-Color-on-M1-Mac.md
Last active July 5, 2024 07:14
Force RGB Color on M1 Mac

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.

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active July 5, 2024 22:45 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@raylu
raylu / README
Last active June 21, 2016 05:55
distributed job queue
Examples of distributed (job) queues:
* http://python-rq.org/
* https://github.com/twitter-archive/kestrel/wiki
* http://nsq.io/overview/quick_start.html
* http://gearman.org/
* https://kafka.apache.org/documentation.html#quickstart
* http://docs.celeryproject.org/en/latest/getting-started/first-steps-with-celery.html#application
and many more inferior queues: http://queues.io/
So you want to write a distributed job queue?
@raylu
raylu / test_cron.py
Created November 18, 2015 01:38
cron
#!/usr/bin/env python3
import time
import cron
def do_stuff1():
print('stuff1!')
def do_stuff2():
#1 / 0
import os
import time
import sys
# Function to execute shell commands "built ins"
#
def executeBuiltin(cmd):
if cmd[0] == "pwd": # Rudimentary builtin check
pwd()
elif cmd[0] == "cd":
@raylu
raylu / shell.py
Last active March 29, 2022 07:02
shell starter
#!/usr/bin/env python3
import os
while True:
line = input('> ')
os.execvp(line, [line])
# 0. run this code and try `ls` to make sure that much works
# 1. handle arguments (`ls /`)
@raylu
raylu / wsgi.py
Created February 10, 2015 23:12
simplest wsgi setup
#!/usr/bin/env python3
import wsgiref.simple_server
def app(environ, start_response):
start_response('200 OK', [('Content-type', 'text/plain')])
return ['hello world'.encode('utf-8')]
def main():
server = wsgiref.simple_server.make_server('0.0.0.0', 8000, app)
@raylu
raylu / Makefile
Last active November 9, 2019 12:39
Go question
go: go.c
gcc -o go -O go.c -Wall -Wextra -std=c11 -ggdb