Skip to content

Instantly share code, notes, and snippets.

View pringlized's full-sized avatar

Jim Pringle pringlized

View GitHub Profile
@pringlized
pringlized / how-to-use-pelican.md
Created November 11, 2023 06:51 — forked from JosefJezek/how-to-use-pelican.md
How to use Pelican on GitHub Pages
@pringlized
pringlized / gist:9acf8b6cc04ca0f0fb93aa90d1e69fb1
Last active November 28, 2023 02:00 — forked from mberman84/gist:9e008131d96af27256cc9cb53ad834cf
CodeLLaMA Installation - Windows & WSL2
#
# I have successfully run this with Anaconda on Windows directly & on WSL2/Ubuntu 22.04 with MiniConda
#
# Make sure you have Anaconda installed
# This tutorial assumes you have an Nvidia GPU, but you can find the non-GPU version on the Textgen WebUI github
# More information found here: https://github.com/oobabooga/text-generation-webui
# Make sure you have the CUDA 11.8 & cuDNN 11.x installed
# CUDA Toolkit 11.8: https://developer.nvidia.com/cuda-18-7-0-download-archive
on open (theList)
-- I found these extensions for video files here
-- we can check the file extensions of a file against this list to evaluate if it's a video file
set video_ext_list to {"3g2", "3gp", "3gp2", "3gpp", "3mm", "60d", "aep", "ajp", "amv", "asf", "asx", "avb", "avi", "avs", "bik", "bix", "box", "byu", "cvc", "dce", "dif", "dir", "divx", "dv", "dvr-ms", "dxr", "eye", "fcp", "flc", "fli", "flv", "flx", "gl", "grasp", "gvi", "gvp", "ifo", "imovieproject", "ivf", "ivs", "izz", "izzy", "lsf", "lsx", "m1v", "m2v", "m4e", "m4u", "m4v", "mjp", "mkv", "moov", "mov", "movie", "mp4", "mpe", "mpeg", "mpg", "mpv2", "msh", "mswmm", "mvb", "mvc", "nvc", "ogm", "omf", "prproj", "prx", "qt", "qtch", "rm", "rmvb", "rp", "rts", "sbk", "scm", "smil", "smv", "spl", "srt", "ssm", "svi", "swf", "swi", "tivo", "ts", "vdo", "vf", "vfw", "vid", "viewlet", "viv", "vivo", "vob", "vro", "wm", "wmd", "wmv", "wmx", "wvx", "yuv"}
-- notice the use of "entire contents" to also go through subfolders of f
-- use a "whose" f
@pringlized
pringlized / DbmigrateController.php
Last active August 29, 2015 14:15 — forked from bruceoutdoors/DbmigrateController.php
MySQL database script for full schema migrations in Laravel 5. Unlike the gist this was forked from, this script will write out each table to an individual file.
<?php namespace App\Http\Controllers;
/* * **
*
* MySQL database script for full schema migrations in Laravel 5.
*
* 1. Place this file inside app/Http/controllers/
*
* 2. In this file, edit the index() method to customize this script to your needs.
* - inside $migrate->ignore(), you pass in an array of table