Skip to content

Instantly share code, notes, and snippets.

View nandofalcao's full-sized avatar
🧑‍💻

Fernando Falcao nandofalcao

🧑‍💻
View GitHub Profile
@nandofalcao
nandofalcao / google-dorks
Created April 21, 2025 03:17 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@nandofalcao
nandofalcao / GoogleDorking.md
Created April 21, 2025 03:16 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@nandofalcao
nandofalcao / Graphql instrospect.md
Last active March 25, 2025 15:09
Graphql introspect
  1. Consultar o esquema GraphQL para obter metadados da mutation especificada
  2. Gerar automaticamente um formulário com validação apropriada
  3. Lidar com envio do formulário executando a mutation

import React, { useState, useEffect } from 'react'; import { useApolloClient, gql, useMutation

@nandofalcao
nandofalcao / extensions.json
Last active March 5, 2025 05:10
VSCode Settings
{
"recommendations": [
"aaron-bond.better-comments",
"alefragnani.project-manager",
"aslamanver.vsc-export",
"bradlc.vscode-tailwindcss",
"chadalen.vscode-jetbrains-icon-theme",
"codezombiech.gitignore",
"dbaeumer.vscode-eslint",
"enkia.tokyo-night",
@nandofalcao
nandofalcao / next-csp.ts
Last active August 30, 2024 14:23
Next CSP
import { NextResponse, type NextRequest } from "next/server";
export function middleware(request: NextRequest) {
const nonce = Buffer.from(crypto.randomUUID()).toString("base64");
const cspHeader = `
default-src 'self';
script-src 'self' 'nonce-${nonce}' 'strict-dynamic' https: http: 'unsafe-inline' ${
process.env.NODE_ENV === "production" ? "" : `'unsafe-eval'`
};
style-src 'self' 'nonce-${nonce}';
@nandofalcao
nandofalcao / linux-setup.sh
Created June 13, 2024 03:49 — forked from dhh/linux-setup.sh
linux-setup.sh
# THIS LINUX SETUP SCRIPT HAS MORPHED INTO A WHOLE PROJECT: HTTPS://OMAKUB.ORG
# PLEASE CHECKOUT THAT PROJECT INSTEAD OF THIS OUTDATED SETUP SCRIPT.
#
#
# Libraries and infrastructure
sudo apt update -y
sudo apt install -y \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
@nandofalcao
nandofalcao / create_x509_certs.md
Created December 28, 2023 18:12 — forked from dasniko/create_x509_certs.md
Creating self signed tls certificates with self-signed root CA
@nandofalcao
nandofalcao / arrayzing.md
Last active June 28, 2023 21:22 — forked from ourmaninamsterdam/LICENSE
Arrayzing - The JavaScript array cheatsheet
@nandofalcao
nandofalcao / jest-test-tips.md
Last active June 12, 2022 00:35
Jest Best Practices - What is the difference between 'it' and 'test' in Jest?

What is the difference between 'it' and 'test' in Jest?

test

What you write:

describe('yourModule', () => {
  test('if it does this thing', () => {});
  test('if it does the other thing', () => {});
});
@nandofalcao
nandofalcao / karabiner-complex.json
Last active May 30, 2022 05:15
Complex Modification for karabiner
{
"title": "Switch desktop, Mission Control and Divvy shortcut",
"rules": [
{
"description": "Switch desktop, Mission Control and Divvy shortcut",
"manipulators": [
{
"type": "basic",
"from": {
"pointing_button": "button5"