Skip to content

Instantly share code, notes, and snippets.

{:phoenix_playground, "~> 0.1.0"},
{:openai, "~> 0.6.1"}
config: [
openai: [
api_key: System.get_env("OPENAI_API_KEY"),
organization_key: System.get_env("OPENAI_ORGANIZATION_KEY")
rmoorman /
Created April 8, 2024 18:29 — forked from Hakky54/
Some list of openssl commands for check and verify your keys

OpenSSL 🔐


Install the OpenSSL on Debian based systems

sudo apt-get install openssl
rmoorman / .iex.exs
Created April 2, 2024 14:37 — forked from brainlid/.iex.exs
My .iex.exs file that lives in my Home directory. Gets loaded and used in every IEx session on my machines. I borrowed and stole all the great ideas from others an tweaked them over the years.
Application.put_env(:elixir, :ansi_enabled, true)
# IEx shell customization for color
# - Added as a comment:
# - Original source:
# - Can add to a specific project or can put in the User home folder as a global config.
# Updates from:
# -
timestamp = fn ->
{_date, {hour, minute, _second}} = :calendar.local_time
rmoorman /
Created April 2, 2024 09:34 — forked from saissemet/
Apache website with self signed certificates
sudo apt update && sudo apt upgrade -y
sudo apt install apache2 -y
sudo apt install easy-rsa -y
cd /usr/share/easy-rsa
sudo ./easyrsa init-pki
yes "" | sudo ./easyrsa build-ca nopass
rmoorman /
Last active May 18, 2024 20:38
A small Zod schema to Antd Form adapter

A small Zod schema to Antd Form adapter


  • react hook form and it's zod integration is a better way IMHO (
  • Might only work in Antd v4
  • Don't add rules on the schema related Form.Item components.
  • Might not do everything you need (e.g. async?)
  • May have bugs. But what doesn't 🤣
rmoorman /
Created November 16, 2023 22:22 — forked from phrawzty/
simple python http server to dump request headers
#!/usr/bin/env python2
import SimpleHTTPServer
import SocketServer
import logging
PORT = 8000
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
rmoorman /
Created November 6, 2023 14:28 — forked from StevenACoffman/
Fluentd Fluent-bit FileBeat memory and cpu resources

Fluent-bit rocks

A short survey of log collection options and why you picked the wrong one. 😜

Who am I? Where am I from?

I'm Steve Coffman and I work at Ithaka. We do JStor (academic journals) and other stuff. How big is it?

Number what it means
101,332,633 unique visitors in 2017
#!/usr/bin/env bash
# `cut` is used to cut out the separators (:, @, /) that come matched with the groups.
DATABASE_USER=$(echo $DATABASE_URL | grep -oP "postgres://\K(.+?):" | cut -d: -f1)
DATABASE_PASSWORD=$(echo $DATABASE_URL | grep -oP "postgres://.*:\K(.+?)@" | cut -d@ -f1)
DATABASE_HOST=$(echo $DATABASE_URL | grep -oP "postgres://.*@\K(.+?):" | cut -d: -f1)
DATABASE_PORT=$(echo $DATABASE_URL | grep -oP "postgres://.*@.*:\K(\d+)/" | cut -d/ -f1)
rmoorman /
Created September 4, 2023 12:25 — forked from veekaybee/
Normcore LLM Reads
rmoorman / .pylintrc
Created October 26, 2022 21:03 — forked from joepreludian/.pylintrc
Pylint rc file template for django projects. Ignores migrations and test suites.
persistent=yes,, migrations
# C0111 Missing docstring
# I0011 Warning locally suppressed using disable-msg
# I0012 Warning locally suppressed using disable-msg