Skip to content

Instantly share code, notes, and snippets.

View juliosouzam's full-sized avatar
๐ŸŽฏ
Focusing

Jรบlio Cรฉsar juliosouzam

๐ŸŽฏ
Focusing
  • Solar Coca Cola
  • Fortaleza-CE
View GitHub Profile
@juliosouzam
juliosouzam / fix-sysctl.txt
Created June 22, 2021 18:52 — forked from iamcryptoki/fix-sysctl.txt
Fix sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables.
$ modprobe bridge
$ echo "net.bridge.bridge-nf-call-iptables = 1" >> /etc/sysctl.conf
$ sysctl -p /etc/sysctl.conf
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-ip6tables: No such file or directory
# SOLUTION
$ modprobe br_netfilter
$ sysctl -p /etc/sysctl.conf
@juliosouzam
juliosouzam / multi-select.js
Created May 4, 2021 06:26 — forked from csandman/README.md
A Chakra UI wrapper for react-select, made to be used as a multi-select which Chakra does not currently have
/* eslint-disable no-underscore-dangle */
// Demo: https://codesandbox.io/s/chakra-ui-react-select-648uv?file=/multi-select.js
import React from 'react';
import Select, { components as selectComponents } from 'react-select';
import {
Flex,
Tag,
TagCloseButton,
TagLabel,

Problem

In Arch Linux mkinitcpio -p linux

shows

Possibly missing firmware for module: aic94xx
 Possibly missing firmware for module: wd719x
@juliosouzam
juliosouzam / discord_oauth2.md
Created January 29, 2021 22:14 — forked from Vap0r1ze/discord_oauth2.md
Discord OAuth2 Flow

Discord OAuth2

Step 1

You: Redirect User to https://discordapp.com/api/oauth2/authorize

Query Params
name value
client_id Your application's Client ID
scope A list of scopes, delimited by spaces
redirect_uri The uri to send the user after authorization

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@juliosouzam
juliosouzam / gist:b8d99006636d1195c514fef61b174616
Created February 13, 2020 19:38 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@juliosouzam
juliosouzam / cpf_cnpj_validator
Created February 12, 2020 20:51 — forked from igorcosta/cpf_cnpj_validator
Regex para validar CPF e CNPJ
Para CPF
/^\d{3}\.\d{3}\.\d{3}\-\d{2}$/
Para CNPJ
/^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/
Para ambos ao mesmo tempo

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@juliosouzam
juliosouzam / index.sh
Created January 23, 2020 13:02 — forked from max-mapper/index.sh
generate ES512 and RS256 elliptic curve keypairs for JWT JWK (JSON Web Token JSON Web Key) using openssl
# RS256
# private key
openssl genrsa -out rs256-4096-private.rsa 4096
# public key
openssl rsa -in rs256-4096-private.rsa -pubout > rs256-4096-public.pem
# ES512
# private key
openssl ecparam -genkey -name secp521r1 -noout -out ecdsa-p521-private.pem
# public key
@juliosouzam
juliosouzam / README.md
Last active January 19, 2020 02:50 — forked from rstacruz/README.md
Setting up Babel and TypeScript

Install Babel 7 and TypeScript

yarn add -D @babel/core \
  @babel/cli \
  @babel/preset-typescript \
  @babel/preset-env \
  @babel/plugin-proposal-class-properties \
  @babel/plugin-proposal-object-rest-spread \
  typescript