Skip to content

Instantly share code, notes, and snippets.

View necessary129's full-sized avatar
🥲
feeling goofy lol

Shamil K Muhammed necessary129

🥲
feeling goofy lol
  • India
  • 08:02 (UTC +05:30)
View GitHub Profile
#!/usr/bin/env python3
import requests
import datetime
import pickle
import json
import os
from pathlib import Path
from bs4 import BeautifulSoup
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
I have lost access to the master key of this GPG key
and only have access to this key due to its subkeys
being on my Yubikey. I am going to revoke this key and
change my key to 0x17F2BD3413F1EBEF (3B8D 91CA 7BB4 DFA3 2BDA B48B 17F2 BD34 13F1 EBEF)
Please use that key. I cannot sign that key with this
key as I don't have access to the master key.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I have changed my GPG key to 0x067E17F795C2D561
Key fingerprint = 8B37 661F 500D 30FF EE2F 5215 067E 17F7 95C2 D561
As of today, Jun 17th 2021. I will be revoking this key in a few days.
Latest BTC Blockhash (height: 687967): 00000000000000000007e9b394509d8548ade08da694b94bcab4f25e4a3bc95e
@necessary129
necessary129 / upgrade-synapse
Last active May 4, 2019 17:07
Upgrades Synapse
#!/bin/bash
set -eu
RED='\e[0;31m'
BOLD='\e[1m'
GREEN='\e[32m'
NC='\e[0m'
problem=0
function er_msg {
@necessary129
necessary129 / matrix-synapse@.service
Last active November 23, 2021 20:52
Systemd service for synapse workers
[Unit]
Description=Matrix Synapse Worker %i
PartOf=matrix-synapse.service
[Service]
Type=simple
ExecStart=/usr/bin/python -B /path/to/synapse_worker.py -c /etc/matrix-synapse/homeserver.yaml -c /etc/matrix-synapse/conf.d/ -c /etc/matrix-synapse/workers/common.yaml -c /etc/matrix-synapse/workers/%i.yaml
User=matrix-synapse
WorkingDirectory=/var/lib/matrix-synapse
EnvironmentFile=/etc/default/matrix-synapse
Verifying my Blockstack ID is secured with the address 1E28uFGXXxwEBNn4Frjyemv5m9TQmrZgAA https://explorer.blockstack.org/address/1E28uFGXXxwEBNn4Frjyemv5m9TQmrZgAA
@necessary129
necessary129 / keybase.md
Created November 22, 2017 16:51
Keybase Proof

Keybase proof

I hereby claim:

  • I am necessary129 on github.
  • I am noteness (https://keybase.io/noteness) on keybase.
  • I have a public key ASBc2mqovxWlPVH8AVaOOQxN8NNKhuSAp2IVoR96j0aoRQo

To claim this, I am signing this object:

@necessary129
necessary129 / mod-encoder.py
Created June 12, 2016 08:52
Modular JSON Encoder. (With a register method for custom types)
# Copyright (c) 2016 Muhammed Shamil K
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR