Skip to content

Instantly share code, notes, and snippets.

@GetVladimir
GetVladimir / Force-RGB-Color-on-M1-Mac.md
Last active June 8, 2025 19:42
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 June 7, 2025 09:54 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@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