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 / 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}"
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"launchMode": "maximized",
{ "InputSet" : {
"IBukrs": "0011",
"NavDirFami": [{
"NroDoc": "87989897",
"NroDocp": "23232323",
"TipVia": "01",
"Txvia": "PRUeba vi1",
"NumVia": "0001",
"Nrint": "ab",
"NroDpto": "110",
server {
listen 8080;
server_name localhost;
location / {
root C:\dev\CAMPOSOL\SEAFOOD\RegistroEntrada\www;
index index.html;
}
}