diff --git a/check_stats.sh b/check_stats.sh index d83534b..1c7d5a4 100755 --- a/check_stats.sh +++ b/check_stats.sh @@ -9,11 +9,16 @@ processes=( "/Applications/Stats.app/Contents/MacOS/Stats" ) +# # Function to check if a process is running +# check_process() { +# local process=$1 +# pgrep -f "$process" >/dev/null +# } -# Function to check if a process is running +# Function returns true if it finds at least 2 processes running, false if 1 or 0 check_process() { local process=$1 - pgrep -f "$process" >/dev/null + pgrep -f "$process" | wc -l } # Check each process and restart Stats.app if necessary diff --git a/marker b/marker new file mode 120000 index 0000000..4110cbf --- /dev/null +++ b/marker @@ -0,0 +1 @@ +/Users/borjarobert/.local/pipx/venvs/marker-pdf/bin/marker \ No newline at end of file diff --git a/marker_chunk_convert b/marker_chunk_convert new file mode 120000 index 0000000..0b541b0 --- /dev/null +++ b/marker_chunk_convert @@ -0,0 +1 @@ +/Users/borjarobert/.local/pipx/venvs/marker-pdf/bin/marker_chunk_convert \ No newline at end of file diff --git a/marker_gui b/marker_gui new file mode 120000 index 0000000..3c52f8b --- /dev/null +++ b/marker_gui @@ -0,0 +1 @@ +/Users/borjarobert/.local/pipx/venvs/marker-pdf/bin/marker_gui \ No newline at end of file diff --git a/marker_server b/marker_server new file mode 120000 index 0000000..9893942 --- /dev/null +++ b/marker_server @@ -0,0 +1 @@ +/Users/borjarobert/.local/pipx/venvs/marker-pdf/bin/marker_server \ No newline at end of file diff --git a/marker_single b/marker_single new file mode 120000 index 0000000..1c537b0 --- /dev/null +++ b/marker_single @@ -0,0 +1 @@ +/Users/borjarobert/.local/pipx/venvs/marker-pdf/bin/marker_single \ No newline at end of file diff --git a/streamlit b/streamlit new file mode 120000 index 0000000..9b09011 --- /dev/null +++ b/streamlit @@ -0,0 +1 @@ +/Users/borjarobert/.local/pipx/venvs/streamlit/bin/streamlit \ No newline at end of file diff --git a/streamlit.cmd b/streamlit.cmd new file mode 120000 index 0000000..088755a --- /dev/null +++ b/streamlit.cmd @@ -0,0 +1 @@ +/Users/borjarobert/.local/pipx/venvs/streamlit/bin/streamlit.cmd \ No newline at end of file diff --git a/whi2html.js b/whi2html.js new file mode 100755 index 0000000..8c8283b --- /dev/null +++ b/whi2html.js @@ -0,0 +1,97 @@ +#!/usr/bin/env bun + +// Import the required modules +import { readFile, writeFile } from 'fs/promises'; +import { argv } from 'process'; + +// Function to generate HTML from the input text +async function generateHTML(inputFile) { + try { + // Read the input file + const data = await readFile(inputFile, 'utf-8'); + + // Split the data into lines + const lines = data.split('\n').filter(line => line.trim() !== ''); + + // Start building the HTML content + let htmlContent = ` + + +
+ + +${timestamp} | +${text} | +