Skip to content

Instantly share code, notes, and snippets.

View chewtoys's full-sized avatar
💙
<3

CHEWTOYS chewtoys

💙
<3
View GitHub Profile
Video tutorial of this gist file : https://www.youtube.com/watch?v=kmT-z2lqEPQ
Used commit hash id: a9eef1fbb1dcdce4f0eb0b8e0f79dcd4c96713e1
git checkout a9eef1fbb1dcdce4f0eb0b8e0f79dcd4c96713e1
git checkout master
video frame extract command
@chewtoys
chewtoys / StableDiffusion ControlNet OpenPose Template For Character Concept.md
Last active March 16, 2023 02:21
StableDiffusion ControlNet OpenPose Template For Character Concept

StableDiffusion ControlNet

OpenPose Template For Character Concept

Set Structure

  • In txt2img tab
  • Upload the OpenPose template to ControlNet
  • Check Enable and Low VRAM
  • Preprocessor: None
  • Model: control_sd15_openpose
  • Guidance Strength: 1
@chewtoys
chewtoys / polar.txt
Last active December 18, 2021 22:55
BLUEPRINT:0,32,2210,2206,2207,0,0,0,637744235844289295,0.8.23.9989,POWER%20Accumulator,"H4sIAAAAAAAAC+y9CbSP1Rf//3yGe83zHEWGyDxe1xD38/komlCpVMaS0qgylYrQNVYImTI1ISHjpUgjlSSpKFNCSIaSmfs7+9nnfPbbtfO9t/Vf//X7reWz1lnf9+3r9ex9pn2G5zzPE/A875RJW9PT07Ob/z0a8Lzm5n9J5/DMH2EjTqcX9hK8QJD/8+n0SuavYMjz8vt/tTZ/hcw/K+z/1cX8FU7wvDLmr2Pp07ycXkKi51Xy/1pj/krM5nmNzV9H0qsG8nnZzAVb+3+NNH9lT/e8Lp7nuxHwkvP4kjxYGc19pl/TQPeuS1GfSU+NUfo+WwXvBfMPTRbSjccBz/4CDG+MDvT6W1j0WQOetXANBQ4y3Alg1IuilAjOrcAhhtsBIHp/+sIoJYKDChzmNAPyLHr1y4NjlAhOtz8P4ASGa4Jl0duM1W3WcnbFciLDfQAWfc6A5yx8kwJnY/gmgEUfM+AxC+dU4OwM1wVYdMiUdMiW9lWBC+EcDLcBuA3U88LoWWs5r2I5J8OtARadYKwmWMs5FDgXw58BjHpwjBLBFRU4N8NdABBdwFgtYC0XVeA8DLcAWPQpk99TNs/ZFDgvw20BFp3bWM1tLYcUOB/DSwBeAo0kNXbO9qorFDg/w90BFn3auHzaup2iwAUYngvwXLW0r1Tgggy/DYDodONyunW7pAIXIjjojY/W/fv5ph9PyLPcM7rOi3lSnuha/oNvV6xO+z32UtLWbFW8WwzSzXTqYLqDA74ozNZXgXXRQeN20LruKdaLMFwoJjBqyfdjClyU4QfBsuhdprR32RJvocDFGD4BsOiAsRqwlh9X4OIMbwJ4k1riPRS4hMexLNbDS0kJrCqxBPXeL+vVoTQ9ezUMgp4rcfr7MrKe6O1IWZ2enhIYWaI+6lPBxVFKZP2oYr0ku/4muP6m2sbD
-------------------------------------------------------
//WARNINGS 1
if :TotalRods<1000000 then :TRod=0 goto 5 end
if :TotalRods<3000000 then :TRod=1 goto 5 end
if :TotalRods<6000000 then :TRod=2 goto 5 end
if :TotalBatteries<25000 then :TBat=0 goto 8 end
if :TotalBatteries<50000 then :TBat=1 goto 8 end
if :TotalBatteries<100000 then :TBat=2 goto 8 end
if :RadiationRate<50 then :RRate=2 goto 11 end
if :RadiationRate<75 then :RRate=1 goto 11 end
a=500 b=20 :FCL=:Gen_On+a-:Bat/b :FcuGM=(:Bat>2000)*100 goto 1+:MM
:FCL=100 goto 3-:MM
:FCL=100
d=600
:FcuGM=(:Bat>2000)*100 d-- if d>0 then goto 5 end goto 1+:MM
// :Gen_On - Button State Value On 55 - Off 0
// Battery / Only 1 Battery to :Bat all rest of batterys default
// Fuel Chamber / FuelChamberUnitRateLimit = FCL
// Fuel Chamber / FuelChamberFuel = R1 to R10 depends how many you have

Starbase Asteroid Scanner

n="\n" b="" c="ium" d="ite" e=" Ore" f=" Crystal"
ifnot :Scanner thengoto2end
ifnot :ScanResults then:Scan=1 goto3end :Materials=b :Volumes=b
if:Index>=:ScanResults thengoto6end :Scanner=0 g=:Material-c-d-e-f
:Materials+=n+g :Volumes+=n+:Volume/1728 :Index++ goto4
:Reset=1 goto2
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
// https://www.twitch.tv/videos/775515078
import fs from 'fs'
import { Asset, AssetType } from ''
import { Upload } from ''
import { encode } from 'blurhash'
import sharp from 'sharp'
const MAX_WIDTH = 1000
const MAX_HEIGHT = 1000

ed25519 is more secure than RSA.

ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "username@example.com"

You can disable PAM Authentication if they are using SSH Keys

UsePAM no

// MIT License
// Copyright (c) 2020 Szabolcs Gelencsér
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions: