Skip to content

Instantly share code, notes, and snippets.

@sim2github
sim2github / get_github_latest_release.sh
Created January 15, 2019 05:21
Download latest release with curl example
RUN export LATEST_PROTO_VERSION=$(curl -sL https://api.github.com/repos/protocolbuffers/protobuf/releases/latest | grep '"tag_name":' | cut -d: -f2 | cut -c4-8) && \
curl -sL https://github.com/protocolbuffers/protobuf/releases/download/v${LATEST_PROTO_VERSION}/protoc-${LATEST_PROTO_VERSION}-linux-x86_64.zip -o proto.zip && \
@sim2github
sim2github / dl-cloud-mail-ru.sh
Created January 9, 2020 07:34 — forked from cronfy/dl-cloud-mail-ru.sh
Download file from cloud.mail.ru from linux console with bash script
#!/usr/bin/env bash
#
# ВАЖНО. mail.ru время от времени меняет внутрянку, не очень сильно, но требуется адаптация скрипта.
# Если скрипт не работает, просьба разместить патч в комментариях или сделать работающий форк.
# 2018-06-18 updated: mail.ru changed internals
# 2017-09-22 original idea: https://novall.net/itnews/bash-skript-dlya-skachivaniya-fajlov-s-mail-ru-cherez-konsol-linux.html
URL="$1"