install_nerd_fonts.sh is a Bash script that allows you to interactively select and install Nerd Fonts on macOS using Homebrew and fzf.
- Uses fzf for an interactive font selection.
- Installs selected Nerd Fonts via Homebrew.
| # Each distribution default Bash prompts | |
| # Gentoo (/etc/bash/bashrc) | |
| if [[ ${EUID} == 0 ]] ; then | |
| PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] ' | |
| else | |
| PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' | |
| fi |
Social login is the fastest way to engage users. And luckily firebase has done the hard work for us. In this post we will configure google login in no time!
1.1.1: Head to firebase and open your project
| .login-form-flex { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| height: 100%; | |
| } | |
| .button-flex-container { | |
| display: flex; | |
| width: 100%; |
| SetEnvIf X-Forwarded-Proto "https" HTTPS=on | |
| Header append Vary: X-Forwarded-Proto | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{HTTPS} !=on | |
| RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC] | |
| RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
| </IfModule> |
| #!/bin/bash | |
| if [ "$1" == "--list" ] ; then | |
| cat<<EOF | |
| { | |
| "bash_hosts": { | |
| "hosts": [ | |
| "10.220.21.24", | |
| "10.220.21.27" | |
| ], |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of