This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USAGE: | |
# anvim [path] | |
anvim() { | |
local target="${PWD}" | |
if [ -n "${1}" ]; then | |
target=$(realpath "$1") | |
fi | |
local wdir="${target}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
"github.com/sirupsen/logrus" | |
) |
Ctrl + O / Ctrl + I
- Navigate to next / previous cursor positiongd
- goto definitionCtrl + d
- Move down 1/2 screenCtrl + u
- Move up 1/2 screen"*y
- Copy to system clipboard"*p
- Pasting from system clipboard:redir @* | set guifont | redir END
- Copy output of command to clipboard.@*
is clipboard register
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## Tested on Grafana v5.1.3 | |
function dashboards { | |
base_url="<BASE-URL>" | |
dashboards=$(curl -s -H "Authorization: Bearer <TOKEN>" \ | |
$base_url/api/search?query=\&tag=<TAG> \ | |
| jq -r '.[]') | |
titles=$(echo $dashboards | jq -r '.title' | fzf --height 10 --reverse --multi) | |
[ -z "$titles" ] && return |
I hereby claim:
- I am arunvelsriram on github.
- I am arunvelsriram (https://keybase.io/arunvelsriram) on keybase.
- I have a public key whose fingerprint is 603A 233B FD61 6CF4 9B19 0768 BAAE F633 460D 68C2
To claim this, I am signing this object:
- https://github.com/patrikolausson/dispmanx_vnc - follow the instructions
- If there are no input devices connected then run
sudo chmod 666 /dev/uinput
before runningsudo ./dispmanx_vncserver
NewerOlder