Skip to content

Commit

Permalink
revisão de configurações e implementações antigas
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioconselheiro committed Oct 18, 2023
1 parent 8e51d20 commit be03502
Show file tree
Hide file tree
Showing 41 changed files with 47 additions and 7 deletions.
9 changes: 8 additions & 1 deletion .devcontainer/Dockerfile.dev → .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
FROM node:16.3.0
FROM node:20

RUN npm install typescript node-typescript -g
RUN npm install npx nx -g --force
WORKDIR /nostrbot

COPY ./.gitconfig /root/.gitconfig
COPY ./.ssh /root/.ssh
RUN chmod 600 -R /root/.ssh

ENV LANG C.UTF-8
ENV TZ America/Sao_Paulo

# The run the start script
CMD [ "/bin/bash" ]
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.vscode-typescript-next",
"manishsencha.readme-preview",
"wix.vscode-import-cost",
"eamodio.gitlens",
"fabiospampinato.vscode-diff",
"Shinymimikyu.pokemon-color",
Expand Down
3 changes: 1 addition & 2 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
container_name: nostrboot-btc2poke-dev
build:
context: ../.
dockerfile: ./.devcontainer/Dockerfile.dev
dockerfile: ./.devcontainer/Dockerfile
working_dir: /pokeboot
volumes:
- ..:/pokeboot:cached
Expand All @@ -31,7 +31,6 @@ services:
- NOSTR_PRIVATE_NSEC_FILE=/run/secrets/nostr_keys
- COINAPI_PRIVATE_KEY_FILE=/run/secrets/coinapi_keys
- NOSTR_RELAYS=wss://nostr.plebchain.org;wss://nostr.rocks;wss://nostr.relayer.se;wss://relay.nostr.ch;wss://relay.mostr.pub;wss://nostr-pub.wellorder.net;wss://relay.snort.social;wss://nostr.bitcoiner.social;wss://nostr.inosta.cc;wss://puravida.nostr.land;wss://nostr.milou.lol;wss://brb.io;wss://nostr.zebedee.cloud;wss://nostr.frennet.xyz
- TZ=America/Sao_Paulo
tty: true
secrets:
- nostr_keys
Expand Down
Empty file modified .devcontainer/keys_coinapi_dev.txt
100644 → 100755
Empty file.
29 changes: 29 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#bin/bash

cd ..;

echo "Github name:"
read githubnome

echo "Github e-mail:"
read githubemail

echo "With no spaces, write a label to ssh key:"
read sshnome

mkdir .ssh
mkdir node_modules;

ssh-keygen -t ed25519 -C $sshnome -f ".ssh/id_ed25519"

echo "[user]
email = $githubemail
name = $githubnome
[core]
editor = code --wait
[safe]
directory = /pokeboot" > .gitconfig

echo "now paste the content of .ssh/id_ed25519.pub into https://github.com/settings/ssh/new"
Empty file modified .editorconfig
100644 → 100755
Empty file.
Empty file modified .eslintignore
100644 → 100755
Empty file.
Empty file modified .eslintrc.json
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

.gitconfig
.ssh

# compiled output
dist
tmp
Expand Down
Empty file modified .prettierignore
100644 → 100755
Empty file.
Empty file modified .prettierrc
100644 → 100755
Empty file.
Empty file modified .vscode/extensions.json
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified TODO
100644 → 100755
Empty file.
Empty file modified jest.config.ts
100644 → 100755
Empty file.
Empty file modified jest.preset.js
100644 → 100755
Empty file.
3 changes: 1 addition & 2 deletions nx.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"default": {
"runner": "@nrwl/nx-cloud",
"options": {
"cacheableOperations": ["build", "lint", "test", "e2e"],
"accessToken": "NTgxMDM2ZTQtYjg1MC00ZTBiLWFmZjAtODJiZGI5MTRlNzFifHJlYWQtd3JpdGU="
"cacheableOperations": ["build", "lint", "test", "e2e"]
}
}
},
Expand Down
Empty file modified package-lock.json
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"@nrwl/jest": "15.9.2",
"@nrwl/js": "^15.9.2",
"@nrwl/linter": "15.9.2",
"@nrwl/nx-cloud": "latest",
"@nrwl/workspace": "15.9.2",
"@types/jest": "^29.4.0",
"@types/node": "16.11.7",
Expand Down
Empty file modified packages/.gitkeep
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/.eslintrc.json
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/Dockerfile
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/README.md
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/docker-compose.yml
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/jest.config.ts
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/package.json
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/project.json
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/src/bitcoin-price.resultset.ts
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/src/bitcoin-price.service.ts
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/src/bitcoin-to-pokemon.service.ts
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/src/pokelist.json
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/src/pokemon.resultset.ts
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/src/post-content-status.enum.ts
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/src/publish-memory.service.ts
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion packages/btc2poke/src/relays.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export class RelaysService {
pubkey: user.publicKeyHex,
// eslint-disable-next-line @typescript-eslint/naming-convention
created_at: this.getCurrentTimestamp(),
tags: [],
tags: Array.from(message.match(/#[^\s]+\w/g) || [])
.map(hashtag => ['t', hashtag.replace(/^#/, '')]),
content: message
}
const id = getEventHash(unsignedEvent)
Expand Down
Empty file modified packages/btc2poke/tsconfig.json
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/tsconfig.lib.json
100644 → 100755
Empty file.
Empty file modified packages/btc2poke/tsconfig.spec.json
100644 → 100755
Empty file.
Empty file modified tools/generators/.gitkeep
100644 → 100755
Empty file.
Empty file modified tools/tsconfig.tools.json
100644 → 100755
Empty file.
Empty file modified tsconfig.base.json
100644 → 100755
Empty file.

0 comments on commit be03502

Please sign in to comment.