Skip to content

Instantly share code, notes, and snippets.

View dskarataev's full-sized avatar

Denis Karataev dskarataev

  • Ho Chi Minh City, Vietnam
View GitHub Profile
@dskarataev
dskarataev / backup_github.sh
Created June 18, 2014 11:18
Backup GitHub repositories
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"tterp"} # the GitHub organization whose repos will be backed up
GHBU_UNAME=${GHBU_UNAME-"dskarataev"} # the username of a GitHub account (to use with the GitHub API)
GHBU_PASSWD=${GHBU_PASSWD-"xc4cv0q0"} # the password for that account
GHBU_GITHOST=${GHBU_GITHOST-"github.com"} # the GitHub hostname (see comments)
GHBU_PRUNE_OLD=${GHBU_PRUNE_OLD-true} # when `true`, old backups will be deleted
GHBU_PRUNE_AFTER_N_DAYS=${GHBU_PRUNE_AFTER_N_DAYS-3} # the min age (in days) of backup files to delete
@dskarataev
dskarataev / youtube.pl
Last active December 21, 2021 19:16
Скачивание видео с YouTube через wget. Использовать как ./youtube.pl "link_to_the_video_page", в результате получим .mp4 файл
#!/usr/bin/perl -T
use strict;
use warnings;
#
## Calomel.org ,:, Download Youtube videos and music using wget
## Script Name : youtube_wget_video.pl
## Version : 0.42
## Valid from : March 2014
@dskarataev
dskarataev / checkout.sh
Created May 17, 2014 04:59
Odoo reps checkout script
#/bin/sh
set -e
ODOO=https://github.com/odoo/odoo.git
DEV=https://github.com/odoo-dev/odoo.git
usage () {
cat <<EOF
Usage: $0 [-m] [COPYNAME]