Skip to content

Instantly share code, notes, and snippets.

View PauloLuan's full-sized avatar
💭
Ora et labora

Paulo Luan PauloLuan

💭
Ora et labora
View GitHub Profile
@PauloLuan
PauloLuan / check_file_size_mac.sh
Created September 27, 2024 13:16
check_file_size_mac.sh
## To find the largest 10 files (linux/bash):
find . -type f -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
## To find the largest 10 directories:
find . -type d -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
@PauloLuan
PauloLuan / install.sh
Created August 26, 2024 12:35
Orion installer sh
#!/bin/bash
## // ## // ## // ## // ## // ## // ## // ## //## // ## // ## // ## // ## // ## // ## // ## // ##
## ORION DESIGN ##
## // ## // ## // ## // ## // ## // ## // ## //## // ## // ## // ## // ## // ## // ## // ## // ##
## Cores
amarelo="\e[33m"
verde="\e[32m"
branco="\e[97m"
#!/bin/bash
## // ## // ## // ## // ## // ## // ## // ## //## // ## // ## // ## // ## // ## // ## // ## // ##
## ORION DESIGN ##
## // ## // ## // ## // ## // ## // ## // ## //## // ## // ## // ## // ## // ## // ## // ## // ##
versao() {
echo -e " \e[97mVersão do SetupOrion: \e[32mv. 2.5.9\e[0m "
echo -e "\e[32moriondesign.art.br/whatsapp1 \e[97m<----- Grupos no WhatsApp -----> \e[32moriondesign.art.br/whatsapp2\e[0m"
}
@PauloLuan
PauloLuan / debug_nextjs_browser.sh
Last active April 8, 2024 12:12
Debug nextjs on browser
NODE_OPTIONS='--inspect' next dev
@PauloLuan
PauloLuan / png_to_webp.sh
Last active February 27, 2024 18:59
png_to_webp.sh
#!/bin/bash
# Loop through all PNG files in the current directory
for png_file in *.png; do
if [ -f "$png_file" ]; then
# Get the filename without the extension
filename=$(basename -- "$png_file")
filename_noext="${filename%.*}"
# Convert the PNG to WebP
@PauloLuan
PauloLuan / clean_all_nodemodules_from_computer.sh
Created February 16, 2024 13:51
clean_all_nodemodules_from_computer.sh
#! /usr/bin/env sh
set -e
find "${1-"$(pwd)"}" -name 'node_modules' -type d -prune -exec rm -rf '{}' +
@PauloLuan
PauloLuan / Husky afiliado
Created May 9, 2023 14:38
Husky afiliado
https://husky.io?ref=zmqxzdu
@PauloLuan
PauloLuan / chatgpt_coding_inputs.md
Created January 27, 2023 12:37
ChatGPT coding inputs

Coding

  1. Act as senior front end developer
    1. I want you to act as a Senior Frontend developer. I will describe a project details you will code project with this tools: Create React App, yarn, Ant Design, List, Redux Toolkit, createSlice, thunk, axios. You should merge files in single index.js file and nothing else. Do not write explanations. My first request is "Create Pokemon App that lists pokemons with images that come from PokeAPI sprites endpoint"
  2. Create a TypeScript function that computes the implied volatility using the Black-Scholes model. Where the inputs are the underlying price, strike price, free-risk rate, and option price. Write it step by step, with an explanation for each step.
  3. I require UI assistance. I need three action buttons for a card component that includes a long statement, but I don’t want the buttons to always be visible. I need a good UI that functions on both desktop and mobile since if I try to show the buttons on Hoover, that logic won’t work on mobile.
  4. Act as a
@PauloLuan
PauloLuan / url_unshorten.sh
Created November 24, 2022 13:12
Unshorten URL's with CURL
cat urls.txt | while read f; do echo "${f}"; curl -Ls -o /dev/null -w %{url_effective} "${f}" -O; echo "\n"; done;
@PauloLuan
PauloLuan / minha_lapide.txt
Last active June 13, 2024 12:23
minha_lapide.txt
"Todos os caminhos levam a morte, perca-se."
"Se você é capaz manter sua cabeça no lugar quando todos estão perdendo as deles, e o culpam disso;
Se você é capaz confiar em si mesmo quando todos duvidam de você, e no entanto, permite que duvidem;
Se você é capaz de esperar sem perder a esperança;