Make a directory & cd into it
function mkcd () { mkdir -p "$@" && eval cd "\"\$$#\""; }
from twitter
Make a directory & cd into it
function mkcd () { mkdir -p "$@" && eval cd "\"\$$#\""; }
from twitter
Got tired of a few shortcomings with Feedly (inability to add feed directly from firefox or to have private RSS feeds), so have migrated to a self-hosted tt-rss install.
Components:
Installation isn’t straightforward for the novice: it’s an nginx (LetsEncrypt cert) / php (7.3 from remi running as fpm) / postgres stack with a cronjob to update the feeds. I also wrote a job to backup & archive the postgres DB off-site.
Clients: Tiny Tiny RSS for Android (Palabre also supports tt-rss via a plugin, but not very well it seems), Newsboat for CLI & Fiery Feeds for IOS which is almost as good as Mr. Reader (RIP).
It seems that the version of Gnome 3.30 on Arch is so unstable with such poor plugin support (despite what the Gnome developers think, tray icons are still required, Gnome is not the only DE available) that I strongly recommend against using it for now. I’ve gone back to the comforting embrace of XFCE. Maybe when Fedora 29 is released 3.30 will be stable in other distributions.
sed -i 's#tray.manage_screen(global.screen, Main.panel.actor)#tray.manage_screen(Main.panel.actor)#' ~/.local/share/gnome-shell/extensions/TopIcons@phocean.net/extension.js
Why have I only just discovered this?
Put this in ~/.bashrc
if [[ $TERM = "screen" ]]; then SHORTHOST=$(hostname -s) NEW_TITLE="\033]0;${SHORTHOST}\007" echo -ne "\033P${NEW_TITLE}\033\\" fi
With help from here
Can probably do this at screen startup rather than in each bash…
A new nagios check I’ve written for checking a lot of URLs quickly: check_multi_url.
Set up a cron job like the below:
12 10,19 * * * curl -s https://sitetocheck.com/page.html | grep 'text that will change' >/dev/null || mail -s 'page changed' your@emailaddress.com
sudo dkms autoinstall
add to ~/.emacs
(add-hook 'yaml-mode-hook (lambda () (highlight-indentation-mode) ))