Skip to content

Instantly share code, notes, and snippets.

@ingeniumstudio
ingeniumstudio / jupyter-lab-build-memory.md
Created March 15, 2025 14:25
How to build jupyter lab assets without running out-of-memory

How to build jupyter lab assets without running out-of-memory

  1. Limit the amount of memory used with
export NODE_OPTIONS='--max_old_space_size=2096'
  1. Build
@mukaschultze
mukaschultze / arch.md
Last active February 18, 2025 14:20
Free Arch Linux on GCP
@LorbusChris
LorbusChris / MatrixIRC.md
Last active December 30, 2022 19:27
Matrix libera.chat IRC Bridge Setup

Matrix libera.chat IRC Bridge Setup

Change libera.chat IRC Nick

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!

@azagniotov
azagniotov / beautiful.rest.api.docs.in.markdown.md
Last active June 12, 2025 01:10
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.
@LukeSmithxyz
LukeSmithxyz / colors.muttrc
Created April 17, 2019 13:19
Mutt example colors
# 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"
@Integralist
Integralist / .muttrc
Last active April 12, 2024 19:26
Mutt configuration and usage
# 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]"
@cschwede
cschwede / sample_ssh_server.py
Last active October 21, 2024 12:35
Sample paramiko SSH server to receive commands
#!/usr/bin/env python
import logging
import socket
import sys
import threading
import paramiko
logging.basicConfig()
logger = logging.getLogger()
@robbyrussell
robbyrussell / mary-had-a-little-lamb.rb
Created December 4, 2015 23:20
Playing around with SoX
#!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)
@IanHopkinson
IanHopkinson / lxml_examples.py
Created November 24, 2015 19:42
Examples of xpath queries using lxml in python
#!/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">
@eliasdorneles
eliasdorneles / play_notes.py
Last active May 14, 2020 01:55
Playing notes with sox
import subprocess
import time
def wait(seconds):
time.sleep(seconds)
def play_note(note='C', duration=4, delay=0):
# requires sox to be installed