brew install ripgrep
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
(defun my/gptel-gen-hugo-properties () | |
"Generate Hugo export properties for current Org heading." | |
(interactive) | |
(unless (org-at-heading-p) (user-error "Must be at an Org mode heading")) | |
(gptel-request | |
(format "Convert Chinese title to English slug (lowercase, hyphen-separated): | |
Original text to translate: \"%s\"" | |
(string-trim (org-get-heading t t t t))) | |
:system "Return only the converted string" |
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
# Cline's Memory Bank | |
I am Cline, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional. | |
## Memory Bank Structure | |
The Memory Bank consists of core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy: | |
flowchart TD | |
PB[projectbrief.md] --> PC[productContext.md] |
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
# Cline's Memory Bank | |
I am Cline, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional. | |
## Memory Bank Structure | |
The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy: | |
```mermaid | |
flowchart TD |
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
(defun get-frame-dimensions (frame) | |
"Get the width and height of FRAME from its edges." | |
(let* ((edges (frame-edges frame)) | |
(x (nth 0 edges)) | |
(y (nth 1 edges)) | |
(width (- (nth 2 edges) x)) | |
(height (- (nth 3 edges) y))) | |
(cons width height))) | |
(defun get-primary-display-geometry () |
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
#https://www.reddit.com/r/MacOS/comments/16vmjfc/comment/kcq6nql/ | |
sudo mkdir -p /Library/Preferences/FeatureFlags/Domain && sudo /usr/libexec/PlistBuddy -c "Add 'redesigned_text_cursor:Enabled' bool false" /Library/Preferences/FeatureFlags/Domain/UIKit.plist | |
You should Reboot to take effect | |
# sudo shutdown -r now |
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
sudo fallocate -l 1G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo swapon --show |
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 | |
echo "============================" | |
echo " Docker Disk Usage Optimizer" | |
echo "============================" | |
echo | |
# Function to display disk usage | |
display_disk_usage() { | |
echo "Current Docker Disk Usage:" |
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
➜ ollama list | |
NAME ID SIZE MODIFIED | |
Violet_Twilight-v0.1:q8_0 e049e9e77646 13 GB 2 weeks ago | |
Star-Command-R-32B-v1:Q5_K_M 1f7f85bca6c5 23 GB 2 weeks ago | |
magnum-v3-34b:Q5_K_M 631c48934236 24 GB 2 weeks ago | |
llama3.1_8_chinese:q8_0 5f33642ca608 8.5 GB 2 weeks ago | |
hermes-3-llama-3.1-8b:Q8_0 167459145e7d 8.5 GB 2 weeks ago | |
opencrystal-15b:l3-v2-q8 43a18ad5855c 15 GB 2 weeks ago | |
Cydonia-22B:Q5_K_M a0465abf2ebe 15 GB 2 weeks ago | |
qwen2.5-coder:7b-instruct-q8_0 7f83705f49dd 8.1 GB 3 weeks ago |
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
import requests | |
from bs4 import BeautifulSoup | |
import csv | |
def fetch_and_convert(url): | |
# Fetch the web page content | |
response = requests.get(url) | |
if response.status_code != 200: | |
return "Failed to retrieve the webpage." |
NewerOlder