Skip to content

Instantly share code, notes, and snippets.

View michelcrypt4d4mus's full-sized avatar

Michel de Cryptadamus michelcrypt4d4mus

View GitHub Profile
@michelcrypt4d4mus
michelcrypt4d4mus / URLShortener.py
Created May 25, 2024 15:13 — forked from Justasic/URLShortener.py
Actually URLShortener.tac but no syntax highlighting. This is an entire website for storing and redirecting URLs in a simple way. Post JSON to the site and it stores it, give someone a link and it redirects them.
#!/usr/bin/twistd3 -noy
import sqlite3, json, os
from twisted.application import service, internet
from twisted.web import static, server, proxy
from twisted.internet import reactor
from twisted.python import log
from klein import Klein
@michelcrypt4d4mus
michelcrypt4d4mus / brian-armstrong-deleted.md
Created July 10, 2023 15:34 — forked from travisbrown/brian-armstrong-deleted.md
Deleted tweets by Brian Armstrong, CEO of Coinbase

Deleted tweets for brian_armstrong

The list below includes 675 deleted tweets by brian_armstrong.

This report was generated by ✨cancel-culture✨, an open source project by Travis Brown.

You can create your own updated version of this document by checking out and configuring the repository and then running the following commands:

@michelcrypt4d4mus
michelcrypt4d4mus / MCB 2023-06-01 SEC filing embedded UUencoded "Financial_Report.xlsx".txt
Last active June 2, 2023 01:13
MCB 2023-06-01 SEC filing embedded UUencoded "Financial_Report.xlsx".txt
here's what's in the .htm file you can pull from the SEC's site (the one that breaks the SEC's app).
FWIW I also tried replacing the final emptyline/end with `/end because that is more standard.
after that i also tried replacing all the spaces with backticks because that is also more standard.
i have also verified that all the characters are within the limited set used for uuencoding.
see https://en.wikipedia.org/wiki/Uuencoding for more on uuencoding.
my current best guess is there's something wrong with the padding for the final few bytes but i could
easily be wrong...
@michelcrypt4d4mus
michelcrypt4d4mus / coinswap-design.md
Created March 29, 2023 03:44 — forked from chris-belcher/coinswap-design.md
Design for a CoinSwap Implementation for Massively Improving Bitcoin Privacy and Fungibility

Design for a CoinSwap Implementation for Massively Improving Bitcoin Privacy and Fungibility

25/5/2020

Abstract

Imagine a future where a user Alice has bitcoins and wants to send them with maximal privacy, so she creates a special kind of transaction. For anyone looking at the blockchain her transaction appears completely normal with her coins seemingly going from address A to address B. But in reality her coins end up in address Z which is entirely unconnected to either A or B.

Now imagine another user, Carol, who isn't too bothered by privacy and sends her bitcoin using a regular wallet which exists today. But because Carol's transaction looks exactly the same as Alice's, anybody analyzing the blockchain must now deal with the possibility that Carol's transaction actually sent her coins to a totally unconnected address. So Carol's privacy is improved even though she didn't change her behaviour, and perhaps had never even heard of this software.

@michelcrypt4d4mus
michelcrypt4d4mus / Dockerfile
Created October 30, 2022 11:39 — forked from saggie/Dockerfile
Simple SSH daemon container allowing root login with empty password.
FROM ubuntu:16.04
# Install sshd
RUN apt-get update
RUN apt-get install -y openssh-server
# Modify `sshd_config`
RUN sed -ri 's/PermitEmptyPasswords no/PermitEmptyPasswords yes/' /etc/ssh/sshd_config
RUN sed -ri 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -ri 's/^UsePAM yes/UsePAM no/' /etc/ssh/sshd_config