This file contains hidden or 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
#... | |
PS1="\[\e[32m\]\u\[\e[m\]\[\e[32m\]@\[\e[m\]\[\e[32m\]\h\[\e[m\] \[\e[33m\]\w\[\e[m\] \[\e[33m\]\\$\[\e[m\] " | |
#... | |
# Online prompt generator: http://ezprompt.net/ |
This file contains hidden or 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
# elena.zsh-theme | |
# | |
# Author: Elena Kolevska | |
# Based on Andy Flemin's afmagic theme | |
# dashed separator size | |
function afmagic_dashes { | |
# check either virtualenv or condaenv variables | |
local python_env_dir="${VIRTUAL_ENV:-$CONDA_DEFAULT_ENV}" | |
local python_env="${python_env_dir##*/}" |
This file contains hidden or 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 | |
# Colours definition | |
HIGHLIGHT1='\033[0;34m' | |
HIGHLIGHT2='\033[0;33m' | |
SUCCESS='\033[0;32m' | |
ERROR='\033[0;31m' | |
GRAY='\033[0;37m' | |
NC='\033[0m' # No Color |
This file contains hidden or 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
// Run this gist with Redis Stack 6.2 | |
// Tested with: | |
// docker run -p 6381:6379 redis/redis-stack-server:6.2.6-v9-arm64 | |
package main | |
import ( | |
"bytes" | |
"context" | |
"encoding/binary" |
OlderNewer