diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2016-12-06 16:08:53 -0800 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2016-12-06 16:08:53 -0800 |
commit | 731292998399eb0dfc556cf3bcdcd4b0cb7c15f4 (patch) | |
tree | 88015f75f20d5d733fa3fa42472f52bc8ae5b685 | |
parent | [bash] Add alias for tmux. (diff) | |
download | emacs.d-731292998399eb0dfc556cf3bcdcd4b0cb7c15f4.tar.gz |
[snippets] store some snippets / scripts here too.
-rwxr-xr-x | snippets/sh/modules-info.sh | 3 | ||||
-rwxr-xr-x | snippets/sh/ssh-check-fingerprint.sh | 4 | ||||
-rwxr-xr-x | snippets/sh/top-10-processes.sh | 3 |
3 files changed, 10 insertions, 0 deletions
diff --git a/snippets/sh/modules-info.sh b/snippets/sh/modules-info.sh new file mode 100755 index 0000000..a0d1733 --- /dev/null +++ b/snippets/sh/modules-info.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +modinfo $(cut -d' ' -f1 /proc/modules) | sed '/^dep/s/$/\n/; /^file\|^desc\|^dep/!d' diff --git a/snippets/sh/ssh-check-fingerprint.sh b/snippets/sh/ssh-check-fingerprint.sh new file mode 100755 index 0000000..517fb5b --- /dev/null +++ b/snippets/sh/ssh-check-fingerprint.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +KEY=${1:-$HOME/.ssh/id_rsa.pub} +ssh-keygen -lf "${KEY}" diff --git a/snippets/sh/top-10-processes.sh b/snippets/sh/top-10-processes.sh new file mode 100755 index 0000000..816d74b --- /dev/null +++ b/snippets/sh/top-10-processes.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +ps auxf | sort -nr -k 4 | head -10 |