- Open the notebook in Colab. https://t.co/mWNkzWtPsK
- Run the notebook until you get the following error: FileNotFoundError: [Errno 2] No such file or directory: '/content/drive/MyDrive/AI/models/sd-v1-4.ckpt'
- Gain access to the Stable Diffusion weights on HuggingFace https://huggingface.co/CompVis/stable-diffusion-v-1-4-original
- Download the Stable Diffusion weights - the "sd-v1-4.ckpt" file.
- Upload the "sd-v1-4.ckpt" file to the "AI/models/" directory on Google Drive.
- Restart and run the notebook.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias li = "d=`date "+%Y-%m-%d"`;display "~/Pictures/*$d*.png";" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Author: Jesse Wood | |
# Date: 2021-09-25 | |
# | |
# This script kills processes on the 3000 port. | |
# The default port for running react applications. | |
# Get the pid for processes running on port 3000. | |
id=`lsof -i tcp:3000 | grep '*:3000' | cut -d " " -f 5` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
truncate -s-2 filename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DIR=`pwd` | |
FILE=$1 | |
if grep -q '\.' "$FILE"; then | |
FILE=`echo "${FILE}" | awk '{ print substr ($0, 3 ) }'` | |
fi | |
FULL_PATH="${DIR}/${FILE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e "\n------------\nBEGIN FILE:\n------------\n" | |
cat "${FULL_PATH}" # Print the file to the terminal (nicely). | |
echo -e "\n------------\nEnd FILE:\n------------\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Argument to hold the script. | |
if [[ "$2" == "hold" ]]; then | |
echo "Hold the Door!" | |
read | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Monad | |
import Data.List | |
type Element = String | |
type Powerset = String | |
format :: String -> String | |
format s = "{" ++ s ++ "}" | |
powerset :: [Element] -> Powerset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
CURRENT=8 | |
CHECKED=" " | |
for DAY in {1..31} | |
do | |
if [[ $DAY -le $CURRENT ]]; then | |
CHECKED="x" | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make: *.tex | |
latexmk -c | |
latexmk -pdf *.tex | |
latexmk -c |