Skip to content

Instantly share code, notes, and snippets.

View devniel's full-sized avatar
🐲
hacking

Daniel Flores devniel

🐲
hacking
View GitHub Profile
@devniel
devniel / webui.sh
Last active December 29, 2023 14:44
stable-diffusion-webui /webui.sh without GIT requirement (for who can´t install git and doesnt have sudo permissions)
#!/usr/bin/env bash
#################################################
# Please do not make any changes to this file, #
# change the variables in webui-user.sh instead #
#################################################
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# If run from macOS, load defaults from webui-macos-env.sh
@devniel
devniel / main.py
Created July 11, 2024 16:49
Remove twitter bot followers
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.connect_over_cdp("http://localhost:9222")
default_context = browser.contexts[0]
page = default_context.pages[0]
page.goto("https://x.com/devniel/followers")
page.wait_for_timeout(1000)
items = page.get_by_test_id("cellInnerDiv").all()
print(len(items))
{
"last_node_id": 120,
"last_link_id": 228,
"nodes": [
{
"id": 53,
"type": "Reroute",
"pos": [
440,
-20
@devniel
devniel / image_to_video_svd_workflow.json
Created August 24, 2024 15:19
Image to Video - SVD - ComfyUI Workflow UI
{
"last_node_id": 25,
"last_link_id": 44,
"nodes": [
{
"id": 14,
"type": "VideoLinearCFGGuidance",
"pos": [
487.799932861328,
265.6999450683599
@devniel
devniel / image_to_video_svd_api_workflow.json
Created August 24, 2024 15:21
Clapper - Image to Video SVD Api Workflow (with Load Image From Base 64)
{
"3": {
"inputs": {
"seed": 524650296754258,
"steps": 20,
"cfg": 2.5,
"sampler_name": "euler",
"scheduler": "karras",
"denoise": 1,
"model": [