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
:: doc2txt.bat | |
:: | |
:: This batch file converts all the files in a folder to .txt, | |
:: as long as LibreOffice supports them (e.g. .doc, .docx, .odt) | |
:: | |
:: 1. Make sure soffice.exe is in your PATH, e.g. | |
:: Edit Environment Variables, add New in user variables, and add C:\Program Files (x86)\LibreOffice 5\program | |
:: 2. Save this doc2txt.bat file to the folder alongside the files you want to convert. | |
:: 3. Make sure Libreoffice is not running. (A bug prevents soffice from working while Libreoffice is open.) | |
:: 4. Double-click doc2txt.bat. |
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
<script type='text/javascript'> | |
var refreshJqlHistoryPane = function() { | |
var localHistory = localStorage.getItem('jqlHistory'); | |
if(localHistory){ | |
var history = JSON.parse(localHistory); | |
var historyEntries = history.map(function(jql){ | |
var display = jql; | |
if(display.length > 25){ | |
display = display.substr(0,22) + "..."; | |
} |
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
ffmpeg -i http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4 -filter_complex "[0:a]showfreqs=s=480x240[vv];[0:v][vv]overlay=x=0:y=(H-h)/2" -c:v libx264 -c:a aac -f mpegts - | ffplay -i - | |
ffmpeg -i http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4 -filter_complex "[0:a]showvolume=p=1,scale=480:240[vv];[0:v][vv]overlay=x=0:y=(H-h)/2" -c:v libx264 -c:a aac -f mpegts - | ffplay -i - | |
ffmpeg -i http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4 -filter_complex "[0:a]showspectrum=s=480x240:scale=log[vv];[0:v][vv]overlay=x=0:y=(H-h)/2" -c:v libx264 -c:a aac -f mpegts - | ffplay -i - | |
ffmpeg -i http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4 -filter_complex "[0:a]showcqt=s=480x240[vv];[0:v][vv]overlay=x=0:y=(H-h)/2" -c:v libx264 -c:a aac -f mpegts - | ffplay -i - | |
streamlink https://www.youtube.com/watch?v=dp5IuihmwhQ worst -O | ffmpeg -i pipe:0 -filter_ |
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
ffmpeg -i 1.wav -i 2.wav -i 3.wav -i 4.wav -i 5.wav -i 6.wav -i 7.wav -i 8.wav -i 9.wav -i 10.wav -i 11.wav -i 12.wav -i 13.wav -i 14.wav -i 15.wav -i 16.wav -filter_complex "[2:a][0:a][1:a][3:a][4:a][5:a][6:a][7:a][8:a][9:a][10:a][11:a][12:a][13:a][14:a][15:a]join=inputs=16:channel_layout=hexadecagonal[a]" -map "[a]" output.wav |
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 | |
# From https://github.com/LIAAD/yake#installing-docker | |
# Install dependencies | |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common |
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 https://docs.google.com/document/d/1Nsv52MvSjbLb2PCpHlat0gkzw0EvtSgpKHu4mk0MnrA/ | |
Save Page Now 2 Public API Docs Draft | |
Vangelis Banos, updated: 2022-04-05 | |
Capture a web page as it appears now for use as a trusted citation in the future. Changelog: https://docs.google.com/document/d/19RJsRncGUw2qHqGGg9lqYZYf7KKXMDL1Mro5o1Qw6QI/edit# | |
Contents | |
Glossary 1 | |
Basic API Reference 1 | |
Capture request 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
#!/bin/sh | |
# Convert ANSI (terminal) colours and attributes to HTML | |
# Licence: LGPLv2 | |
# Author: | |
# http://www.pixelbeat.org/docs/terminal_colours/ | |
# Examples: | |
# ls -l --color=always | ansi2html.sh > ls.html | |
# git show --color | ansi2html.sh > last_change.html |
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 | |
# Use with a command such as: (./main -m models/ggml-medium.bin -p 1 -t 8 -pc -f input.wav | ./ansi2html.sh > whisper.html && ./match_colors.sh whisper.html) | |
# The open and close parantheses in the command are important. | |
# Assumes ansi2html.sh is in the same folder. ansi2html.sh is available here: https://github.com/pixelb/scripts/blob/master/scripts/ansi2html.sh & here: https://gist.github.com/regstuff/a9cb16df25c74d10608a6bff3a3df95d | |
# Will generate an ouput called whisper.html. That can be parsed and used for final transcript. All low-confidence i.e. red or orange printed colors are converted to a span class named red, which can be used for further css downstream | |
# This script assumes bc (Basic Calculator) is installed and available in your UNIX environment. It's a common calculator utility available on many Unix-like systems. | |
# Check for the presence of an input file argument | |
if [ "$#" -ne 1 ]; then |
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 | |
# Modify your app.py to run on port 80 if you don't want to open up ports in Azure networking. You'll need sudo (as below) to run the flask server on port 80. Consider setting up an NGINX reverse proxy instead. Remove sudo in the crontab and install entries below if not using port 80. | |
# You'll also have to change the reset command to work with sudo too if using port 80: echo whateverpassword | sudo -S -u whateverusername screen -S screen_to_test -X quit | |
sudo apt update | |
sudo apt install -y python3-pip git-lfs ffmpeg python3-venv | |
pip install flask | |
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10 | |
mkdir sgtranscribe | |
mkdir livetranscribe |