Discover gists
| ========================================================================================================= | |
| #powershell editor in windows | |
| PowerShell ISE,Visual Studio Code,Notepad++ | |
| ========================================================================================================== | |
| Example 3: Modify your prompt function | |
| This command changes the prompt function so that it displays the time before the path. | |
| PowerShell | |
| Set-Item -Path function:prompt -Value {'PS '+ (Get-Date -Format t) + " " + (Get-Location) + '> '} |
So you think React Native is better than Flutter because it uses native UI elements instead of rendering everything itself? Well, then let’s build the same thing for Flutter. I'll do it for macOS. Feel free to do it yourself for your platform instead.
Project Setup
Start like this.
flutter create --platforms=macos --empty flutter_native
| // ==UserScript== | |
| // @name vectorizer.ai download patcher | |
| // @match https://vectorizer.ai/* | |
| // @version 1.0 | |
| // @description enables free downloads on vectorizer.ai, based on https://github.com/sanz-s/Vectorizer.ai-Unofficial-Downloader-2025/ | |
| // ==/UserScript== | |
| const main = () => { | |
| const SVG_NS = 'http://www.w3.org/2000/svg' | |
| const SVG_XML_DECLARATION = '<?xml version="1.0" encoding="UTF-8"?>\n' |
| #!/usr/bin/env zsh | |
| printf "PT09IENyb3NzT3ZlciBUcmlhbCBSZXNldCBTY3JpcHQgPT09DQpbSU5GT10gVGhpcyBzY3JpcHQgaXMgb25seSBtZWFudCBmb3IgZWR1Y2F0aW9uYWwgcHVycG9zZXMuDQpbV0FSTklOR10gSWYgeW91IGRpZG4ndCBnZXQgdGhpcyBzY3JpcHQgZnJvbSBueGZ4MjEncyBHaXRIdWIgR2lzdCwgaXQgbWF5IGhhdmUgYmVlbiB0YW1wZXJlZCB3aXRoLiBJZiB5b3UgZGlkIGdldCB0aGlzIG9mZiBueGZ4MjEncyBHaXRIdWIgR2lzdCwgeW91IGFyZSBzYWZlLCBjYXJyeSBvbi4gQmUgY2F1dGlvdXMgd2hlbiBydW5uaW5nIG9ubGluZSBjb2RlLCBhbmQgYWx3YXlzIGNoZWNrIGlmIGl0IGRvZXMgYW55dGhpbmcgdGhhdCB5b3UgZG9uJ3QgbGlrZS4=" | base64 -D | |
| echo "\n[LOG] Started at: $(date)" | |
| # Check if Homebrew exists, install if needed | |
| if ! command -v brew >/dev/null 2>&1; then | |
| echo "[INFO] Homebrew not found. Installing Homebrew..." | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
The following is a quick guide on getting basic status LED functionality working with TrueNAS running on the UGREEN DXP4800 Plus. Theoretically, it should work on all models (with some small revisions to the script), but I only have a DXP4800 Plus. :)
This guide is for cron job that runs a script to update the LEDs every couple minutes, but I'm sure the following can be modified for blinky LEDs as well.
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| using System; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| #if UNITY_2017_4 || UNITY_2018_2_OR_NEWER | |
| using UnityEngine.U2D; | |
| #endif | |
| using Sprites = UnityEngine.Sprites; | |
| #if UNITY_EDITOR |

