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 / 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": [
@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
{
"last_node_id": 120,
"last_link_id": 228,
"nodes": [
{
"id": 53,
"type": "Reroute",
"pos": [
440,
-20
@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))
@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 / Dockerfile
Created September 20, 2023 11:45
Install Vertica 23.3.0-3 in Docker
FROM ubuntu:22.04
RUN apt-get update -q -y && apt-get install -q -y \
openssl \
openssh-server \
openssh-client \
pstack \
sysstat \
rasdaemon \
dialog \
sudo apt-get install rasdaemon psstack sysstat
sudo /opt/vertica/sbin/install_vertica -s localhost -r vertica_23.3.0-3_amd64.deb -u dbadmin -g dbadmin -d /home/dbadmin -p vertica -L /opt/vertica/config/licensing/vertica_community_edition.license.key -Y
/opt/vertica/sbin/install_example VMart
@devniel
devniel / build.gradle
Created December 27, 2022 12:53
Excluding a task [gradle]
// Excluding a task
task1 {
dependsOn taskChain
// it will only disable task3
// but not its dependencies
task3.enabled = false
}
task2 {
map $upstream_http_docker_distribution_api_version $docker_distribution_api_version {
'' 'registry/2.0';
}
upstream docker-registry {
server registry:5000;
}
server {
listen 80;
#!/bin/bash
regex=":([[:digit:]]+)\/"
cluster_info=$(kubectl cluster-info)
[[ $cluster_info =~ $regex ]]
port="${BASH_REMATCH[1]}"
echo "Kubernetes API port: ${port}"