Skip to content

Instantly share code, notes, and snippets.

View super3's full-sized avatar

Shawn Wilkinson super3

View GitHub Profile
model:
base_learning_rate: 1.0e-4
target: ldm.models.diffusion.ddpm.LatentDiffusion
params:
parameterization: "v"
linear_start: 0.00085
linear_end: 0.0120
num_timesteps_cond: 1
log_every_t: 200
timesteps: 1000
@super3
super3 / gist:9681fa38c1d0cdbd07d5cce109a5a40c
Last active October 19, 2022 14:25
Install Stable Diffusion
sudo apt-get update
sudo apt-get upgrade -y
sudo apt install wget git python3 python3-venv rtorrent -y
bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh)
@super3
super3 / default
Last active November 19, 2019 15:04
Node App Setup
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
@super3
super3 / github_repos.sh
Last active September 3, 2020 20:33
Github Archive
#!/bin/bash
function users_from_file() {
# TODO: check rate limit
limit=$(curl -s "https://api.github.com/rate_limit" | jq -c '.rate.limit');
remaining=$(curl -s "https://api.github.com/rate_limit" | jq -c '.rate.remaining');
reset_time=$(curl -s "https://api.github.com/rate_limit" | jq -c '.rate.reset');
now=$(date +%s);
jq -r '.actor_login' $1 | while read user; do
echo "Github API Requests: ${remaining}/${limit}";
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://cdimage.ubuntu.com
for dir in $(find /mnt/volume_nyc3_02/cdimage.ubuntu.com -type d); do
rm $dir/index.html?*
done
@super3
super3 / .tmux.conf
Last active October 4, 2019 17:54
Linux Default
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Other examples:
@super3
super3 / .tmux.conf
Created April 26, 2019 20:13
~/.tmux.conf
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
@super3
super3 / readme.md
Last active July 21, 2020 11:03 — forked from jimmywarting/readme.md
Cors Proxies
Server SSL Metods Server country code Comments
[YaCDN][1] GET EU Unlimited size and unlimited requests (for now)
[crossorigin.me][2] GET US Require Origin header
2MB size limit
[cors-proxy.htmldriven][3] - CZ JSON response
don't work well with binary
[cors-proxy.taskcluster][4] POST US Only witelisted to taskcluster.net
Can send any header/method
[thingproxy][9] ANY US Limited to 100kb for both upload and download, max 10 req/sec
[whateverorigin][10] GET US Only supports JSONP
[cors.io][11] GET, HEAD US Only supports GET and HEAD request
[gobetween][12] GET US Only supports GET requests
@super3
super3 / benchmark.txt
Created December 4, 2018 17:16
Mixtape.Moe Tests
super3@Book2:~/transfer.sh$ wget https://my.mixtape.moe/hwxzlz.mp4
Will not apply HSTS. The HSTS database must be a regular and non-world-writable file.
ERROR: could not open HSTS store at '/home/super3/.wget-hsts'. HSTS will be disabled.
--2018-12-04 12:14:22-- https://my.mixtape.moe/hwxzlz.mp4
Resolving my.mixtape.moe (my.mixtape.moe)... 206.81.100.99
Connecting to my.mixtape.moe (my.mixtape.moe)|206.81.100.99|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21563437 (21M) [video/mp4]
Saving to: ‘hwxzlz.mp4’