This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Elastic Light Theme | |
// @description Replaces dark themes with light ones | |
// @author Elias Dorigoni | |
// @include https://your.kibana.url/* | |
// @version 1.0 | |
// ==/UserScript== | |
window.clearTimeout = window.clearTimeout.bind(window); | |
window.clearInterval = window.clearInterval.bind(window); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Execute this on the terminal to disable app bouncing. | |
# Tested on MacOS 12 Monterey. It may work on other versions. | |
defaults write com.apple.dock no-bouncing -bool TRUE | |
killall Dock | |
# --- | |
# Change TRUE to FALSE to restore the effect. | |
defaults write com.apple.dock no-bouncing -bool FALSE | |
killall Dock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This is meant to be appended to .bash_aliases or .zsh_aliases | |
# | |
# The `docker-restart` command allows the user to restart Docker and wait for it | |
# to be ready before executing the next command. | |
function docker-is-ready() { | |
timestamp=$(date +%s) | |
while [[ -z "$(! docker stats --no-stream 2> /dev/null)" ]] | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Arma recursivamente un arbol con las taxonomias jerárquicas. | |
* Devuelve un array. | |
* @param object $terms retorno de get_terms | |
* @return array | |
*/ | |
function armarArbol($terms, $padre = 0, $profundidad = 0) { | |
if($profundidad >= 8) return ''; | |
$retorno = array(); |