Skip to content

Instantly share code, notes, and snippets.

View thierrymarianne's full-sized avatar

Th. Ma. thierrymarianne

  • Greater Paris Metropolitan Area
View GitHub Profile
@thierrymarianne
thierrymarianne / assert_monitored_domains_are_available.sh
Created March 7, 2024 20:11
Assert some monitored domains are available given a page title to be checked
#!/usr/bin/env bash
set -Eeuo pipefail
source "${HOME}/.secrets.sh"
function convert_timestamp_to_date_in_selected_timezone() {
local timestamp
timestamp="${1}"
if [ -z "${timestamp}" ]; then
@thierrymarianne
thierrymarianne / tmux.sh
Last active August 19, 2022 16:16 — forked from chanmix51/tmux.sh
running-commands-in-new-panes-windows-with-tmux.sh
function splitw() {
tmux split-window "$*";
}
function neww() {
tmux new-window "$*";
}
@thierrymarianne
thierrymarianne / .tmux.conf
Created August 19, 2022 10:19
An example of tmux configuration
set-option -g default-shell /bin/zsh
# @see https://github.com/lucaswerkmeister/home/commit/96b02b00a3dececf2271f73a7188a2c53b4fbc0c
set-option -g update-environment[0] GNOME_TERMINAL_SCREEN
set-option -g update-environment[1] GNOME_TERMINAL_SERVICE
setw -g mode-keys vi
setw -g aggressive-resize on
set-window-option -g xterm-keys on
@thierrymarianne
thierrymarianne / spotting-differences-between-directories-except-for-excluded-files.sh
Last active August 6, 2022 22:59
Code excerpt used in the context of a screencast series entitled "Solving issues with tools running in a shell"
#!/usr/bin/env bash
set -Eeo pipefail
#
# ```
# spot-differences-between-directories "$(pwd)/backup" "$(pwd)/ill-fated-directory"
# ```
#
function spot-differences-between-directories() {
local backup_directory
Verifying my Blockstack ID is secured with the address 1DRDyPbrpmZnaiWeCGfFHW2bFh6AKq5aDk https://explorer.blockstack.org/address/1DRDyPbrpmZnaiWeCGfFHW2bFh6AKq5aDk
Verifying my Blockstack ID is secured with the address 1eCtchHX1oAKJHg9VUfvVTUD5HhbbZCzY https://explorer.blockstack.org/address/1eCtchHX1oAKJHg9VUfvVTUD5HhbbZCzY
Verifying that "thierry_marianne.id" is my Blockstack ID. https://onename.com/thierry_marianne
Verifying that "thierrymarianne.id" is my Blockstack ID. https://onename.com/thierrymarianne
Verifying that "gordonfreeman.id" is my Blockstack ID. https://onename.com/gordonfreeman
#!/bin/zsh
alias search-history='fc -n -l -10000 | tac | fzf'
alias ll='exa -abghl --time modified --sort=modified --git --color=automatic'
alias pyg='pygmentize -O style=solarizedlight -f console256 -g'