This file contains 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
#!/bin/bash | |
cd /boot || exit 1 | |
shopt -s nullglob ; for file in config-* ; do kernels+=( "${file#config-}" ) ; done | |
newest="$(printf '%s\n' "${kernels[@]}" | sort -V -t - -k 1,2 | tail -n1)" | |
current="$(uname -r)" | |
[[ $current != $newest ]] && echo "Reboot needed for new kernel" |
This file contains 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
// ==UserScript== | |
// @name Twitter Go Back with H key | |
// @namespace https://gist.github.com/eggbean/ba4daf82f132421c69dbd2c2e0b3e061/raw/twitter_go_back.user.js | |
// @version 1.0 | |
// @description Makes the unused H key a browser back button for better H,J,K,L keyboard navigation | |
// @author https://github.com/eggbean | |
// @match https://twitter.com/* | |
// @icon https://twitter.com/favicon.ico | |
// @grant none | |
// ==/UserScript== |
NewerOlder