Skip to content

Instantly share code, notes, and snippets.

@visionarylab
visionarylab / submit.md
Created June 14, 2024 05:55 — forked from tanaikech/submit.md
Resumable Download of File from Google Drive using Drive API with Python

Resumable Download of File from Google Drive using Drive API with Python

This is a sample script for achieving the resumable download of a file from Google Drive using Dive API with Python.

There might be a case in that you want to achieve the resumable download of a file from Google Drive using Dive API with Python. For example, when a large file is downloaded, the downloading might be stopped in the middle of downloading. At that time, you might want to resume the download. In this post, I would like to introduce the sample script of python.

In order to achieve the partial download from Google Drive, the property of Range: bytes=500-999 is required to be included in the request header. But, unfortunately, in the current stage, MediaIoBaseDownload cannot use this property. When MediaIoBaseDownload is used, all data is downloaded.

So, in order to achieve this goal, it is required to use a workaround. In this workaround, I proposed the following flow.

{pkgs}: {
channel = "stable-24.05";
packages = [
pkgs.nodejs_20
pkgs.yarn
pkgs.nodePackages.pnpm
pkgs.bun
];
env = { HELLO="worl"; };
idx.extensions = [
@visionarylab
visionarylab / AI_Sheet
Last active September 17, 2025 07:55 — forked from tanaikech/submit.md
Handling 10,000,000 cells in Google Spreadsheet using Google Apps Script
https://docs.stammer.ai/stammer.ai-docs
@visionarylab
visionarylab / erp-odoo-with-docker
Last active February 28, 2025 06:49
erp-odoo-with-docker
https://labs.iximiuz.com/premium
https://kodekloud.com/community/t/extend-the-lab-time/397106
https://kodekloud.com/community/t/what-are-the-limitations-for-playgrounds/462284
https://help.pluralsight.com/hc/en-us/articles/24425549311380-Cloud-sandboxes-getting-started#access (4 hour and 8 hour team plan)
https://docs.getcommandeer.com/releases/latest/version-1.8.0-3-23-2021/#view-container-and-volume-files
https://dev.to/siddhantkcode/binary-embedding-shrink-vector-storage-by-95-5e0l
https://myscale.com/blog/full-text-search-battle-weaviate-qdrant/
@visionarylab
visionarylab / ai-local-model-cloud
Last active October 23, 2025 08:24
ai-local-model-cloud
#agency
https://cuppa.ai/features/integrations
Nvidia AI AGENT(Project G-Assists)
https://aembit.io/blog/auditing-mcp-server-access/
Client Workload: Dev MCP Client, Trust Provider (OIDC), Credential Provider (AWS STS), Server Workload: Remote MCP Server
https://www.vanta.com/resources/claude-mcp-vanta
@visionarylab
visionarylab / ai revenue sharing
Last active October 10, 2025 07:53
ai-economy
https://www.hyperbolic.ai/blog/how-to-host-your-own-ai-model?utm_source=form&utm_campaign=revenue_sharing
https://docs.graphitect.ai/key-functions-and-services/revenue-sharing-system
https://swarmzero.ai/blog/revenue-sharing-in-decentralized-ai
@visionarylab
visionarylab / Windows 11 Tips or Maintaining
Last active February 11, 2026 07:35 — forked from thewh1teagle/windows 10 windows 11 unrestricted setup for vm.md
windows 10 windows 11 unrestricted setup for vm.md
https://gist.github.com/djibe/87b6ae5157c309fb611b428445e9fce9
https://gist.github.com/asheroto/5087d2a38b311b0c92be2a4f23f92d3e
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
https://www.tenforums.com/tutorials/1964-move-users-folder-location-windows-10-a.html#MethodTwo
https://devblogs.microsoft.com/setup/booting-windows-to-a-differencing-virtual-hard-disk/
https://us.informatiweb.net/tutorials/it/multiboot/vhd-vhdx-multiboot-with-windows-10-and-windows-11.html
https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/best-practices-analyzer/avoid-using-vhd-format-differencing-virtual-hard-disks-on-virtual-machines
https://www.ajni.it/2019/10/hyper-v-create-a-master-vhdx-to-save-tons-of-space/
@visionarylab
visionarylab / diff
Last active June 6, 2025 03:24
webcontainers.io
https://community.fabric.microsoft.com/t5/Desktop/Comparing-snapshots-of-same-range-of-data/m-p/332743
https://community.pigment.com/reporting-data-visualization-83/compare-to-snapshots-296
https://docs.skyvia.com/backup/working-with-backed-up-data/comparing-snapshots-and-viewing-data-differences.html
https://estuary.dev/blog/estuary-flow-schema-evolution/
https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append
https://www.phdata.io/blog/how-to-slowly-change-dimensions-with-snapshots-in-dbt/
@visionarylab
visionarylab / blockchain_crypto
Last active May 23, 2025 05:46
blockchain_crypto
https://ceramic.network/patterns/verifiable-claims
##Identity
IDX is compatible with all blockchains, wallets, and a wide variety of user and application data storage options including Ceramic, Textile, OrbitDB, Filecoin, IPFS, Sia, and Secure Data Stores — so you can seamlessly integrate decentralized identity with the rest of your Web3 tech stack
https://blog.ceramic.network/unhackable-apps-with-siwe-non-extractable-session-keys/
##Privacy first Encrypted
https://www.suse.com/c/rancher_blog/windows-containers-and-rancher-2-3/
https://www.koyeb.com/deploy/fixie
https://caddyserver.com/docs/quick-starts/reverse-proxy#:~:text=Caddy%20will%20serve%20your%20proxy,domain%20name%20of%20the%20proxy.
https://ogobrecht.com/posts/2024-10-16-caddy-server-and-apex--joel-kallman-day/
https://tairuoluwafemi.medium.com/configure-https-on-server-without-custom-domain-1f056672599f
https://futurestud.io/tutorials/caddy-reverse-proxy-a-node-js-app