Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# power by https://github.com/YouHack/
# Install the script
# crontab -e
# 1 1 * * * /home/user/shell_script/backup.sh >/dev/null 2>&1
#set up account
THESITE='www.backuphero'
THEDB='superBigDB'
sudo dd if=/dev/zero of=/var/swapfile bs=1M count=2048 &&
sudo chmod 600 /var/swapfile &&
sudo mkswap /var/swapfile &&
echo /var/swapfile none swap defaults 0 0 | sudo tee -a /etc/fstab &&
sudo swapon -a
find . -regextype posix-extended -regex ".*-[[:digit:]]{1,9}x[[:digit:]]{1,9}(@2x)?.(jpg|jpeg|png|eps|gif)" -type f -exec rm {} \;
grep -r -l 'far fa-minus' . | sort | uniq | xargs perl -e "s/far fa-minus//" -pi
@jsleetw
jsleetw / disco_v5_plus_Win_Install.md
Created June 12, 2023 10:55 — forked from MSFTserver/disco_v5_plus_Win_Install.md
guide to installing disco v5+ locally on windows

Install Disco Diffusion v5 for Windows

NOTE: Pytorch3d no longer has to be compiled i have stripped out the function we use to make this a lot easier and also so we do not have to use WSL2 with linux and can now run directly on your windows system.

Comments section is not checked often for issues please join the disco diffusion discord for assistance

https://discord.gg/mK4AneuycS

You may now use the official disco diffusion notebook with this tutorial as it has been uodated to reflect the changes here for better cross platform support