Skip to content

Instantly share code, notes, and snippets.

View therg's full-sized avatar

Ryan Griffin therg

View GitHub Profile
@Kaligraphy247
Kaligraphy247 / run-tailwindcss.py
Last active August 5, 2024 22:34
Tailwindcss starter script for FastHTML
# httpx is a required dependency for FastHTML, feel free to substitute for something else.
import httpx
import os
import platform
# Constants and Variables
NAME = ""
CACHE_PATH = ".tailwindcss"
INPUT_CSS_FILE = f"{CACHE_PATH}/input.css"
OUTPUT_CSS_FILE = "static/css/style.css"
@leodutra
leodutra / -setup-windows-wsl-devenv.md
Last active April 8, 2025 13:28
Install and Setup Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font

Setup Windows Subsystem 2 for Linux

Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font

To setup native Linux, see this gist

Preview

Requirements

@noelboss
noelboss / git-deployment.md
Last active May 5, 2025 08:21
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active January 9, 2025 12:22
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files: