curl -sL https://dl.xpdfreader.com/xpdf-japanese.tar.gz -o "$HOME/Downloads/xpdf-japanese.tar.gz"
This file contains hidden or 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
#!/usr/bin/env bash | |
# set -x | |
if [ $# -eq 0 ]; then | |
echo "ERROR: Please provide the MAIN branch for this project in order to exclude it." | |
exit 1 | |
fi | |
readonly MAIN_BRANCH="$1" |
This file contains hidden or 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
let scrubParticipants = function(participant) { | |
if ( participant.includes('You') || participant.includes('Presentation')) { | |
participant = participant.replace('(You)',''); | |
participant = participant.replace('Presentation',''); | |
participant = participant.replace('\n',''); | |
} | |
return participant; | |
} |
This file contains hidden or 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
#!/usr/bin/env bash | |
NUM_OF_STORIES="$1" | |
getTopStoryIds(){ | |
curl -sL "https://hacker-news.firebaseio.com/v0/topstories.json" | tr -d '[]' | tr ',' '\n' | |
} | |
getStoryData(){ | |
storyID="$1" |
This file contains hidden or 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
#!/usr/bin/env bash | |
# set -x | |
if [ $# -eq 0 ]; then | |
echo "ERROR: Please provide the MAIN branch for this project in order to exclude it." | |
exit 1 | |
fi | |
readonly MAIN_BRANCH="$1" |
This file contains hidden or 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
#!/usr/bin/env bash | |
usage(){ | |
echo "$(basename "$0") start_value end_value" | |
} | |
# Check if any flags or values were passed | |
if [ "$#" -eq 0 ]; then | |
usage | |
exit |
This file contains hidden or 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
# For the national data, add NULL_FIELD to 'empty' columns so that the cut is performed correctly | |
# sed -i -- "s/,,/,NULL_FIELD,/g" ts-covid-us-null-filled.csv | |
# cat ./ts-covid-us.csv | cut -d ',' -f6-7,12- > ./filtered.csv |
This file contains hidden or 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/sh | |
__getLatestVersion(){ | |
request="$(curl -sI https://github.com/istio/istio/releases/latest | grep "^location")" | |
request="${request##*/}" | |
echo "$request" | tr -d '\r' | |
} | |
__getOperatingSystem(){ | |
get_system_name="$(uname | tr '[:upper:]' '[:lower:]')" |
This file contains hidden or 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
#!/usr/bin/env bash | |
VERSION="${1#[vV]}" | |
VERSION_MAJOR="${VERSION%%.*}" | |
VERSION_MINOR_PATCH="${VERSION#*.}" | |
VERSION_MINOR="${VERSION_MINOR_PATCH%%.*}" | |
VERSION_PATCH_PRE_RELEASE="${VERSION_MINOR_PATCH#*.}" | |
VERSION_PATCH="${VERSION_PATCH_PRE_RELEASE%%[-+]*}" | |
VERSION_PRE_RELEASE="" |