Skip to content

Instantly share code, notes, and snippets.

View mfts's full-sized avatar
🎯
Focusing on open source

Marc Seitz mfts

🎯
Focusing on open source
View GitHub Profile
@mfts
mfts / tea-rfc1.md
Last active February 20, 2023 12:50
RFC: Dependency Manager Install Location

Motivation

One of the core benefits of tea: it's relocatable. tea does not pollute your system environment, everything gets "installed" in a relocatable folder ~/.tea.

tea can also install languages like node and ruby and it's dependency managers, npm and gem, respectively. However, these language dependency managers install packages to global directories like ~/.npm and ~/.gem. Tools from these ecosystems expect to find packages in these locations.

In this RFC, we would love to hear feedback from the community.

@mfts
mfts / happy-new-year.ts
Created December 31, 2022 18:16
Happy New Year 2023
console.log("%cHappy New Year from @mfts0 🎉", "color: red");
@mfts
mfts / tea-packaging.md
Last active December 26, 2022 16:14
Packaging docs for tea

tea

tea pantry overview

What is a Pantry?

Pantries provide consistent metadata about open source packages. This metadata shouldn’t require manual collection, but at this current state in open source it does.

It is collected and duplicated thousands of times. A huge waste of effort.

@mfts
mfts / tea-commands.md
Last active December 22, 2022 13:10
tea commands

Helpful commands for tea/cli

Install tea/cli

sh <(curl https://tea.xyz)

Check currently installed stowed packages

ls ~/.tea
@mfts
mfts / package.yml
Created December 8, 2022 14:02
tea minimal package.yml
distributable:
url: https://example.org/download/{{version}}/src.tar.gz
strip-components: 1
versions:
- 1.0.0
build:
script: |
touch "{{prefix}}"/example
@mfts
mfts / app.json
Last active April 4, 2024 13:38
Setup Heroku Review App with Cloudflare DNS
{
"environments": {
"review": {
"scripts": {
"postdeploy": "bundle exec rake heroku:review_app_setup",
"pr-predestroy": "bundle exec rake heroku:review_app_predestroy"
}
}
}
}
@mfts
mfts / automate-letsencrypt-heroku
Last active December 28, 2022 11:33
Automate Lets Encrypt certificate generation for Heroku via Server
apt update
# install acme.sh
curl https://get.acme.sh | sh
# install heroku-cli
apt install snapd
sudo snap install --classic heroku
heroku login --interactive
@mfts
mfts / install-docker.sh
Last active December 11, 2020 13:17
Install Docker Bash Script
#!/bin/bash
adduser sdui
usermod -aG sudo sdui
apt update
apt install ufw
ufw allow OpenSSH
ufw allow 10000/udp
ufw allow 4443/tcp
@mfts
mfts / cert.sh
Created June 3, 2020 08:58
Let's Encrypt for Wildcard Domains with Heroku and Cloudflare
#!/bin/sh
set -e
# NEEDS THE FOLLOWING VARS IN ENV:
# DOMAIN
# CLOUDFLARE_EMAIL
# CLOUDFLARE_API_KEY
# HEROKU_APP
# Download dependencies
@mfts
mfts / sidekiq_monitoring
Created May 24, 2020 22:50 — forked from ngsmrk/sidekiq_monitoring
Sidekiq queue checking via rails console
stats = Sidekiq::Stats.new
stats.queues
stats.enqueued
stats.processed
stats.failed