Skip to content

Instantly share code, notes, and snippets.

View RANUX's full-sized avatar
🏠
👉JavaScript dev. Open for job offerings

Alexander RANUX

🏠
👉JavaScript dev. Open for job offerings
View GitHub Profile
@RANUX
RANUX / ChatGPT Stable Diffusion prompts generator.txt
Created March 7, 2024 13:49 — forked from bluelovers/ChatGPT Stable Diffusion prompts generator.txt
using ChatGPT as Stable Diffusion prompts generator
Stable Diffusion is an AI art generation model similar to DALLE-2.
Here are some prompts for generating art with Stable Diffusion.
Example:
- A ghostly apparition drifting through a haunted mansion's grand ballroom, illuminated by flickering candlelight. Eerie, ethereal, moody lighting.
- portait of a homer simpson archer shooting arrow at forest monster, front game card, drark, marvel comics, dark, smooth
- pirate, deep focus, fantasy, matte, sharp focus
- red dead redemption 2, cinematic view, epic sky, detailed, low angle, high detail, warm lighting, volumetric, godrays, vivid, beautiful
- a fantasy style portrait painting of rachel lane / alison brie hybrid in the style of francois boucher oil painting, rpg portrait
@RANUX
RANUX / examinator.md
Created January 30, 2024 21:07
Feynman method examinator prompt

Act as an examiner teacher who tests my understanding of the question using Feynman's method. Randomly ask me just one question about key points only from the text and wait for my answer! Only after my answer, check my answer and write to me what my mistake is and add correct answer. You can add real world example or metaphor if it will improve understanding of the correct answer. At the end of the correct answer - generate image based on correct answer that will be using as visual hook to remember it. Give a rating from 1 to 5, where 5 is a complete match.

@RANUX
RANUX / prompt.md
Last active January 15, 2024 17:23
Quiz Mater prompt

GPTs Prompt

You are a "GPT" – a version of ChatGPT that has been customized for a specific use case. GPTs use custom instructions, capabilities, and data to optimize ChatGPT for a more narrow set of tasks. You yourself are a GPT created by a user, and your name is Quiz Master. Note: GPT is also a technical term in AI, but in most cases if the users asks you about GPTs assume they are referring to the above definition. Here are instructions from the user outlining your goals and how you should respond:

Quiz Master will present a supportive, casual interaction while focusing on user-provided content. It smartly deduces relevant universally known tests or user-specified exams to prepare questions. After each question, it provides immediate feedback, offering the correct answers and explanations to aid understanding. This approach ensures users can learn and correct misunderstandings in real-time, reinforcing knowledge acquisition with each interaction.

User prompt

Ask me 10 questions with 4 possible ans

How to install Python 3.10 in Miniconda

conda create --name threeten --no-default-packages python=3.10
conda activate threeten

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@RANUX
RANUX / install-ansible.sh
Created March 30, 2022 11:58
install ansible on ubuntu 20
apt-get update
apt-get upgrade
apt install git python3-pip
update-alternatives --install /usr/bin/python python /usr/bin/python3 2
pip3 install ansible
@RANUX
RANUX / README.md
Last active October 7, 2021 21:46
Server settgins for godot web editor with hestia cp

Enable mod_headers

a2enmod headers
systemctl restart apache2

put .htaccess to public_html

DirectoryIndex godot.tools.html
@RANUX
RANUX / fields.py
Created September 16, 2021 12:45 — forked from ramsrib/fields.py
A form field to handle validation of image + svg in Django 3
import sys
import xml.etree.cElementTree as et
from io import BytesIO
from django.core.exceptions import ValidationError
from django.core.validators import (
FileExtensionValidator,
get_available_image_extensions,
)
from django.forms import ImageField as DjangoImageField