Skip to content

Instantly share code, notes, and snippets.

@charSLee013
charSLee013 / spdier_with_llm.py
Created April 24, 2024 10:15
从x-crawl获取的灵感,使用LLM提前HTML里面的想要的内容
# pip install ollama requests
import ollama
import json
import requests
# 将host改为你的ollama的host
client = ollama.Client(host="localhost:11434")
resp = requests.get(url="https://movie.douban.com/top250",headers={
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36",
@charSLee013
charSLee013 / ips.txt
Created October 24, 2023 18:42
valid public CIDR
1.0.0.0/8
2.0.0.0/7
4.0.0.0/6
8.0.0.0/7
11.0.0.0/8
12.0.0.0/6
16.0.0.0/4
32.0.0.0/3
64.0.0.0/3
96.0.0.0/6
@charSLee013
charSLee013 / run.sh
Last active August 6, 2023 19:01
install stable diffusion on colab
git clone -b v2.4 --single-branch https://github.com/camenduru/stable-diffusion-webui
git clone https://huggingface.co/embed/negative /content/stable-diffusion-webui/embeddings/negative
git clone https://huggingface.co/embed/lora /content/stable-diffusion-webui/models/Lora/positive
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth -d /content/stable-diffusion-webui/models/ESRGAN -o 4x-UltraSharp.pth
wget https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py -O /content/stable-diffusion-webui/scripts/run_n_times.py
git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
git clone https://github.com/camenduru/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/st
@charSLee013
charSLee013 / ali_ips.txt
Created July 29, 2023 19:00
Alicloud full ip range
103.183.154.0/23
103.81.186.0/23
110.76.21.0/24
110.76.23.0/24
116.251.64.0/18
139.95.0.0/23
139.95.10.0/23
139.95.12.0/23
139.95.14.0/23
139.95.16.0/23
@charSLee013
charSLee013 / cf_ips.txt
Created July 29, 2023 18:59
Cloudflare full ip range
1.0.0.0/24
103.21.244.0/24
103.22.200.0/24
103.22.201.0/24
103.22.202.0/24
103.22.203.0/24
103.31.4.0/23
103.81.228.0/24
104.16.0.0/12
104.16.0.0/20
@charSLee013
charSLee013 / extract_netblocks
Created July 25, 2023 10:09
export netblocks from ipinfo.io
import sys
import json
def extract_netblocks(json_file, output_file="netblocks.txt"):
try:
# 从JSON文件中读取数据
with open(json_file, "r") as file:
data = file.read()
# 解析JSON数据
@charSLee013
charSLee013 / gist:8558d265914a5d8af26ca6687f4756c9
Created July 24, 2023 18:01
Websocket with SSL/TLS checker
package main
import (
"bufio"
"context"
"crypto/rand"
"encoding/base64"
"errors"
"flag"
"fmt"
@charSLee013
charSLee013 / listen1_aha_playlist.md
Created October 30, 2019 17:21
updated by Listen1(http://listen1.github.io/listen1/) at 2019/10/31 上午1:21:03

本歌单由Listen1创建, 歌曲数:myplaylist_c57bc8f7-de4c-a0b8-309e-f3b1b000c486587714674694162342092578450111444348,歌单数:16,点击查看更多