Skip to content

Instantly share code, notes, and snippets.

View silveiralexf's full-sized avatar

Felipe Silveira silveiralexf

View GitHub Profile
@silveiralexf
silveiralexf / dmenu-pass.sh
Last active December 30, 2019 15:26
Simple dmenu-pass launcher for passwords, notes and application shortcuts
#!/bin/bash
#-------------------------------------------------------------------------------
# File : dmenu-pass.sh
# Author : Felipe A. Silveira (felipe.alexandre@gmail.com)
# Repository : https://gist.github.com/fsilveir
#
#-------------------------------------------------------------------------------
# SCRIPT DESCRIPTION
#-------------------------------------------------------------------------------
#

Keybase proof

I hereby claim:

  • I am fsilveir on github.
  • I am fsilveir (https://keybase.io/fsilveir) on keybase.
  • I have a public key ASDyXpFC-O-ZAkAv2vUx3kLwJV5ko0EpXhLNFZ6_faHW8Ao

To claim this, I am signing this object:

setw -g window-status-fg colour75
setw -g window-status-bg default
setw -g window-status-attr dim
####
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
#set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
@silveiralexf
silveiralexf / showstat.go
Last active October 16, 2019 19:07
Command line utility to display app status in a given port -- useful for example for signaling successful start of an application for other pods waiting with initContainers
package main
import (
"encoding/json"
"flag"
"fmt"
"log"
"net/http"
"os"
)
@silveiralexf
silveiralexf / passmenu
Last active October 6, 2019 15:32
Use this simple script to choose a password from pass/gpg
#!/usr/bin/env bash
shopt -s nullglob globstar
typeit=0
if [[ $1 == "--type" ]]; then
typeit=1
shift
fi