start new:
tmux
start new with session name:
tmux new -s myname
| #!/usr/bin/env bash | |
| # Runs a command wrapped in btrfs snapper pre-post snapshots. | |
| # Usage: $ snp <commands> | |
| # e.g.: $ snp pacman -Syyu | |
| # Requirements: snapper (https://wiki.archlinux.org/title/snapper) | |
| # The latest version of this script is hosted at https://gist.github.com/erikw/5229436 | |
| log_path="/var/local/log/snp" | |
| date=$(date "+%Y-%m-%d-%H%M%S") | |
| log_file="${log_path}/snp_${date}.log" |
UPDATED 22.11.2022
It's been two years since the last update, so here's the updated working script as per the comments below.
Thanks to BryanHaley for this.
setInterval(function () {
video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];
video.querySelector('#primary button[aria-label="Action menu"]').click();See imgur / linked pastebin and github mirror for 1-8 → 1-8 balancers. Creator: raynquist, github mirror linked in Balancers Illustrated: 1 through 8 balancers explained, imgur album linked in Balancer Book Update (Summer 2019)
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| #!/bin/bash | |
| ## | |
| # Discord Webhook | |
| # Change the 'your_discord_webhook_name' with your actual Discord Webhook | |
| ## | |
| ## | |
| # add to linux cron: | |
| # sudo crontab -e |
I wanted to write a module that generates multiple systemd services and timers to scrub some zfs pools at certain intervals. The default scrub config does not support individual scrub intervals for each pool.
I want the config to look like this:
{
services.zfs-auto-scrub = {
tank = "Sat *-*-* 00:00:00";| I got problems installing Matlab R2022a on Arch. Running the installer throws the following error: | |
| ``` | |
| terminate called after throwing an instance of 'std::runtime_error' | |
| what(): Failed to launch web window with error: Unable to launch the MATLABWindow application. The exit code was: 127 | |
| fish: Job 1, 'sudo ./install' terminated by signal SIGABRT (Abort) | |
| ``` | |
| I fixed it by running the following commands. |