Skip to content

Instantly share code, notes, and snippets.

View ClayRabbit's full-sized avatar

Andrey Chesnakov ClayRabbit

View GitHub Profile
@ClayRabbit
ClayRabbit / git-init.sh
Last active December 23, 2022 13:43
Initial repo upload keeping file timestamps
#!/usr/bin/env bash
### Initial repo upload keeping file timestamps
if [ ! -n "$1" ]; then
echo "usage $0 <https://user@bitbucket.org/user/repo.git>"
exit 1
fi
if [ "$(uname -s)" == "FreeBSD" ]; then
stat_args="-f%m:%N"
@ClayRabbit
ClayRabbit / dl-cloud-mail-ru.sh
Last active September 27, 2019 14:03 — forked from vishalk95/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
# 26/04/2019 downloading fixed (thanks to @dinolek ) .......updated by - @vishalk17