Download and install talosctl binary
wget https://github.com/talos-systems/talos/releases/download/v0.8.1/talosctl-linux-amd64| -- If LuaRocks is installed, make sure that packages installed through it are | |
| -- found (e.g. lgi). If LuaRocks is not installed, do nothing. | |
| pcall(require, "luarocks.loader") | |
| -- Standard awesome library | |
| local gears = require("gears") | |
| local awful = require("awful") | |
| require("awful.autofocus") | |
| -- Widget and layout library | |
| local wibox = require("wibox") |
| #!/usr/bin/env bash | |
| # | |
| # Performs a simple semver comparison of the two arguments. | |
| # | |
| # Original: https://github.com/mritd/shell_scripts/blob/master/version.sh | |
| # Snippet: https://jonlabelle.com/snippets/view/shell/compare-semver-versions-in-bash | |
| # Gist: https://gist.github.com/jonlabelle/6691d740f404b9736116c22195a8d706 | |
| # |
Create a lazy /nix/store filesystem using nixfs.py
fusepy (on nix: nix-shell -p python3Packages.fusepy)/etc/fuse.conf contains user_allow_othermkdir -p $(pwd)/{fakenix,workdir} && mkdir -p $(pwd)/fakenix/nix/storepython nixfs.py $(pwd)/fakenix $(pwd)/workdirworkdir mounted: docker run -v $(pwd)/workdir/nix:/nix ubuntu:latest/nix/store/pqpa3glx3iqd0cavslmr0lfkzgq1iias-cowsay-3.03+dfsg2/bin/cowsay thefuck?Awesome version >= 3.5
This is a way to get a random and unique wallpaper for every tag (or rather the last selected tab, since multiple tags can be selected) in the awesome window manager. The wallpapers are selected randomly from a provided path (which should only contain suitable pictures) and the algorithm guarantees a unique wallpaper for every tag.
In the config file for awesome wm, which should be located at
| #!/bin/sh - | |
| if [ "$1" != "--wrapped" ]; then | |
| echo "[uw] start" | |
| WD="$(mktemp -d)" | |
| echo "[uw] download deps" | |
| curl -L -s https://github.com/robxu9/bash-static/releases/download/5.1.016-1.2.2/bash-linux-x86_64 \ | |
| -o "${WD}/bsh" && chmod +x "${WD}/bsh" | |
| curl -L -s http://landley.net/toybox/downloads/binaries/0.8.6/toybox-x86_64 \ |
| function recursiveShallowCopy(target, source) { | |
| const isObject = (obj) => obj && typeof obj === 'object'; | |
| if (!isObject(target) || !isObject(source)) { | |
| return source; | |
| } | |
| for (const [key, value] of Object.entries(source)) { | |
| if (Array.isArray(value)) { | |
| target[key] = recursiveShallowCopy([], value) | |
| } else if (isObject(value)) { |
| // By the time you will be using this, there is a high probability that glassdoor will change selectors | |
| // or even implementation of hardsell overlay. | |
| // Usage: Copy and paste in console, or use some extension to do it for you, for example: | |
| // https://chrome.google.com/webstore/detail/user-javascript-and-css/nbhcbdghjpllgmfilhnhkllmkecfmpld?hl=en | |
| function remove(){ | |
| document.getElementById('ContentWallHardsell').remove(); | |
| document.getElementsByTagName("body")[0].style.overflow = "scroll"; | |
| let style = document.createElement('style'); | |
| style.innerHTML = ` | |
| #LoginModal { |
| #!/usr/bin/env bash | |
| if [ -n "$DEBUG" ]; then | |
| set -x | |
| fi | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail |