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
for i in *.pdf | |
do | |
ocrmypdf -l deu -i "$i" "${i/%.pdf/_ocr.pdf}" | |
done |
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
ssh -f <user>@<host> -L <localport>:<remoteserver>:443 -N |
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
start-process -NoNewWindow powershell ` | |
{ssh -f <user>@<host> ` | |
-L 10443:127.0.0.1:443 ` | |
-N } |
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
export storepass="mystorepassword" | |
export keypass="mykeypassword" | |
for i in ./*.jar; do jarsigner -storepass:env storepass -keypass:env keypass "$i" key_alias;done |
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
java -cp /usr/share/java/saxonb.jar net.sf.saxon.Transform -ext:on videodata.xml transform_vsmeta.xslt |
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
<xsl:stylesheet | |
version="2.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xhtml="http://www.w3.org/1999/xhtml" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<!-- Sets the root directory for the output --> | |
<xsl:variable | |
name="outpathprefix" | |
select="'/tmp/videodata-nfo-out'" /> | |
<xsl:template match="/videodata_tmp/row"> |
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
CREATE TEMP TABLE "videodata_tmp" AS | |
SELECT | |
v.mapper_id as id, | |
'home'||v.mapper_id as uniqueid, | |
right(v.path, position('/' in reverse(v.path)) - 1) as filename, | |
v.path, | |
g2.genre, | |
h.title, | |
h.record_time, | |
s.summary |