Skip to content

Instantly share code, notes, and snippets.

@Karewan
Karewan / Android: TLS 1.3 with OkHttp + Conscrypt on all Android versions (Tested on 4.1+)
Last active December 3, 2024 18:22
Android: TLS 1.3 with OkHttp and Conscrypt on all Android versions (Tested on 4.1+)
// Android 4.1+
dependencies {
implementation 'com.squareup.okhttp3:okhttp:3.12.13'
implementation 'org.conscrypt:conscrypt-android:2.5.2'
}
// Android 5.0+
dependencies {
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
implementation 'org.conscrypt:conscrypt-android:2.5.2'
@tanaikech
tanaikech / submit.md
Last active May 2, 2025 22:46
Downloading Shared Files on Google Drive Using Curl

Downloading Shared Files on Google Drive Using Curl

When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.

File size < 40MB

CURL

filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&amp;id=${fileid}"
@ryanolf
ryanolf / instructions
Created May 6, 2013 23:21
Installing pyBSDDB (bsddb3) 5.3.0 on Windows
@echo off
setlocal
rem Update the local copy of the DB libs and stuff.
rem This copies the necessary libs and headers and exe
rem files into the python module tree.
rem Set DBDIR to the base directory of the DB source.
rem e.g. it should have the folder "build_windows" in it.