Install plugin Whisper for Obsidian
plugin's settings:
- API-key = sk-0
- API-URL = http://127.0.0.1:8000/inference
- language = en
- recording folder = rec
- transcription folder = rec_notes
| #!/usr/bin/env zsh | |
| # Multi-project worktree manager with Claude support | |
| # | |
| # ASSUMPTIONS & SETUP: | |
| # - Your git projects live in: ~/projects/ | |
| # - Worktrees will be created in: ~/projects/worktrees/<project>/<branch> | |
| # - New branches will be named: <your-username>/<feature-name> | |
| # | |
| # DIRECTORY STRUCTURE EXAMPLE: | |
| # ~/projects/ |
plugin's settings:
If you've added some runcmd lines to your cloud-init config, and the commands don't seem to be executing, here's a few things you should know:
runcmd only has code to "shellify" your strings or array of strings (i.e: turns them into a shell script)runcmd will only write a shell script into the file /var/lib/cloud/instance/scripts/runcmdruncmd is part of the cloud_config_modules boot stageexecute that runcmd shell script using the scripts-user modulescripts-user is part of the cloud_final_modules boot stage| from importlib import reload | |
| from types import ModuleType | |
| def rreload(module): | |
| """Recursively reload a module and all its submodules. | |
| Graph DFS strategy modified from | |
| https://stackoverflow.com/questions/15506971/recursive-version-of-reload | |
| """ | |
| visited = set() | |
| def visit(m): |
| #!/usr/bin/env python | |
| # Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
| # software and associated documentation files (the "Software"), to deal in the Software | |
| # without restriction, including without limitation the rights to use, copy, modify, | |
| # merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
| # permit persons to whom the Software is furnished to do so. | |
| # | |
| # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
| object RDDasMonadPlus { | |
| import org.apache.spark.{ SparkContext } | |
| import org.apache.spark.rdd.RDD | |
| import scalaz._ | |
| import Scalaz._ | |
| import scala.reflect.ClassTag | |
| // RDDMPlus is the type for which we will define the Monad instance. it can be | |
| // constructed from an RDD using the RDDClassTag constructor. this | |
| // implementation is based on insights from |
| #!/usr/bin/env python | |
| """ | |
| Very simple HTTP server in python (Updated for Python 3.7) | |
| Usage: | |
| ./dummy-web-server.py -h | |
| ./dummy-web-server.py -l localhost -p 8000 | |
| Send a GET request: |
| from __future__ import division | |
| from numpy.fft import rfft | |
| from numpy import argmax, mean, diff, log, nonzero | |
| from scipy.signal import blackmanharris, correlate | |
| from time import time | |
| import sys | |
| try: | |
| import soundfile as sf | |
| except ImportError: | |
| from scikits.audiolab import flacread |