Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#!/bin/bash #for kris from kris :) if [ $# -lt 1 ] then echo "Useage: $0
" exit fi dir="githubBackup" user="$1" let pages="$2" mkdir -p "$dir/$user" cd "$dir/$user" clear echo "Backing up all github projects for $user..." for p in `seq 1 $pages`; do wget -q "https://github.com/metalx1000?page=$p&tab=repositories" -O- |\ grep codeRepository|\ cut -d\" -f2|\ while read url do #git clone "https://github.com${url}.git" repo="$(echo "$url"|cut -d\/ -f3)" wget "https://github.com${url}/archive/master.zip" -O "${repo}_master.zip" done done clear echo "${user}'s projects backed up to $(pwd)."
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)