BelugaDataSetCoder commited on
Commit
81a53ea
·
verified ·
1 Parent(s): ade917a

Update train.jsonl

Browse files
Files changed (1) hide show
  1. train.jsonl +32 -1
train.jsonl CHANGED
@@ -5,4 +5,35 @@
5
  {"prompt": "check active listening ports and process names in linux", "completion": "sudo ss -tulpn"}
6
  {"prompt": "restart ollama systemd service and follow live logs", "completion": "sudo systemctl restart ollama && journalctl -fu ollama"}
7
  {"prompt": "find all blobs directories inside /var/lib/ollama without permission errors", "completion": "sudo find /var/lib/ollama -name \"blobs\" -type d 2>/dev/null"}
8
- {"prompt": "compile cpp file with clang++ using c++23 standard and warnings enabled", "completion": "clang++ -std=c++23 -Wall -Wextra -O2 main.cpp -o main"}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  {"prompt": "check active listening ports and process names in linux", "completion": "sudo ss -tulpn"}
6
  {"prompt": "restart ollama systemd service and follow live logs", "completion": "sudo systemctl restart ollama && journalctl -fu ollama"}
7
  {"prompt": "find all blobs directories inside /var/lib/ollama without permission errors", "completion": "sudo find /var/lib/ollama -name \"blobs\" -type d 2>/dev/null"}
8
+ {"prompt": "compile cpp file with clang++ using c++23 standard and warnings enabled", "completion": "clang++ -std=c++23 -Wall -Wextra -O2 main.cpp -o main"}
9
+ {"prompt": "[zsh] Write a Zsh one-liner to find and delete all .DS_Store files recursively in the current directory.", "response": "rm -f **/.DS_Store(D)"}
10
+ {"prompt": "[zsh] How do I create an associative array in Zsh and iterate over its keys and values?", "response": "typeset -A roles=(alice admin bob editor); for k v in \"${(@kv)roles}\"; do print -r -- \"$k: $v\"; done"}
11
+ {"prompt": "[zsh] Write a Zsh command to extract a .tar.gz archive into the current directory.", "response": "tar -xzf archive.tar.gz"}
12
+ {"prompt": "[zsh] Write a Zsh command to extract a .zip archive into a specific folder.", "response": "unzip archive.zip -d target_dir/"}
13
+ {"prompt": "[zsh] How can I split a comma-separated string into an array in Zsh?", "response": "str=\"apple,banana,cherry\"; arr=(${(s:,:)str}); print -l -- $arr"}
14
+ {"prompt": "[zsh] Write a Zsh command using glob qualifiers to list only executable regular files in the current folder.", "response": "ls -l *(.x)"}
15
+ {"prompt": "[zsh] How do I convert a variable's value to uppercase and lowercase in Zsh without external tools?", "response": "text=\"Hello Zsh\"; print -r -- \"${text:u}\" \"${text:l}\""}
16
+ {"prompt": "[zsh] Create a Zsh snippet that checks if a command exists before running it.", "response": "(( $+commands[jq] )) && jq '.' data.json || print -u2 \"jq not found\""}
17
+ {"prompt": "[zsh] How do I rename all .jpeg files to .jpg in the current directory using Zsh zmv?", "response": "autoload -Uz zmv && zmv '(*).jpeg' '$1.jpg'"}
18
+ {"prompt": "[zsh] Write a Zsh script to read a file line by line into an array, skipping empty lines.", "response": "lines=(${(f)\"$(<config.txt)\"}); print -l -- $lines"}
19
+ {"prompt": "[zsh] How do I measure the execution time of a specific block of code inside a Zsh script?", "response": "SECONDS=0; sleep 2; print -r -- \"Elapsed: $SECONDS s\""}
20
+ {"prompt": "[zsh] How do I list all files including hidden ones in Zsh?", "response": "ls -la"}
21
+ {"prompt": "[zsh] Write a Zsh command to quickly jump back to the previous directory I was in.", "response": "cd -"}
22
+ {"prompt": "[zsh] How do I create a nested directory structure like projects/app/src in one command?", "response": "mkdir -p projects/app/src"}
23
+ {"prompt": "[zsh] How can I create an alias for 'git status' in Zsh and make it permanent?", "response": "echo 'alias gs=\"git status\"' >> ~/.zshrc && source ~/.zshrc"}
24
+ {"prompt": "[zsh] Write a Zsh command to search my command history for anything containing 'docker'.", "response": "history 1 | grep docker"}
25
+ {"prompt": "[zsh] How do I make a shell script executable and run it in Zsh?", "response": "chmod +x script.zsh && ./script.zsh"}
26
+ {"prompt": "[zsh] How do I check the size of all folders in the current directory in a human-readable format?", "response": "du -sh */"}
27
+ {"prompt": "[zsh] Write a Zsh command to find all .log files modified in the last 24 hours.", "response": "find . -name \"*.log\" -mtime -1"}
28
+ {"prompt": "[zsh] How can I view the last 50 lines of a log file and follow new updates in real time?", "response": "tail -n 50 -f app.log"}
29
+ {"prompt": "[zsh] How do I add a new folder to my PATH environment variable in Zsh?", "response": "export PATH=\"$HOME/bin:$PATH\""}
30
+ {"prompt": "[zsh] Write a command to recursively copy a directory named 'assets' to 'backup/assets'.", "response": "cp -r assets backup/"}
31
+ {"prompt": "[zsh] How do I find out which process is currently using port 8080?", "response": "lsof -i :8080"}
32
+ {"prompt": "[zsh] How can I clear the terminal screen and scrollback buffer in Zsh?", "response": "clear && printf '\\e[3J'"}
33
+ {"prompt": "[zsh] Write a Zsh command to replace the word 'foo' with 'bar' in a file named config.txt.", "response": "sed -i '' 's/foo/bar/g' config.txt"}
34
+ {"prompt": "[zsh] How do I download a file from a URL and save it with its original filename using curl?", "response": "curl -O https://example.com"}
35
+ {"prompt": "[zsh] How do I check where a specific command or binary is located in Zsh?", "response": "which -a python3"}
36
+ {"prompt": "[zsh] Write a Zsh one-liner to count how many .txt files are in the current directory.", "response": "print -l *.txt(N) | wc -l"}
37
+ {"prompt": "[zsh] How do I enable case-insensitive tab completion in Zsh?", "response": "autoload -Uz compinit && compinit && zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'"}
38
+ {"prompt": "[zsh] How can I run a command in the background so it keeps running even if I close the terminal?", "response": "nohup ./server.sh > output.log 2>&1 &"}
39
+ {"prompt": "[zsh] How do I print all currently set environment variables sorted alphabetically?", "response": "env | sort"}