Skip to content

Instantly share code, notes, and snippets.

View duard's full-sized avatar

Carlos Eduardo duard

View GitHub Profile
@duard
duard / feature-flags.json
Last active June 16, 2023 15:48
feature flags angular
{
"access": {
"validateJWTStart": true
},
"routes": {
"main": true,
"home": true,
"usuarios": true,
"arquivo-deposito": true,
"privacy-policy": false,
@duard
duard / gist:8994232c933fd3142064de726eb865e9
Last active September 27, 2022 16:37
install minikube arch linux
sudo pacman -Sy libvirt qemu ebtables dnsmasq;
sudo usermod -a -G libvirt $(whoami);
newgrp libvirt;
sudo systemctl start libvirtd.service;
sudo systemctl enable libvirtd.service;
sudo systemctl start virtlockd.service;
sudo systemctl enable virtlockd.service;
@duard
duard / teste.carlos
Created September 13, 2022 18:27
config-pedro
// 20220414090200
// https://gist.githubusercontent.com/duard/f2b717e8c84bc77e639ebd77fd68e55b/raw/712d49023bc977c5812891802741ab70b526e029/gistfile1.txt
{
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.renderWhitespace": "all",
"editor.tabCompletion": "on",
"editor.fontFamily": "FiraCode Nerd Font Mono, 'VictorMono Nerd Font'",
"editor.fontLigatures": "'zero', 'ss02', 'ss03', 'ss04', 'ss05', 'calt'",
"editor.fontSize": 13,
{
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.renderWhitespace": "all",
"editor.tabCompletion": "on",
"editor.fontFamily": "'OperatorMono-Book', 'JetBrainsMono Nerd Font'",
"editor.fontLigatures":"'zero', 'ss02', 'ss03', 'ss04', 'ss05', 'calt'",
"editor.fontWeight": "200",
"typescript.format.enable": true,
"editor.multiCursorModifier": "alt",
{
"keyboard.dispatch": "keyCode",
"security.workspace.trust.untrustedFiles": "open",
// "editor.fontFamily": "Firacode, 'Fira Code', Fira Code, Dank Mono,Operator Mono, Operator Mono",
"editor.fontWeight": "300",
"editor.lineHeight": 18,
// "terminal.integrated.fontFamily": "'RobotoMono Nerd Font'",
"terminal.integrated.fontFamily": "'Hack Nerd Font'",
"terminal.integrated.fontSize": 14,
"editor.multiCursorModifier": "alt",
@duard
duard / WoeUSB.md
Created January 5, 2022 13:41
Install WoeUSB ubuntu, debian
sudo apt update
  sudo apt install git p7zip-full python3-pip python3-wxgtk4.0
  sudo pip3 install WoeUSB-ng
@duard
duard / vscode.json
Created July 14, 2021 17:49
vscode configurations
{
"editor.tabSize": 2,
"editor.fontFamily": "Dank Mono, Operator Mono, Firacode, 'Fira Code', Fira Code, Consolas, 'Courier New', monospace",
"terminal.integrated.fontFamily": "Hack Nerd Font, hack",
"terminal.integrated.rendererType": "dom",
"workbench.startupEditor": "newUntitledFile",
"workbench.iconTheme": "material-icon-theme",
"files.associations": {
"*.svelte": "html"
},
@FranciscoPioner#9602 @stanquini#6953 @KingFarofa#2805 @Diego Soares#2779 cada um pegue dois e vamos buildar e subir para produção os cards
```
# a partir da branch develop
npm run build --env=p --component=Homes/Livraria/nome-do-card --height=439 --width=732
# tamano dos cads para referencia
Homes/Livraria/mvLojaMercado 680x1106 BBAGxGIA d2MtbXZsb2phbWVyY2Fkby1saXZyYXJpYS1CQkFHeEdJQQ==
Homes/Livraria/ticketMedioPeriodo 510x1106 BBAGxFBA d2MtdGlja2V0bWVkaW9wZXJpb2RvLWxpdnJhcmlhLUJCQUd4RkJB
@duard
duard / users-domain.js
Created March 31, 2021 20:36
filter users-domain
import AggregateRoot from '~sdk-ddd/aggregate-root'
import profiles from '~enum/profiles'
import KeycloakProvider, {
KeycloakAdapter
} from '~providers/keycloak-provider'
import { UploadFile } from '~handlers'
import { ResourceNotFound, Forbidden, ResourceDuplicated } from '~errors'
import HttpService from '~sdk-http/http-service'
// import { ioc } from '@adonisjs/fold'
@duard
duard / mysql-install-macos-homebrew.md
Created October 28, 2020 17:18
Instalar Mysql no macOS

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.