. # Repository root
├── .github/ # CI/CD workflows configurations
│ └── workflows/
│ ├── ci.yml # Test and lint pipeline
│ └── cd.yml # Deploy pipeline
This file contains hidden or 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 pymongo import MongoClient | |
from datetime import datetime | |
import uuid | |
from urllib.parse import quote_plus | |
USER = "master" | |
PASSWORD = quote_plus("password") # encodes the password | |
HOST = "localhost" | |
AUTH_DB = "admin" | |
DATABASE = "database_name" |
This file contains hidden or 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 pymongo import MongoClient | |
import json | |
from datetime import datetime | |
from urllib.parse import quote_plus | |
USER = "master" | |
PASSWORD = quote_plus("password") # encodes the password | |
PASSWORD_PROD = quote_plus("password_prod") | |
HOST = "localhost" | |
HOST_PROD = "cluster.com" |
This file contains hidden or 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
#sudo vim /etc/X11/xorg.conf.d/20-intel.conf | |
#FileContent | |
Section "Device" | |
Identifier "IntelGPU" | |
Driver "intel" | |
Option "AccelMethod" "sna" | |
# Option "TearFree" "true" | |
EndSection |
This file contains hidden or 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
vim ~/.XCompose | |
include "%L" | |
<dead_acute> <c> : "ç" U+00E7 | |
<dead_acute> <C> : "Ç" U+00C7 | |
#Log out afterwards so that the system complies with the instruction |
This file contains hidden or 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 os | |
import csv | |
# Gets the user's HOME directory | |
home_dir = os.path.expanduser("~") | |
# Dynamically builds the path for the input and output CSV | |
input_csv_path = os.path.join(home_dir, "Downloads", "test", "base.csv") | |
output_csv_path = os.path.join(home_dir, "Downloads", "test", "base_altered.csv") |
This file contains hidden or 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
# Use a base image com Java 11 | |
FROM openjdk:11-jdk-slim | |
# Define o mantenedor do Dockerfile | |
LABEL maintainer="[email protected]" | |
# Atualiza os pacotes e instala o Maven | |
RUN apt-get update && apt-get install -y maven | |
# Cria um diretório para a aplicação |
This file contains hidden or 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
------------------------------------------------------------------------------------------------------------------ | |
VS-CODE | |
Depuração: | |
Step Over: F10 | |
Step Into: F11 | |
Step Out: Shift + F11 | |
Resume Program: F5 | |
Pause Program: F6 |
This file contains hidden or 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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"args": [], | |
"cwd": "${workspaceRoot}", | |
"env": { | |
"NODE_ENV": "development" | |
}, | |
"name": "DEBUG", |
This file contains hidden or 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
class Utilities { | |
public static isValidStringHeaders(headers: string): boolean { | |
const regex = /^[a-zA-Z0-9,_]+$/; | |
return regex.test(headers); | |
} | |
public static isValidStringHeaders(headers: string): boolean { | |
const allowedCharacters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_,'; | |
for (let i = 0; i < headers.length; i++) { |
NewerOlder