Skip to content

Instantly share code, notes, and snippets.

View joaobibiano's full-sized avatar

João Bibiano joaobibiano

View GitHub Profile
[
{
"isoCode": "AF",
"name": "Afghanistan",
"phonecode": "93",
"flag": "🇦🇫",
"currency": "AFN",
"latitude": "33.00000000",
"longitude": "65.00000000",
"timezones": [
@joaobibiano
joaobibiano / App.tsx
Created July 31, 2022 22:25
Código da Vídeo sobre React com typescript
import { useState } from "react";
import "./App.css";
type TypographyProps = {
children: React.ReactNode;
size?: "small" | "large";
};
type ParagraphProps = {
color: string;
@joaobibiano
joaobibiano / extensions-and-configs.md
Created January 23, 2022 12:20
My extensions and configuration for VSCODE

Configurations

{
  "editor.fontSize": 14,
  "editor.lineHeight": 24,
  "editor.fontFamily": "JetBrains Mono",
  "editor.fontLigatures": true,
  "explorer.compactFolders": false,
  "editor.rulers": [80, 120],
server {
server_name testdeploy.rocketseat.com.br;
location / {
proxy_pass http://127.0.0.1:3333;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@joaobibiano
joaobibiano / mssql-server-linux-fts.sh
Created September 25, 2020 11:11 — forked from avernet/mssql-server-linux-fts.sh
SQL Server Docker instance with full-text search (FTS)
# mssql-agent-fts-ha-tools
# Maintainers: Microsoft Corporation (LuisBosquez and twright-msft on GitHub)
# GitRepo: https://github.com/Microsoft/mssql-docker
# Base OS layer: Latest Ubuntu LTS + mssql-server-linux (SQL Server engine + tools)
FROM microsoft/mssql-server-linux
#Install curl since it is needed to get repo config
# Get official Microsoft repository configuration
RUN export DEBIAN_FRONTEND=noninteractive && \
@joaobibiano
joaobibiano / README.md
Created August 19, 2020 14:22 — forked from jasonblanchard/README.md
Watching build mode on Create React App

Create React App does not provide watching build mode oficially (#1070).

This script provides watching build mode for an external tool such as Chrome Extensions or Firebase app.

How to Use

Create a React app.

Put the script into scripts/watch.js.

SELECT
"class"."id" AS "class_id",
"class"."createdAt" AS "class_createdAt",
"class"."updatedAt" AS "class_updatedAt",
"class"."title" AS "class_title"
FROM
"class" "class"
INNER JOIN
"time_availability" "timeAvailability"
#run with Powershell -ExecutionPolicy Bypass -file .\forwardports.ps1
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteport = $matches[0];
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
}
{
"newLines": [
{
"identifier": "PT1.BILN.2130004",
"lotCode": null,
"itemType": 1,
"firstChildLine": null,
"parentLine": null,
"siblingLine": null,
"lastChildLine": null,
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
readonly string MyAllowSpecificOrigins = "_myAllowSpecificOrigins";
public IConfiguration Configuration { get; }