- clone this project by
git clone https://gist.github.com/717f75e6b87606940017adf385274044.git color
- run
cd color
- write the code as what you want
- color_constants.sh - new version of constant (using
tput
) - color_raw_constants.sh - old version of constant (using raw text to assign)
- some terminal app, might miss the color.
- install.sh - install color script
- color_constants.sh - new version of constant (using
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
# This is Git's per-user configuration file. | |
[user] | |
name = Kamontat Chantrachirathumrong | |
# email = developer@kamontat.net | |
email = kamontat.chantrachirathumrong@agoda.com | |
# signingKey = 705CB6B32BBCBABA | |
signingKey = DD18B41623EB11D1 | |
[alias] | |
com = commit |
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 | |
# shellcheck disable=SC1000 | |
# generate by create-script-file v4.0.1 | |
# link (https://github.com/Template-generator/create-script-file/tree/v4.0.1) | |
# set -x #DEBUG - Display commands and their arguments as they are executed. | |
# set -v #VERBOSE - Display shell input lines as they are read. | |
# set -n #EVALUATE - Check syntax of the script but don't execute. |
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
import json | |
def parse_obj(obj): | |
for key in obj: | |
if type(obj[key]) is str: | |
obj[key] = obj[key].encode('latin_1').decode('utf-8') | |
elif type(obj[key]) is list: | |
obj[key] = list(map(lambda x: x if type(x) != str else x.encode('latin_1').decode('utf-8'), obj[key])) | |
pass | |
return obj |
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 | |
# shellcheck disable=SC1000 | |
# generate by v3.0.2 | |
# link (https://github.com/Template-generator/script-genrating/tree/v3.0.2) | |
# set -x #DEBUG - Display commands and their arguments as they are executed. | |
# set -v #VERBOSE - Display shell input lines as they are read. | |
# set -n #EVALUATE - Check syntax of the script but don't execute. |
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 | |
# shellcheck disable=SC1000 | |
# generate by v3.0.2 | |
# link (https://github.com/Template-generator/script-genrating/tree/v3.0.2) | |
# set -x #DEBUG - Display commands and their arguments as they are executed. | |
# set -v #VERBOSE - Display shell input lines as they are read. | |
# set -n #EVALUATE - Check syntax of the script but don't execute. |
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 | |
# shellcheck disable=SC1000 | |
# generate by v3.0.2 | |
# link (https://github.com/Template-generator/script-genrating/tree/v3.0.2) | |
# set -x #DEBUG - Display commands and their arguments as they are executed. | |
# set -v #VERBOSE - Display shell input lines as they are read. | |
# set -n #EVALUATE - Check syntax of the script but don't execute. |
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 | |
# shellcheck disable=SC1000 | |
# generate by v3.0.2 | |
# link (https://github.com/Template-generator/script-genrating/tree/v3.0.2) | |
# set -x #DEBUG - Display commands and their arguments as they are executed. | |
# set -v #VERBOSE - Display shell input lines as they are read. | |
# set -n #EVALUATE - Check syntax of the script but don't execute. |
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
# Shutdown your computer (Mac) | |
# Press `Command+S` and turn computer on. | |
# Press, until computer open black screen | |
## Type below to the screen | |
# Mount root dir | |
/sbin/mount -uw / | |
# remove setup entry | |
rm /var/db/.applesetupdone |
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
#!/bin/bash | |
# <bitbar.title>command shortcut</bitbar.title> | |
# <bitbar.version>v1.1</bitbar.version> | |
# <bitbar.since>9 Mar 2018</bitbar.since> | |
# <bitbar.author>kamontat</bitbar.author> | |
# <bitbar.author.github>kamontat</bitbar.author.github> | |
# <bitbar.desc>Show setting shortcut keys</bitbar.desc> | |
# <bitbar.dependencies>bash</bitbar.dependencies> |