This is a simplistic setup trying to emulate at least part of i3 behaviour on MacOS using yabai. Key-bindings are partially replicated due to the presence of MacOS built-in bindings
Start with installing (and understanding) following tools
| #!/usr/bin/env bash | |
| # | |
| # These are the commands available in an .envrc context | |
| # | |
| # ShellCheck exceptions: | |
| # | |
| # SC1090: Can't follow non-constant source. Use a directive to specify location. | |
| # SC1091: Not following: (file missing) | |
| # SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n". | |
| # SC2059: Don't use variables in the printf format string. Use printf "..%s.." "$foo". |
This is a simplistic setup trying to emulate at least part of i3 behaviour on MacOS using yabai. Key-bindings are partially replicated due to the presence of MacOS built-in bindings
Start with installing (and understanding) following tools
| { lib, config, pkgs, ... }: | |
| with lib; | |
| { | |
| options.v4l2 = mkEnableOption "Enable the confguration to use the reflex as a webcam"; | |
| config = mkIf config.v4l2 { | |
| # 20.03: v4l2loopback 0.12.5 is required for kernel >= 5.5 | |
| # https://github.com/umlaeute/v4l2loopback/issues/257 |
| #!/usr/bin/env bash | |
| # Exit on error. Append "|| true" if you expect an error. | |
| set -o errexit | |
| # Exit on error inside any functions or subshells. | |
| set -o errtrace | |
| # Do not allow use of undefined vars. Use ${VAR:-} to use an undefined VAR | |
| set -o nounset | |
| # Catch the error in case mysqldump fails (but gzip succeeds) in `mysqldump |gzip` | |
| set -o pipefail | |
| # Turn on traces, useful while debugging but commented out by default |
| SELECT table, | |
| name, | |
| formatReadableSize(c) compressed, | |
| formatReadableSize(u) uncompressed, | |
| floor((c/u) * 100, 4) percent | |
| FROM ( | |
| SELECT table, | |
| name, | |
| sum(data_compressed_bytes) c, | |
| sum(data_uncompressed_bytes) u |
| package com.github.hindol.clj_fn.core; | |
| import clojure.lang.*; | |
| import com.microsoft.azure.functions.*; | |
| import com.microsoft.azure.functions.annotation.*; | |
| public final class Function implements Functional, IType | |
| { | |
| public static final Object const__0; | |
| (def safe-requires | |
| "List of namespaces to require and refer when inside user ns at load time. | |
| Can be given an initialization body to execute after having been required. | |
| To do so, wrap the lib spec in a vector, and all elements after the lib | |
| spec vector will be evaled after the lib spec has been required." | |
| '[[clojure.repl :as repl :refer (source apropos dir pst doc find-doc)] | |
| [clojure.java.javadoc :as javadoc :refer (javadoc)] | |
| [clojure.pprint :as pprint :refer (pp pprint)] | |
| [clojure.stacktrace :as stacktrace :refer (e)] |
There are two metrics that are important to consider when discussing the size of Docker images.
The example commands shown below will work on Windows, MacOS, and Linux.
| import time | |
| from datetime import datetime | |
| from textwrap import wrap | |
| import requests | |
| from requests_html import HTMLSession | |
| import paramiko | |
| import schedule | |
| def get_traffic(road): |
| #!/usr/bin/env python | |
| """ | |
| Git commit hook: | |
| .git/hooks/commit-msg | |
| Check commit message according to guidelines | |
| """ | |
| import sys | |
| import re |