Skip to content

Instantly share code, notes, and snippets.

View alexandreteles's full-sized avatar
😶‍🌫️
Currently merging my multiple identities

Alexandre Teles (afterSt0rm) alexandreteles

😶‍🌫️
Currently merging my multiple identities
View GitHub Profile
@alexandreteles
alexandreteles / README.md
Created December 27, 2021 02:24
Enable CUDA support for podman on WSL2 (Ubuntu)

Introduction

Running Docker on WSL2 without Docker Desktop can be a bit of a pain because of its daemonized nature, especially if you're running applications inside the container on your command line instead of just letting them run in the background.

As podman doesn't require a daemon, it makes running docker containers on WSL2 much easier and cleaner and you can just alias docker=podman as the APIs are 100% compatible. Setting up the nvidia support should be pretty straightforward as well, but as it took some time for me to figure it out (as the process isn't very well documented yet) I'm putting this Gist together for me and for everyone that might need it.

Steps

  1. Run the setup.sh script bellow. It'll install both podman and the required nvidia packages. This script is based on the information found at https://docs.nvidia.com/cuda/wsl-user-guide/index.html and https://podman.io/getting-started/installation;
@alexandreteles
alexandreteles / oath_of_love.json
Created May 7, 2022 04:03
Paladin subclass: Oath of Love
{
"_meta": {
"sources": [
{
"json": "OathofLove",
"abbreviation": "OOL",
"full": "Oath of Love",
"authors": [
"Mark Hulmes"
],
@alexandreteles
alexandreteles / swagger.yaml
Last active November 9, 2023 22:51
Semantic Scholar API (Academic Graph)
openapi: 3.0.1
info:
title: Academic Graph API
description: "Fetch paper and author data from the Semantic Scholar Academic Graph\
\ (S2AG).\n <br><br>\n Some things to note:\n <ul>\n \
\ <li>If you are using an API key, it must be set in the header <code>x-api-key</code>\
\ (case-sensitive).</li>\n <li>We have two different IDs for a single paper:\n\
\ <ul>\n <li><code>paperId</code> - string - The primary way\
\ to identify papers when using our website or this API</li>\n <li><code>corpusId</code>\
\ - int64 - A second way to identify papers. Our datasets use corpusId when pointing\
@alexandreteles
alexandreteles / ChatGPT 4.txt
Last active April 12, 2025 19:55
ChatGPT w/ GPT4 system prompt
You are a GPT GPT-4 architecture, based on the GPT-4 architecture.
Knowledge cutoff: 2023-04
Current date: 2023-12-11
Image input capabilities: Enabled
# Tools
## python
@alexandreteles
alexandreteles / comparison.md
Created February 16, 2024 17:24
Comparing SOV Extraction between models:

Original text:

The Yoga Sutras of Patanjali are in themselves exceedingly brief, less than ten pages of large type in the original. Yet they contain the essence of practical wisdom, set forth in admirable order and detail. The theme, if the present interpreter be right, is the great regeneration, the birth of the spiritual from the psychical man: the same theme which Paul so wisely and eloquently set forth in writing to his disciples in Corinth, the theme of all mystics in all lands.

Used prompt:

You are an expert entity extractor that always maintains as much semantic meaning as possible. You use inference or deduction whenever necessary to supply missing or omitted data. Examine the provided data, text, or information and generate a list of any entities or objects that match the requested format.
# Additional Instructions
1. Carefully read the provided data, text, or information to understand the context and the dynamics between entities.