Skip to content

Instantly share code, notes, and snippets.

View ag2s20150909's full-sized avatar
💭
I may be slow to respond.

ag2s20150909

💭
I may be slow to respond.
View GitHub Profile
@bennyhuo
bennyhuo / init.gradle.kts
Last active April 29, 2024 15:53
How to config mirrors for repositories in Gradle without changing the source code of your project?
fun RepositoryHandler.enableMirror() {
all {
if (this is MavenArtifactRepository) {
val originalUrl = this.url.toString().removeSuffix("/")
urlMappings[originalUrl]?.let {
logger.lifecycle("Repository[$url] is mirrored to $it")
this.setUrl(it)
}
}
}
@wongsyrone
wongsyrone / gist:b8b40f092736962da1ec5646fa6c13bf
Created December 18, 2018 03:09
offline Google Chrome browser
https://www.google.com/intl/zh-CN/chrome/browser/?system=true&standalone=1&platform=win64
If you want to install Chrome for your own user account:
Download Google Chrome Full Standalone Offline Installer (32-bit)
https://www.google.com/chrome/eula.html?standalone=1&platform=win
Download Google Chrome Full Standalone Offline Installer (64-bit)
@bagder
bagder / simple-doh.c
Created June 18, 2018 11:40
libcurl example using DOH
#include <stdio.h>
#include <curl/curl.h>
int main(void)
{
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
@wavezhang
wavezhang / java_download.sh
Last active May 21, 2024 14:36
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz