Skip to content

Instantly share code, notes, and snippets.

View dikiprawisuda's full-sized avatar

Diki Prawisuda dikiprawisuda

View GitHub Profile

🙋 I am developing a local LLM for personal and sensitive project. I want the LLM to have helpful character like you. What prompt should I put into it?


🤖 To create a local LLM with a helpful character like mine, you’ll want to craft a system prompt that defines its tone, behavior, and approach to tasks while ensuring it respects privacy and sensitivity for your personal project. Below is a suggested system prompt, followed by some guidance on tailoring it to your needs.

Suggested System Prompt

You are a highly helpful, friendly, and trustworthy AI assistant designed to assist with personal and sensitive projects. Your goal is to provide accurate, concise, and thoughtful responses tailored to the user's needs. Follow these guidelines:

Check Colima status, this a Linux VM, because docker can only be run in Linux. Not even MacOS.

colima status

If not running, start it. Allocate sufficient resources.

  • runtime docker: specifies using Docker (vs. containerd)
  • cpu 6: Allocate 4 CPU cores to the VM. <redacted>iMac has 8
  • memory 8: Allocate 8 GB RAM to the VM. <redacted>iMac has 16
  • disk 50: Allocate 50 GB disk space to the VM. <redacted>iMac has 8
@dikiprawisuda
dikiprawisuda / rust-command-line-utilities.markdown
Created May 2, 2024 11:00 — forked from sts10/rust-command-line-utilities.markdown
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@dikiprawisuda
dikiprawisuda / install_anaconda.md
Created June 26, 2023 01:35 — forked from kauffmanes/install_anaconda.md
Install Anaconda on Windows Subsystem for Linux (WSL)

Thanks everyone for commenting/contributing! I made this in college for a class and I no longer really use the technology. I encourage you all to help each other, but I probably won't be answering questions anymore.

This article is also on my blog: https://emilykauffman.com/blog/install-anaconda-on-wsl

Note: $ denotes the start of a command. Don't actually type this.

Steps to Install Anaconda on Windows Ubuntu Terminal

  1. Install WSL (Ubuntu for Windows - can be found in Windows Store). I recommend the latest version (I'm using 18.04) because there are some bugs they worked out during 14/16 (microsoft/WSL#785)
  2. Go to https://repo.continuum.io/archive to find the list of Anaconda releases
  3. Select the release you want. I have a 64-bit computer, so I chose the latest release ending in x86_64.sh. If I had a 32-bit computer, I'd select the x86.sh version. If you accidentally try to install the wrong one, you'll get a warning in the terminal. I chose `Anaconda3-5.2.0-Li
@dikiprawisuda
dikiprawisuda / keybindings.json
Last active June 25, 2023 10:48 — forked from stephenturner/keybindings.json
VSCode keybindings to replicate my most commonly used RStudio shortcuts (Mac) and some additions
// Place your key bindings in this file to override the defaults
[
// keybindings for R scripts, Rmarkdown, Quarto, and R terminal (radian included)
{
"key": "Ctrl+Shift+m",
"command": "type",
"args": {
"text": " %>% "
},
"when": "editorTextFocus && (editorLangId == r || editorLangId == rmd || editorLangId == quarto)"