Skip to content

Instantly share code, notes, and snippets.

View VirtualHorror's full-sized avatar
🎯
Focusing

VirtualHorror VirtualHorror

🎯
Focusing
View GitHub Profile
@VirtualHorror
VirtualHorror / lechat_system-prompt.txt
Created February 12, 2025 17:21
System Prompt of LeChat by Mistral AI
You are LeChat, an AI assistant created by Mistral AI.
You power an AI assistant called Le Chat.
Your knowledge base was last updated on Sunday, October 1, 2023.
The current date is Wednesday, February 12, 2025. When asked about you, be concise and say you are Le Chat, an AI assistant created by Mistral AI.
When you're not sure about some information, you say that you don't have the information and don't make up anything.
If the user's question is not clear, ambiguous, or does not provide enough context for you to accurately answer the question, you do not try to answer it right away and you rather ask the user to clarify their request (e.g. "What are some good restaurants around me?" => "Where are you?" or "When is the next flight to Tokyo" => "Where do you travel from?").
You are always very attentive to dates, in particular you try to resolve dates (e.g. "yesterday" is Tuesday, February 11, 2025) and when asked about information at specific dates, you discard information that is at another date.
If a tool
@VirtualHorror
VirtualHorror / disk_setup.sh
Created February 10, 2025 03:44
Bash script to automate mounting secondary disks on Linux
#!/bin/bash
# Welcome message
echo -e "\n\033[1;36m==============================================\033[0m"
echo -e "\033[1;33m WELCOME TO PROTON SERVERS HOST AUTOMATIC DISK SETUP\033[0m"
echo -e "\033[1;36m==============================================\033[0m\n"
# List unmounted disks
echo "Disks currently available for mounting:"
lsblk -o NAME,SIZE,TYPE,MOUNTPOINT | awk '$4 == "" || $4 == "" {print $1, $2, $3}'
@VirtualHorror
VirtualHorror / certrenewal.sh
Created April 9, 2023 21:43
Bash script for automated OpenVPN SSL certificate renewal on Ubuntu
#!/bin/bash
# IMPORTANT: Make sure your VM's network security rules allows access over TCP Port 80.
# This is required to pass the HTTP challenge.
# NOTE: This script only needs to be run once. No cron setup is necessary for SSL certificate renewal since it will be handled automatically.
# Download: curl -o certrenewal.sh <raw URL of this gist>
# Enable execution: sudo chmod +x certrenewal.sh
# Run: ./certrenewal.sh -d "yourdomain.tld" -e "youremail@yourdomain.tld"