Skip to content

Instantly share code, notes, and snippets.

View brunobiondi's full-sized avatar

Bruno Biondi brunobiondi

View GitHub Profile
@brunobiondi
brunobiondi / conkyrc.md
Last active February 3, 2024 21:03
~/.conkyrc

Config ~/.conkyrc

 conky.config = {
    alignment = 'top_right',
    use_xft = true,
    xftalpha = 0.8,
    font = 'Noto:normal:size=9',
    text_buffer_size = 2048,
    update_interval = 1.0,
@brunobiondi
brunobiondi / linux-alias.md
Last active October 24, 2024 11:10
Linux alias commands

Using ~/.bashrc

# brunobiondi

# if it is not Ubuntu
# alias ll='ls -alF'
alias sau='sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y'
alias rebash='source ~/.bashrc'

Back || Front-end

  • wip: Work in progress, i.e., partial commits that haven't been finalized
  • i18n: Changes related to internationalization, such as translations or word changes for multilingual support
  • perf: Optimizations aimed at improving the performance or efficiency of the code
  • refactor: Code refactoring aimed at improving organization or readability without changing functionality
  • format: Purely aesthetic changes that don't affect the logic of the code, such as spacing and formatting
  • docs: Modifications pertaining to project documentation, such as addition, removal, or updating of information
  • feat: Implementation of new features or resources in the project
  • fix: Bug fixes or issues that were affecting the functionality or use of the project
  • test: Addition or modification of tests to ensure correctness and functionality of the code
@brunobiondi
brunobiondi / switch_to_php7.sh
Created October 11, 2022 12:01
Switch PHP7 PHP8 in Apache on Linux
sudo a2dismod php8.1
sudo a2enmod php7.4
sudo systemctl restart apache2
@brunobiondi
brunobiondi / bash.sh
Last active October 22, 2022 20:22
Create customized imports aliases with rollup
npm i -D @types/node
@brunobiondi
brunobiondi / vite.config.js
Created October 4, 2022 12:35
Export assets to different folders in the build
...
export default defineConfig({
...
build: {
rollupOptions: {
output: {
assetFileNames: (asset) => {
let typePath = 'static/styles'
const type = asset.name.split('.').at(-1)
if (/png|jpe?g|webp|svg|gif|tiff|bmp|ico/i.test(type)) {
@brunobiondi
brunobiondi / vscode_eslint_reactjs_typescript.md
Last active December 21, 2022 13:43
ESLint configuration in VSCode with React.js and TypeScript

Terminal

npm i eslint @rocketseat/eslint-config

.eslintrc.json

{
  "extends": "@rocketseat/eslint-config/react",
  "rules": {