Skip to content

Instantly share code, notes, and snippets.

View luigiMinardi's full-sized avatar
🎯
Focusing

Luigi Minardi luigiMinardi

🎯
Focusing
View GitHub Profile
@luigiMinardi
luigiMinardi / .config-picom.conf
Last active April 8, 2024 21:09
.config/i3wm/config
#################################
# Shadows #
#################################
# Enabled client-side shadows on windows. Note desktop windows
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
# unless explicitly requested using the wintypes option.
#
# shadow = false
@luigiMinardi
luigiMinardi / AddYourCertificateToLinkedIn.js
Last active January 11, 2024 20:08
Add your Boot.dev certificate to LinkedIn
// ==UserScript==
// @name Button to add boot.dev certificate to linkedin
// @namespace https://github.com/luigiMinardi
// @match https://www.boot.dev/certificate/*
// @grant none
// @version 0.6.10
// @author luigiMinardi
// @license MIT
// @description Adds a button to add your boot.dev certificate to linkedin
// @homepageURL https://gist.github.com/luigiMinardi/62b0492d187e39e495272b10d40f6aee
@luigiMinardi
luigiMinardi / duplicate-files.md
Last active October 13, 2023 21:10
Bash adventures

Use jdupes to recursivelly search a directory for duplicates (symlinks also searched) then save results in a file.

jdupes -sr . > dups.txt

Go through the first group of duplicates (original and duplicate(s)) on the .txt and open it with the default option that you have (so that you can compare both and choose if you want to delete one of them or not).

cat dups.txt | while read line; do if [ -z "$line" ]; then break; else xdg-open $line; fi; done 
@luigiMinardi
luigiMinardi / howto_use-i3wm-on-arch.md
Created August 3, 2023 14:01
Minimal i3wm install from bare arch installation

Make sure to be logged in your user and not as root when running this commands to not cause any problem later on.

sudo pacman -Syu to make sure everything is up to date, than

Install xorg

sudo pacman -S xorg-server xorg-xinit

Install i3

@luigiMinardi
luigiMinardi / howto_boot-arch.md
Created August 3, 2023 13:58
HOWTO - Booting arch

How to boot arch with btrfs and i3wm

ISO

First download arch iso and make sure to have a spare pendrive to format as a bootable one. If you like distro hopping a lot Ventoy may be a good option instead of using other ways to put just the arch iso in the pendrive. Even more if you have a larger pendrive than the at most 4gb needed for any linux distro.

After changing the boot order to the pendrive first and booting into it choose Arch Linux Install Medium to start.

Ping

Now check your internet with ping gnu.org. If you have wifi read the man.

Time

@luigiMinardi
luigiMinardi / tex-colors.md
Last active April 19, 2024 19:20
Github markdown colors (Using Tex and the github MathJax support)

Small warning for everyone that are thinking if using Tex colors is a good idea or not

  • 2023-05-02 - Since a few days ago \colorbox and \fcolorbox are broken and Github did't talk about if it's a temporary thing or if it will not be added back.
    • 2024-01-04 - Since it has not being added back I deduce that it will never be so I removed all mentions to it on the rest of the gist.
  • 2023-09-29 - Tex seems to not work on h1 to h6 anymore (markdown #'s)
    • 2024-01-04 - Now it works again, I'll keep the message for a while to remember that it may change again in the future

As you can se with the above message(s) Tex may not be very stable and may not be an option to you as of the dates expressed above. You can also check other tex problems here.

Github released Tex support and colors* to the markdown and you din't realized

@luigiMinardi
luigiMinardi / TypeScriptGenericsCheatSheet.md
Last active October 20, 2022 18:36
TypeScript Generics Cheat Sheet

P - Property
T - Type
K - Key
V - Value
E - Element
N – Number
S, U, etc. – 2nd, 3rd, 4th... types

Sources:

@luigiMinardi
luigiMinardi / alias_zsh.md
Created October 11, 2022 14:43
List of zsh git aliases [2022]
g=git
ga='git add'
gaa='git add --all'
gam='git am'
gama='git am --abort'
gamc='git am --continue'
gams='git am --skip'
gamscp='git am --show-current-patch'
gap='git apply'
@luigiMinardi
luigiMinardi / docker_es.md
Last active April 6, 2022 11:36
Estudiando Docker

Introduccion al Docker

Docker es una herramienta muy importante para el dia a dia de trabajo de un desarollador, en ese gist voy a introducirlos al basico de dockers y mostrarlos algunos comandos utiles.

Leyenda

<any> = un parametro obligatorio

<?any> = un parametro opcional

Search

@luigiMinardi
luigiMinardi / .zshrc
Last active April 8, 2024 20:41
My .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes