Skip to content

Instantly share code, notes, and snippets.

@lucianoratamero
lucianoratamero / README.md
Last active April 29, 2024 07:08
Using Vite with Django, the simple way

Using Vite with Django, the simple way

Warning

I'm surely not maintaining this as well as I could. There are also other possible, better integrated solutions, like django-vite, so keep in mind this was supposed to be more of a note to myself than anything :]

This gist has most of the things I've used to develop the frontend using vite inside a monolithic django app.

Here's a boilerplate that uses this approach: https://github.com/labcodes/django-react-boilerplate

A couple of things to note:

@rschuetzler
rschuetzler / SYSK Band names.md
Last active February 18, 2023 01:10
A list of potential band names mentioned in the Stuff You Should Know Podcast

I started this list way too late, so I know I'm missing most of them. Please submit others you know of so we can complete the list.

  • Tub of Pulp (2017-06-22 - How Ketchup Works)
  • Charismatic Megafauna (2017-05-11 - How Charismatic Megafauna Work)
  • Itch-Scratch Cycle (2017-05-09 - How Itching Works)
  • Worm Burden (2017-03-16 - Southerners Aren't Lazy and Dumb, They Just Had Hookworm)
  • Force Multiplier
  • Indian Territory (2017-03-07? - History of the Trail of Tears, Part I)
  • Winner's Bitch (2012-12-27 - How Dog Shows Work)
  • Extraordinary Rendition (2010-06-22 - How Ghost Prisons Work)
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active April 25, 2024 02:01
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

#/etc/init/no-ip.conf
#upstart service for noip2
description "No-IP Linux Dynamic Update Client (DUC)"
author "No-IP <webmaster@no-ip.com>"
# When to start the service
start on runlevel [2345]
# When to stop the service