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 / 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.
@alexandreteles
alexandreteles / ChatGPT 4.txt
Last active July 28, 2024 15:08
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 / 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 / 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 / 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 / jokes.txt
Last active August 9, 2020 05:06
108 One-Liner Jokes As Punny As They Are Funny
I can’t believe I got fired from the calendar factory: all I did was take a day off!
|
Money talks: mine always says goodbye.
|
I went to see the doctor about my short-term memory problems — the first thing he did was make me pay in advance.
|
You have two parts of the brain, “left” and “right” — in the left side, there’s nothing right and in the right side, there’s nothing left.
|
Why do bees hum? They don’t remember the lyrics!
|
@alexandreteles
alexandreteles / functions.sh
Created March 25, 2015 14:58
Wrappers for Pandoc and Tidy-html5
corrigiridt () {
echo "Uso: corrigiridt arquivo.html";
tidy5 --indent yes -m -w 160 -utf8 -ashtml --drop-empty-elements no --drop-empty-paras no $1
}
gerarhtml5 () {
echo "Uso: gerarhtml5 pandoc.template header.html footer.html origem distino";
pandoc -S --template=$1 -B $2 -A $3 -f markdown -t html5 -s $4 -o $5;
}
@alexandreteles
alexandreteles / backupTools.sh
Created January 13, 2015 22:55
backupTools.sh - A Script to install etckeeper and bup
#!/bin/sh
yum update -y
yum localinstall http://mirror.globo.com/epel/6/i386/epel-release-6-8.noarch.rpm -y
yum update -y
MACHINE_TYPE=`getconf LONG_BIT`
if [ ${MACHINE_TYPE} == '64' ]; then
yum localinstall http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm -y
[mysqld]
log-error = /var/log/mysql/mariadb_err.log
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
[FASTCGI_SERVER]
ServerName php5-fpm
ServerPath /var/run/php5-fpm.sock
MaxConnections 20
[FASTCGI_LOCATION]
LocationName php5_location
ServerNames php5-fpm
KeepAlive On
Match .*\.php