Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

idioma ilacorda

🏠
Working from home
View GitHub Profile
@ilacorda
ilacorda / .bash
Last active Nov 24, 2022
List all processes on 3000 port
View .bash
lsof -i tcp:3000
@ilacorda
ilacorda / Prometheus CLI options
Created Sep 30, 2022 — forked from 0x0I/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 Jan 28, 2022
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 Aug 4, 2021
Download all project depedencies
View all-deps.bash
go get -u -v -f all
@ilacorda
ilacorda / kubectl-processes.bash
Created Aug 4, 2021
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 Apr 7, 2021
Upgrade Go with Brew
View goUpgradeBrew
brew update
brew upgrade golang
@ilacorda
ilacorda / gist:0e02d6c5e1866944eef823bad0216471
Created Apr 30, 2020
Count the number of commits on your branch
View gist:0e02d6c5e1866944eef823bad0216471
git rev-list --count <branch-name>
@ilacorda
ilacorda / gist:31fc67ef00b527e767f44ace55e08b12
Created Apr 27, 2020
Kill all processes running on port 5432 (Mac)
View gist:21d7ff77325bfe81d0fb25ceab7bb14c
touch ~/.bash_profile; open ~/.bash_profile
@ilacorda
ilacorda / gist:dde55265b667c09d3aeb21133274e9f6
Created Apr 26, 2020
Show commits by author and commit timestamp