vim /opt/bitnami/apache2/conf/vhosts/myapp-https-vhost.conf
then insert
RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}
RequestHeader set X-Forwarded-SSL expr=%{HTTPS}
import zmq from "zeromq"; | |
const SOCKET_ADDRESS = "tcp://127.0.0.1:3000" | |
const connectZeroMQ = () => { | |
const socket = zmq.socket('sub'); | |
socket.connect(SOCKET_ADDRESS); | |
socket.subscribe(''); |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.7; | |
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; | |
contract RandomNumber is VRFConsumerBase { | |
bytes32 internal keyHash; | |
uint256 internal fee; | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.7; | |
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; | |
contract Aggregator { | |
AggregatorV3Interface internal priceFeed; | |
/** |
import nodemailer, { Transporter } from 'nodemailer' | |
import fs from 'fs'; | |
import handlebars from 'handlebars'; | |
import { SES } from 'aws-sdk' | |
import { SESClient, SendEmailCommand } from '@aws-sdk/client-ses'; | |
import { IMailParams, IMailProvider } from '../protocols/IMailProvider'; | |
import { config } from '@config/config'; |
const BigNumber = require("bignumber.js"); | |
BigNumber.config({ | |
DECIMAL_PLACES: 1, | |
ROUNDING_MODE: BigNumber.ROUND_FLOOR | |
}); | |
function generateRandomNrBetween(min, max) { | |
return BigNumber.random(1) | |
.times(max - min) |
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; | |
contract BetHouse is ReentrancyGuard { | |
address payable _owner; | |
uint256 betPrice = 0.001 ether; | |
uint256 firstReward = 0.002 ether; |
Perguntas em inglês | |
1. Why are you interested in this position/job? | |
2. What are your tasks at your job? | |
2. Why do you want to leave your current job? | |
3. Where do you see yourself in __ years? | |
4. What is your hobby? What do you like to do? |
[ | |
{ | |
"name": "default", | |
"type": "postgres", | |
"host": "localhost", | |
"port": 5432, | |
"username": "manel", | |
"password": "postgres", | |
"database": "gostack_gobarber", | |
"entities": ["./src/modules/**/infra/typeorm/entities/*.ts"], |
{ | |
// Define o tema do VSCode | |
"workbench.colorTheme":"Dracula", | |
"eslint.enable": true, | |
// Configura tamanho e família da fonte | |
"editor.fontSize":13, | |
"editor.lineHeight":20, | |
"editor.fontFamily":"Fira Code", | |
"editor.fontLigatures":true, |