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 | |
JAVA_VERSION=13 | |
JAVA_DIR=/usr/lib/jvm/jdk-${JAVA_VERSION} | |
PRIORITY=11${JAVA_VERSION} | |
declare -A ALTERNATIVES_TO_UPDATE | |
ALTERNATIVES_TO_UPDATE=( | |
[jaotc]=bin | |
[jar]=bin |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"log" | |
"io/ioutil" | |
"strings" | |
"encoding/xml" | |
"strconv" |
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
# -*- coding: utf8 -*- | |
import json | |
import urllib2 | |
import urllib | |
import sys | |
import os | |
from argparse import ArgumentParser | |
from collections import defaultdict |
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 | |
function usage() { | |
echo "Usage: $0 <playlist-id>" | |
exit 1 | |
} | |
function download() { | |
local tempfile=`tempfile` || usage | |
local formated_tempfile=`tempfile` || usage | |
curl -s "https://gdata.youtube.com/feeds/api/playlists/$1?max-results=$2&start-index=$3" > $tempfile | |
xmllint --format $tempfile > $formated_tempfile |