Under Terminal > Preferences... > (Profile) > Advanced, "Declare terminal as:" should be set to xterm-256color
.
This is easy with homebrew:
brew install screen
#!/bin/bash | |
# Simple script for setting an alarm on Mac OS X | |
# Arguments are ./alarm.sh {hour} {minute} | |
until [ `date "+%H"` -eq $1 ] && [ `date "+%M"` -eq $2 ]; do | |
sleep 10 | |
done | |
osascript -e 'set volume 7' |
# Follow | |
# https://geek-cookbook.funkypenguin.co.nz | |
# for an updated version | |
version: '3.7' | |
services: | |
traefik_v2.0: | |
image: 'traefik:2.2' | |
container_name: traefik_v2 | |
hostname: traefik_v2 |
#!/usr/bin/env fish | |
# similar script in Fish | |
# still under construction, need to quiet `git status` more effectively | |
function update -d 'Update git repo' | |
git stash --quiet | |
git pull | |
git stash apply --quiet | |
end |
# ANSI escape codes | |
[ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) can be printed to a shell to as instructions. | |
The below is a list of codes I have used often in my CLI programs and I find myself looking up over and over again. | |
A great article about it can be found [here](https://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html). | |
## Content | |
- [Colors](#colors) |
#! /bin/bash | |
n=32 | |
arg=setaf | |
text='Hello World! This is %s %d' | |
_help() | |
{ | |
printf 'usage: %s [--help|-H] [--16] [--256] [-t|--tiny] [--background|-b]\n' "$(basename $0)" | |
exit 0 |
Under Terminal > Preferences... > (Profile) > Advanced, "Declare terminal as:" should be set to xterm-256color
.
This is easy with homebrew:
brew install screen
I hereby claim:
To claim this, I am signing this object:
#! /bin/bash | |
######################################################### | |
# To Download and Install/Run | |
# $ sudo -H su -c "$(curl -fsSL https://gist.githubusercontent.com/earendildev/c77791827ab6a3a87bfa3b8d8bb786e2/raw --output $HOME/reinstall-xcode.sh)" | |
# Created by [email protected] | |
######################################################### | |
# Kill XCode Process |
#!/bin/sh | |
######################################################### | |
# To Download and Install/Run | |
# $ sudo -H su -c "$(curl -fsSL https://gist.githubusercontent.com/earendildev/727016da258bd110393c8ba50d0a1253/raw --output $HOME/create-swap.sh)" | |
# Created by [email protected] | |
######################################################### |
#!/usr/bin/env bash | |
#################################################################################### | |
# Slack Bash console script for sending messages. | |
#################################################################################### | |
# Installation - LINUX | |
# $ curl -s https://gist.githubusercontent.com/earendildev/b08f5923885ae665fe35715827a1c332/raw --output /usr/bin/slack | |
# $ chmod +x /usr/bin/slack | |
#################################################################################### | |
# Installation - MAC | |
# $ curl -s https://gist.githubusercontent.com/earendildev/b08f5923885ae665fe35715827a1c332/raw --output /usr/local/bin/slack |