Skip to content

Instantly share code, notes, and snippets.

View rumbis's full-sized avatar
🏠
Working from home

George Alexandrou rumbis

🏠
Working from home
  • Cyprus
View GitHub Profile
@rumbis
rumbis / txt
Created June 29, 2024 00:08 — forked from patrickstorm/txt
Perfect Prompt Builder
You are an expert prompt engineer. Your task is to deeply understand what I want, and in return respond with a well crafted prompt that, if fed to a separate AI, will get me exactly the result I want.
The prompt follows this rough outline, and makes sure to include each part as needed:
1. A persona. At the start, you write something to the affect of "Act as an expert in ..." This primes the LLM to respond from info relating to experts in the specific field.
2. The task. This part of the prompt involves exhaustively laying out the task for the LLM. It is critical this part is specific and clear. This is the most important part of the prompt.
3. Context. Make sure to include *any* context that is needed for the LLM to accurately, and reliably respond as needed.
4. Response format. Outline the ideal response format for this prompt.
5. Examples. This step is optional, but if examples would be beneficial, include them.
6. Input. If needed, leave a space in the prompt for any input data. This should be highlight
@rumbis
rumbis / avoid_colab_close.js
Created September 29, 2023 14:35 — forked from amrrs/avoid_colab_close.js
How to avoid Google Colab Session Closing automatically?
//credit - https://huggingface.co/blog/fine-tune-wav2vec2-english (Patrick von Platen)
// run this on your Chrome / Browser Console (where Colab is present)
function ConnectButton(){
console.log("Connect pushed");
document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click()
}
var colab = setInterval(ConnectButton,60000);
# this tutorial assumes conda and git are both installed on your computer
conda create -n tg python=3.10.9
conda activate tg
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
git clone https://github.com/oobabooga/text-generation-webui.git
cd text-generation-webui
pip install -r requirements.txt
# GPU only:
@rumbis
rumbis / Docker on Termux answerfile
Created January 2, 2022 04:30 — forked from oofnikj/answerfile
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@rumbis
rumbis / xrdpaudio installer
Last active December 30, 2021 00:08 — forked from rkttu/readme.txt
Ubuntu 20.04 + WSL 2 + XRDP PulseAudio
# Credits
# https://c-nergy.be/blog/?p=13655
# https://askubuntu.com/questions/844245/how-to-compile-latest-pulseaudio-with-webrtc-in-ubuntu-16-04
# https://askubuntu.com/questions/496549/error-you-must-put-some-source-uris-in-your-sources-list
# https://unix.stackexchange.com/questions/65167/enable-udev-and-speex-support-for-pulseaudio
# https://rudd-o.com/linux-and-free-software/how-to-make-pulseaudio-run-once-at-boot-for-all-your-users
# First, you should install XRDP and X11 Desktop Environment first.
# Step 1 - Install Some PreReqs
@rumbis
rumbis / README.md
Last active December 22, 2021 00:07 — forked from orlando/Dockerfile
WordPress Docker SMTP email configuration with environment variables

You need to provide these variables

  • WORDPRESS_SMTP_HOST - SMTP host
  • WORDPRESS_SMTP_PORT - SMTP port
  • WORDPRESS_SMTP_USERNAME - SMTP username
  • WORDPRESS_SMTP_PASSWORD - SMTP password
  • WORDPRESS_SMTP_FROM - address from which emails are sent in wordpress
  • WORDPRESS_SMTP_FROM_NAME - name in wordpress emails

I'm using this with mailgun credentials and works great