Skip to content

Instantly share code, notes, and snippets.

@jsleetw
jsleetw / fabfile.py
Created December 13, 2011 07:34 — forked from anonymous/gist:156623
fabric example
"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._
@jsleetw
jsleetw / update
Created December 16, 2011 05:04 — forked from hSATAC/update
git update hook
#!/bin/sh
# place in {repo}/.git/hooks/update
# chmod +x update
name="$1"
old="$2"
new="$3"
user_name=$(git log -1 --pretty=format:%aN $new)
#branch=$(git rev-parse --symbolic --abbrev-ref $1)
branch=${name#refs/heads/}
@jsleetw
jsleetw / install.sh
Created October 23, 2015 06:47
CentOS LAMP + 5.5, Laravel and Composer install script.
echo ">>> Starting install script"
sudo yum -y update
echo ">>> Installing Apache, MySQL and PHP"
sudo rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
sudo yum install -y nano git-core httpd php55w php55w-common php55w-mysql php55w-mcrypt php55w-gd
sudo yum install -y yum-plugin-replace
sudo yum replace -y mysql-libs --replace-with mysql55w-libs
sudo yum install -y mysql55w mysql55w-server
@jsleetw
jsleetw / gist:d5a0eb0f36aa78e0df89
Created December 9, 2015 04:28 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@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