Skip to content

Instantly share code, notes, and snippets.

View ilacorda's full-sized avatar
🎯
Focusing

idioma ilacorda

🎯
Focusing
View GitHub Profile
@ilacorda
ilacorda / .bash
Last active November 24, 2022 23:00
List all processes on 3000 port
View .bash
lsof -i tcp:3000
@ilacorda
ilacorda / Prometheus CLI options
Created September 30, 2022 22:18 — forked from O1ahmad/Prometheus CLI options
Prometheus command-line interface (CLI) options
View Prometheus CLI options
$ ./prometheus -h
usage: prometheus [<flags>]
The Prometheus monitoring server
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
@ilacorda
ilacorda / spotlight-iterms2.bash
Created January 28, 2022 15:01
Using spotlight to find the location on iterm2 on mac
View spotlight-iterms2.bash
mdfind "kMDItemCFBundleIdentifier == com.googlecode.iterm2"
@ilacorda
ilacorda / all-deps.bash
Created August 4, 2021 09:36
Download all project depedencies
View all-deps.bash
go get -u -v -f all
@ilacorda
ilacorda / kubectl-processes.bash
Created August 4, 2021 08:39
Kill all kubectl processes running
View kubectl-processes.bash
ps aux | grep -i kubectl | grep -v grep | awk {'print $2'} | xargs kill
@ilacorda
ilacorda / goUpgradeBrew
Created April 7, 2021 09:56
Upgrade Go with Brew
View goUpgradeBrew
brew update
brew upgrade golang
@ilacorda
ilacorda / gist:0e02d6c5e1866944eef823bad0216471
Created April 30, 2020 09:44
Count the number of commits on your branch
View gist:0e02d6c5e1866944eef823bad0216471
git rev-list --count <branch-name>
@ilacorda
ilacorda / gist:31fc67ef00b527e767f44ace55e08b12
Created April 27, 2020 08:14
Kill all processes running on port 5432 (Mac)
View gist:21d7ff77325bfe81d0fb25ceab7bb14c
touch ~/.bash_profile; open ~/.bash_profile
@ilacorda
ilacorda / gist:dde55265b667c09d3aeb21133274e9f6
Created April 26, 2020 14:40
Show commits by author and commit timestamp