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
FROM docker.io/library/amazonlinux:latest | |
RUN yum -y update | |
RUN yum -y upgrade | |
RUN yum install clang -y && \ | |
yum install libpng-devel libtiff-devel zlib-devel libwebp-devel libjpeg-turbo-devel wget tar gzip -y && \ | |
wget https://github.com/DanBloomberg/leptonica/releases/download/1.75.1/leptonica-1.75.1.tar.gz && \ | |
tar -zxvf leptonica-1.75.1.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
This script has been rewritten and improved, and is now located in my `bash scripts` repository: https://github.com/goose-ws/bash-scripts | |
More specifically, here is the script: https://github.com/goose-ws/bash-scripts/blob/main/sonarr-update-tba.bash | |
And here is the corresponding `.env` file you need to put in the same directory as the script: https://github.com/goose-ws/bash-scripts/blob/main/sonarr-update-tba.env.example |
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
// Used as a UI indicaiton that a feature is not complete. Warns to log. | |
var TODO = function () { | |
var callerName = ""; | |
try { //noinspection ExceptionCaughtLocallyJS | |
throw new Error(); } | |
catch (e) { callerName = /TODO.+\n\s+at (.+) \(/.exec(e.stack)[1]; } | |
console.warn('Feature not complete:', callerName); | |
}; |
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
snail = function(array) { | |
var result = []; | |
var n=array.length; | |
var x=n; | |
var y=n; | |
if(n==1){ | |
return array[0]; | |
} | |
while(y>1){ | |
for(j=0;j<y;j++){ |
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/bash | |
USAGE="Usage: $(basename "$0" .sh) SOURCE-HG DEST-GIT" | |
SRC=${1?$USAGE} || exit 1 | |
DST=${2?$USAGE} || exit 1 | |
SANITIZE=$(dirname "$0")/sanitize.py | |
(cd "$SRC" && |