Skip to content

Instantly share code, notes, and snippets.

View Param-Harrison's full-sized avatar
❤️
⚡Helping engineers go from AI demos → production 🚀 https://learnwithparam.com

Paramanantham Harrison Param-Harrison

❤️
⚡Helping engineers go from AI demos → production 🚀 https://learnwithparam.com
View GitHub Profile
@lucataco
lucataco / ollama_fast_speech_text_speech.py
Last active November 27, 2025 16:53
speech to text to speech using Ollama
""" To use: install Ollama, clone OpenVoice, run this script in the OpenVoice directory
brew install portaudio
brew install git-lfs
git lfs install
git clone https://github.com/myshell-ai/OpenVoice
cd OpenVoice
git clone https://huggingface.co/myshell-ai/OpenVoice
cp -r OpenVoice/* .
@FaridLU
FaridLU / deploy-django-production-ubuntu.md
Last active January 23, 2026 20:28
Comprehensive Guide to Deploying Django on Ubuntu (18.04, 20.04, 22.04)

🚀 Deploy Django on Ubuntu with Gunicorn, Nginx, Celery & SSL

The Complete Production Deployment Guide for Django Applications

Ubuntu Django Python License


@GavinRay97
GavinRay97 / index.md
Last active April 12, 2024 18:31
Hasura organization permissions

Introduction

This document outlines how to model a common organization-based permission system in Hasura. Let's assume that you have some table structure like the following:

Table Name Columns Foreign Keys
User id, name, email
Organization User id, user_id, organization_id user_id -> user.id, organization_id -> organization.id
Organization id, name
@BryceAMcDaniel
BryceAMcDaniel / getToken.ts
Created December 23, 2019 15:34
auth0 specific withApolloHOC for use with SSR in next.js.
import auth0 from '../../lib/Auth0/config';
export default async function session(req, res) {
try {
// console.log(req);
const { accessToken } = await auth0.getSession(req);
if (accessToken) res.send(accessToken);
res.status(500).end(accessToken);
} catch (error) {
@ivaravko
ivaravko / terraform-kubernetes-docker-macos.md
Last active November 10, 2024 03:55
The simple Terraform and Kubernetes with Docker on macOS

If you'd like to experiment with Terraform and Kubernetes on macOS locally, a great provider for doing so is the Kubernetes provider. You can get set up in a few simple steps, like so:

1. Install Docker

Install Docker for Mac if you have not already.

@ibraheem4
ibraheem4 / postgres-brew.md
Last active March 18, 2026 07:26
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@joshnuss
joshnuss / app.js
Last active November 4, 2025 22:39
Express.js role-based permissions middleware
// the main app file
import express from "express";
import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db)
import authenticate from "./authentication"; // middleware for doing authentication
import permit from "./authorization"; // middleware for checking if user's role is permitted to make request
const app = express(),
api = express.Router();
// first middleware will setup db connection
cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git
@mgmilcher
mgmilcher / gist:5eaed7714d031a12ed97
Last active March 28, 2023 14:53
Nginx, PHP-FPM, MySQL and phpMyAdmin on OS X

This is my take on how to get up and running with NGINX, PHP-FPM, MySQL and phpMyAdmin on OSX Yosemite.

This article is adapted from the original by Jonas Friedmann. Who I just discovered is from Würzburg in Germany. A stonesthrow from where I was born ;)

Xcode

Make sure you have the latest version of XCode installed. Available from the Mac App Store.

Install the Xcode Command Line Tools:

xcode-select --install

@gustavohenke
gustavohenke / svg2png.js
Created February 18, 2014 15:27
SVG to PNG
var svg = document.querySelector( "svg" );
var svgData = new XMLSerializer().serializeToString( svg );
var canvas = document.createElement( "canvas" );
var ctx = canvas.getContext( "2d" );
var img = document.createElement( "img" );
img.setAttribute( "src", "data:image/svg+xml;base64," + btoa( svgData ) );
img.onload = function() {