Skip to content

Instantly share code, notes, and snippets.

View loftwah's full-sized avatar
💭
“Any sufficiently advanced technology is equivalent to magic.”

Dean Lofts loftwah

💭
“Any sufficiently advanced technology is equivalent to magic.”
View GitHub Profile

VPS Setup Script for Bun Applications

An automated setup script for deploying Bun applications on a VPS with Nginx reverse proxy, SSL, and PM2 process management.

Features

  • 🚀 One-command setup for Bun applications
  • 🔒 Automatic SSL certificate configuration via Let's Encrypt
  • 🔄 Nginx reverse proxy with optimized settings
  • 📊 PM2 process management
@usrbinkat
usrbinkat / README.md
Last active May 10, 2025 19:14
Ollama + Open-Webui + Nvidia/CUDA + Docker + docker-compose

image

UPDATE: This is tested and working on both Linux and Windows 11 used for LlaMa & DeepSeek

Here's a sample README.md file written by Llama3.2 using this docker-compose.yaml file that explains the purpose and usage of the Docker Compose configuration:

ollama-portal

A multi-container Docker application for serving OLLAMA API.

@joeldrapper
joeldrapper / keymap.json
Last active March 27, 2025 23:43
My Zed Config
[
{
"context": "Editor",
"bindings": {
"alt-up": "editor::SelectLargerSyntaxNode",
"alt-down": "editor::SelectSmallerSyntaxNode",
"ctrl-cmd-up": "editor::MoveLineUp",
"ctrl-cmd-down": "editor::MoveLineDown"
}
}
@alexrudall
alexrudall / #ChatGPT Streaming.md
Last active April 30, 2025 20:29
ChatGPT streaming with ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind!

How to add ChatGPT streaming to your Ruby on Rails 7 app!

This guide will walk you through adding a ChatGPT-like messaging stream to your Ruby on Rails 7 app using ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind. All code included below!

Want more content like this, for free? Check out my free book, RailsAI!

Alt Text

@gptkrsh
gptkrsh / readme.md
Created January 14, 2023 04:09
Hubber API Design

API Design

API

This is a draft on how we can design the API for EddieHubCommunity/LinkFree.

LinkFree consists of 4 main data models:

  1. User Profile
  2. User Link
@rssws
rssws / install-k8s-flannel-debian+ubuntu.bash
Last active June 28, 2024 06:55
Install k8s + flannel on debian / ubuntu for master / worker node
install_docker () {
distro=$(cat /etc/*-release | grep DISTRIB_ID | awk -F '=' '{print $2}' | awk '{print tolower($0)}')
distroList=("debian" "ubuntu")
if [[ -n "${distro}" ]]; then
if [[ " ${distroList[*]} " =~ " ${distro} " ]]; then
echo "Installing kubernetes on $distro"
else
echo "Upsupported system distro: ${distro}"
echo "<distro> must be one of: ${distroList[*]}"
@taskylizard
taskylizard / fmhy.md
Last active May 12, 2025 06:48
/r/freemediaheckyeah, in one single file (view raw)
@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active May 10, 2025 10:16
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-20 2238 UTC

Security Advisories / Bulletins / vendors Responses linked to Log4Shell (CVE-2021-44228)

Errors, typos, something to say ?

  • If you want to add a link, comment or send it to me
  • Feel free to report any mistake directly below in the comment or in DM on Twitter @SwitHak

Other great resources

  • Royce Williams list sorted by vendors responses Royce List
  • Very detailed list NCSC-NL
  • The list maintained by U.S. Cybersecurity and Infrastructure Security Agency: CISA List
// ==UserScript==
// @name GitHub - Header Sticky On Top
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Vic P. @ https://vic.onl/
// @match https://github.com
// @match https://github.com/*/*
// @match https://gist.github.com/*
// @exclude https://gist.github.com/*/*
@raghavmri
raghavmri / main.py
Created December 5, 2021 09:00
youtube_downloader_python
# importing the module
from pytube import YouTube, Playlist
from pathlib import Path
import os
# Global variables
file_size = 0
def main():