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 | |
S3_BUCKET="hpc-lections" | |
WHISPER_CPP_PATH="whisper.cpp" | |
MODEL="large-v3" | |
LANG="ru" | |
AUDIO_EXTRACT=true | |
command -v aws >/dev/null 2>&1 || { echo >&2 "AWS CLI required."; exit 1; } | |
command -v ffmpeg >/dev/null 2>&1 && HAS_FFMPEG=true || HAS_FFMPEG=false |
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 node:23-alpine | |
# This is where the app data is stored (should not require a volume) | |
ENV FOUNDRY_APP_DIR=/home/foundry/app | |
# This is where persistence data is stored (make it a volume) | |
ENV FOUNDRY_DATA_DIR=/home/foundry/data | |
ENV UID=1000 | |
ENV GUID=1000 |
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
set -g default-terminal "xterm-256color" | |
set -g prefix C-w | |
set-window-option -g mode-keys vi | |
bind -T copy-mode-vi v send -X begin-selection | |
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" | |
bind P paste-buffer | |
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel | |
setw -g mouse on | |
set-option -s set-clipboard on | |
set-option -g default-command "reattach-to-user-namespace -l zsh" |
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
func clearProtoFields(msg proto.Message, sensitiveFieldAnnotation *protoimpl.ExtensionInfo) proto.Message { | |
clonedMsg := proto.Clone(msg) | |
reflectMsg := proto.MessageReflect(clonedMsg) | |
var messagesToCheck []protoreflect.Message | |
messagesToCheck = append(messagesToCheck, reflectMsg) | |
for len(messagesToCheck) != 0 { | |
lastIdx := len(messagesToCheck) - 1 | |
visitMessage := messagesToCheck[lastIdx] | |
messagesToCheck = messagesToCheck[:lastIdx] |