Skip to content

Instantly share code, notes, and snippets.

View ALEXOTANO's full-sized avatar
🎯
Focusing

Alex Otano ALEXOTANO

🎯
Focusing
View GitHub Profile
@ALEXOTANO
ALEXOTANO / devcontainer.json
Last active March 23, 2024 02:22
Devcontainer json confing file with arguments to run with GPUs and needed extensions
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "AudioGen",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": [
// GPUs disponibles
"--gpus=all",
@ALEXOTANO
ALEXOTANO / alex-preset-lora-training.json
Created October 22, 2023 00:44
Lora Training Preset
{
"LoRA_type": "Standard",
"adaptive_noise_scale": 0,
"additional_parameters": "",
"block_alphas": "",
"block_dims": "",
"block_lr_zero_threshold": "",
"bucket_no_upscale": true,
"bucket_reso_steps": 64,
"cache_latents": true,
@ALEXOTANO
ALEXOTANO / changeName.ps1
Created September 16, 2023 18:39
Change names of files in a directory base on date
$directoryPath = "D:\projects\ai\assets\out"
$files = Get-ChildItem -Path $directoryPath | Sort-Object CreationTime
$i = 1
foreach ($file in $files) {
# Get the file extension
$fileExtension = $file.Extension
@ALEXOTANO
ALEXOTANO / stable-difusion-styles.csv
Last active April 28, 2024 12:06
List of Styles for Stable Difusion
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
name,prompt,negative_prompt
"Style: Enhance","breathtaking {prompt} . award-winning, professional, highly detailed","ugly, deformed, noisy, blurry, distorted, grainy"
"Style: Anime","anime artwork {prompt} . anime style, key visual, vibrant, studio anime, highly detailed","photo, deformed, black and white, realism, disfigured, low contrast"
"Style: Photographic","cinematic photo {prompt} . 35mm photograph, film, bokeh, professional, 4k, highly detailed","drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly"
"Style: Digital art","concept art {prompt} . digital artwork, illustrative, painterly, matte painting, highly detailed","photo, photorealistic, realism, ugly"
"Style: Comic book","comic {prompt} . graphic illustration, comic art, graphic novel art, vibrant, highly detailed","photograph, deformed, glitch, noisy, realistic, stock photo"
"Style: Fantasy art","ethereal fantasy concept art of {prompt} . magnificent, celestial, ethereal, painterly, epic, majestic, magic
@ALEXOTANO
ALEXOTANO / Readme.md
Created July 12, 2021 01:54 — forked from peteristhegreat/Readme.md
Realtek bluetooth usb adapter RTL8671b
@ALEXOTANO
ALEXOTANO / windows-wsl-cronjob-startup.md
Created July 5, 2021 13:07
Execute WSL Ubuntu cronjob at windows startup

Create a shortcut to

C:\Windows\System32\wsl.exe sudo /etc/init.d/cron start

and add that shortcut to startup folder (run shell:startup)

@ALEXOTANO
ALEXOTANO / medium.json.whole.thing2.json
Last active May 1, 2021 23:34
medium.json.whole.thing2
{
"data": {
"customer": { …
},
"arrivingAt": "2021–03–25T21:10:41.221Z",
"order": "2021–03–25T21:10:41.221Z",
"total": 30.00,
"currency": "USD",
"status": "shipped"
@ALEXOTANO
ALEXOTANO / medium.json.whole.thing1.json
Created May 1, 2021 23:32
medium.json.whole.thing1
{
"data": [
{
"links": {
"self": {
"href": "/orders/123"
}
},
"total": 30.00,
"currency": "USD",
@ALEXOTANO
ALEXOTANO / medium.json.links.rel.on.key2.json
Created May 1, 2021 23:28
medium.json.links.rel.on.key2
@ALEXOTANO
ALEXOTANO / medium.json.links.rel.on.key.json
Created May 1, 2021 23:27
medium.json.links.rel.on.key