- Limit the amount of memory used with
export NODE_OPTIONS='--max_old_space_size=2096'
- Build
| #!/usr/bin/env python | |
| """Extract the public key from the private key and write to a file. | |
| """ | |
| from Crypto.Hash import SHA256 | |
| from Crypto.Signature import PKCS1_v1_5 | |
| from Crypto.PublicKey import RSA | |
| with open("private_key.pem", "r") as src: | |
| private_key = RSA.importKey(src.read()) |
If you want to learn more about this image check out its GitHub repo
Download and setup gcloud SDK on your machine.
Create a new instance with the following settings:
This is optional, in case you prefer your nick to be shown as something other than <matrix_nick>[m] on IRC, e.g. just <matrix_nick> (without the [m] suffix) or <libera_nick>.
Open a private chat with @appservice:libera.chat:
!nick <new_libera_nick>
Note: This does not change your Matrix nick!
| # vim: filetype=neomuttrc | |
| # Default index colors: | |
| color index yellow default '.*' | |
| color index_author red default '.*' | |
| color index_number blue default | |
| color index_subject cyan default '.*' | |
| # For new mail: | |
| color index brightyellow black "~N" | |
| color index_author brightred black "~N" |
| # http://www.mutt.org/doc/manual/ | |
| # decrypt passwords | |
| source "gpg -d ~/.mutt/passwords.gpg |" | |
| # Change the following six lines to match your Gmail account details | |
| set imap_user = "[email protected]" | |
| set smtp_url = "smtp://[email protected]@smtp.gmail.com:587/" | |
| set smtp_authenticators = "gssapi:login" | |
| set from = "[email protected]" |
| #!/usr/bin/env python | |
| import logging | |
| import socket | |
| import sys | |
| import threading | |
| import paramiko | |
| logging.basicConfig() | |
| logger = logging.getLogger() |
| #!env ruby | |
| # | |
| # brew install sox | |
| # | |
| def play(note, octave=1) | |
| "play -q -n synth sq #{note}#{octave} remix - fade 0 .6 .1 norm; " | |
| end | |
| song_notes = %w(B A G A B B B A A A G D D B A G A B B B B A A B A G) |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| import lxml.etree | |
| import lxml.html | |
| import requests | |
| xml_sample = """<?xml version="1.0" encoding="UTF-8"?> | |
| <foo:Results xmlns:foo="http://www.foo.com" xmlns="http://www.bah.com"> | |
| <foo:Recordset setCount="2"> |