This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# sudo curl -s https://gist.githubusercontent.com/xxx/xxx/raw/3xxx/rabbitmq-install.sh | bash -s | |
rabbit_deb=rabbitmq-server_3.6.15-1_all.deb | |
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.15/"$rabbit_deb" | |
dpkg -i "$rabbit_deb" | |
sudo apt-get -f -y install | |
rm "$rabbit_deb" | |
#rabbitmq wants this dir in ubuntu, but things should work without it exist | |
sudo mkdir /etc/rabbitmq/rabbitmq.conf.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# executar com sudo | |
# wget -O - thisUrl | bash | |
apt-get install apt-transport-https -y | |
apt-get update -y && apt-get upgrade -y && apt-get install curl -y | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Correlação de Pearson</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script> | |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:18.0.0-alpine | |
ARG SSH_KEY | |
RUN apk add --no-cache dumb-init | |
ENTRYPOINT ["/usr/bin/dumb-init", "--"] | |
WORKDIR /usr/src/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Parser from "rss-parser"; | |
import OpenAI from "openai"; | |
import axios from "axios"; | |
import clipboardy from "clipboardy"; | |
let parser = new Parser(); | |
const api = new OpenAI({ | |
apiKey: "paste_here", | |
}); |