-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,062 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
|
||
docker run -d \ | ||
--name=heimdall \ | ||
-e PUID=1000 \ | ||
-e PGID=1000 \ | ||
-e TZ=Etc/UTC \ | ||
-p 80:80 \ | ||
-p 443:443 \ | ||
-v heimdall:/config \ | ||
-it --rm \ | ||
lscr.io/linuxserver/heimdall:latest | ||
|
||
|
||
# --restart unless-stopped \ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'date' | ||
require 'fileutils' | ||
|
||
dir = "/Users/wschenk/Library/Mobile Documents/iCloud~md~obsidian/Documents/my awesome vault/links" | ||
|
||
# Create a hash to store files by week | ||
files_by_week = {} | ||
|
||
# Loop through files in the directory | ||
Dir.glob(File.join(dir, "*.md")).each do |file| | ||
filename = File.basename(file, ".md") | ||
puts filename | ||
date = Date.parse(filename) rescue next # Skip if filename is not a valid date | ||
|
||
# Determine the week number | ||
week = date.strftime("%Y-W%W") | ||
|
||
# Initialize array for this week if it doesn't exist | ||
files_by_week[week] ||= [] | ||
|
||
# Add file to the appropriate week | ||
files_by_week[week] << file | ||
end | ||
|
||
# Process each week | ||
files_by_week.each do |week, files| | ||
output = "# Week #{week}\n\n" | ||
|
||
files.sort.each do |file| | ||
filename = File.basename(file) | ||
content = File.read(file) | ||
|
||
# Remove date and ".md" from filename | ||
header = File.basename(filename, ".md").sub(/^\d{4}-\d{2}-\d{2}-/, '') | ||
output += "## #{header}\n\n" | ||
|
||
# Add file contents | ||
output += "#{content}\n\n" | ||
end | ||
|
||
# Write output to file | ||
output_dir = File.join(dir, "../weekly_summaries") | ||
FileUtils.mkdir_p(output_dir) | ||
output_file = File.join(output_dir, "#{week}.md") | ||
File.write(output_file, output) | ||
|
||
# Print directory and filename | ||
puts "Writing file: #{output_file}" | ||
end | ||
|
||
puts "Output directory: #{File.join(dir, 'weekly_summaries')}" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#+title: Coding with cursor | ||
#+date: 2024-09-20T16:02:46 | ||
#+draft: true | ||
|
||
I want to build a static app using modern javascript and html that | ||
that uses webcomponents. each component will live it its own file. | ||
The task of the application is to manage assets, and it will use | ||
supabase to do so. When a file is dragged onto the window, that gets | ||
added to the upload queue. The user can also press space to record | ||
audio, and space again to stop the recording and it will get added to | ||
the upload queue. The user can also press a button which lets them do | ||
a video recording, which when stopped will get added to the upload | ||
queue. When something is added to the upload queue, or if the | ||
device's network setting gets changes like they lost connectivity, | ||
everything is first stored locally in the webbrowser as a PWA so that | ||
the upload can resume. There's a process bar for the uploading so the | ||
user can see which files have been sucessfully uploaded or not | ||
|
||
|
||
|
||
please contiue the implmentation | ||
|
||
|
||
progress bar is referenced but not implemented | ||
|
||
|
||
|
||
can you import subapase from <script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script> | ||
|
||
|
||
wait until the window is ready event to initialize supabase | ||
|
||
|
||
|
||
{statusCode: '403', error: 'Unauthorized', message: 'new row violates row-level security policy'} | ||
|
||
|
||
actually can you use supabase to get the anon user when it first starts up and print it out | ||
|
||
|
||
|
||
* References | ||
# Local Variables: | ||
# eval: (add-hook 'after-save-hook (lambda ()(org-babel-tangle)) nil t) | ||
# End: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.