Skip to content

Instantly share code, notes, and snippets.

View Congyuwang's full-sized avatar

Congyu Congyuwang

View GitHub Profile
@Congyuwang
Congyuwang / requests_get_progress.py
Last active November 24, 2023 11:20
Requests get / put with progress bar
import requests
from tqdm import tqdm
import json
CHUNK_SIZE = 32 * 1024
def get(url, token):
headers = {"Authorization": token}
@Congyuwang
Congyuwang / Dockerfile
Created August 24, 2023 08:46
Dockerfile Install CMake
# install cmake
WORKDIR /root
RUN mkdir temp
WORKDIR /root/temp
RUN curl -OL https://github.com/Kitware/CMake/releases/download/v3.27.4/cmake-3.27.4.tar.gz
RUN tar -xzvf cmake-3.27.4.tar.gz
WORKDIR /root/temp/cmake-3.27.4
RUN ./bootstrap -- -DCMAKE_BUILD_TYPE:STRING=Release
RUN make -j4