Skip to content

Instantly share code, notes, and snippets.

@duiliogp
duiliogp / CLI.md
Last active December 20, 2022 17:09

CLI

React

New project

npm create vite
@duiliogp
duiliogp / VSCode_1_UserSettings.md
Last active February 13, 2023 12:56
VSCode User Settings

settings.json

Main Settings

  "editor.tabSize": 2,
  "explorer.compactFolders": false,
  "explorer.confirmDelete": false,
  "explorer.confirmDragAndDrop": false,
  "explorer.sortOrder": "type",
  "files.autoSave": "onFocusChange",
@duiliogp
duiliogp / ShowPassword.js
Created December 11, 2022 00:01
UserScripts
// ==UserScript==
// @name ShowPassword
// @description Show password when mouse is over on password entries.
// @version 1
// @grant none
// ==/UserScript==
(function(){
'use strict';
setTimeout(() => {
const $pwds = document.querySelectorAll("input[type=password]");
@duiliogp
duiliogp / PythonScripts.md
Last active February 13, 2023 13:05
PythonScripts

Python Scripts

KDE - Switch to window to the right (Meta+Alt+Right) and reload the page (F5).

import pyautogui as aut

aut.hotkey('ctrl', 's')

with aut.hold('win'):
@duiliogp
duiliogp / MySQLImport.sh
Last active September 14, 2023 19:27
MySQL Export Database
#####################
### Variables
#####################
SQL_FILENAME=""
IMPORT_HOST=""
IMPORT_USER=""
IMPORT_PASSWORD=""
IMPORT_PORT=""
IMPORT_DBNAME=""
@duiliogp
duiliogp / BashUsefulCommands.md
Created June 12, 2023 16:43
Bash Useful Commands

Bash Useful Commands

Empty trash

rm -rf ~/.local/share/Trash/*
@duiliogp
duiliogp / Python Notes.md
Created June 12, 2023 20:21
Python Notes

Python Notes

Install packages

pip install <package-name>

pip install -R requirements.txt # install all packages at this file.

Uninstall a package