Skip to content

Instantly share code, notes, and snippets.

@marczellm
marczellm / signal-desktop-landline-setup.md
Last active April 18, 2026 09:08
Signal Desktop landline setup

You can register Signal using a landline number. In this case, you need to follow the procedure below:

  • Install https://github.com/AsamK/signal-cli
  • Attempt a SMS verification process first (signal-cli -a PHONENUMBER register). You might get an error 400 (InvalidTransportModeException), this is normal.
  • After filling the captcha, the site doesn't immediately show the token but tries to redirect to a signalcaptcha:// url that contains the token.

  • After a short moment, a link will appear underneath the captcha called "Open Signal". Get the token by right clicking on it and clicking: copy url. You can paste that directly into

     signal-cli -u PHONENUMBER register --captcha CAPTCHACOPIEDURL
    

It should now register. Remember that the captcha has to be pretty fresh

@marczellm
marczellm / youtube_opener.py
Created March 27, 2019 21:20
Open Youtube links (vnd-youtube:) from Messenger on Windows
# -*- coding: utf-8 -*-
import sys
import webbrowser
import json
from urllib.parse import urlparse, unquote, parse_qs
vndurl = sys.argv[1].replace('vnd.youtube', 'https')
if vndurl.startswith('https://www.youtu') or vndurl.startswith('https://youtu'):
webbrowser.open(vndurl)
else:
@marczellm
marczellm / convert_locales.py
Created February 23, 2018 22:01
Convert Firefox extension locale files to WebExtension format
from pathlib import Path
from configparser import ConfigParser
import json
old = Path('locale')
new = Path('_locales')
class FakeSecHead:
def __init__(self, fp):
self.fp = fp
@marczellm
marczellm / pydesktopsearch.py
Last active April 28, 2018 19:41
Google Desktop replacement
import ctypes
import keyboard
import tkinter as tk
import urllib.parse
import webbrowser
from threading import Thread
class Wnd:
def __init__(self, hotkey_state):