This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage Example: $ clone-github github_id | |
# would clone all the git repositories managed under github_id at current path | |
# save it as /etc/profiles/a.github.sh | |
## | |
clone-github(){ | |
GITHUB_ID=$1 | |
GITHUB_REPO_URI="https://github.com/"$GITHUB_ID"?tab=repositories" | |
repos=`curl -skL $GITHUB_REPO_URI | grep 'name codeRepository' | sed 's/.*href=\"//' | sed 's/".*//'` | |
for line in `echo $repos | xargs -L1`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage Example: $ ddl-confreaks rubyconf2012 ~/Downloads/ | |
# save it as /etc/profiles/ddl.confreaks.sh | |
## | |
## currently it checks for lowest resolution video mostly {640x360} and downloads it | |
function ddl-confreaks(){ | |
if [ $# -ne 2 ]; | |
then | |
echo 'Failed. Syntax: $> ddl-confreaks EVENT_NAME DOWNLOAD_PATH' | |
return |