diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 250.7 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
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 -x | |
``` | |
BUILD_CONFIG_NAME=simple | |
oc get bc/${BUILD_CONFIG_NAME} -o jsonpath='{.spec.triggers[?(@.generic)].generic.secret}' | |
``` |
ls -U | awk '{print $1, sprintf("%07d",$1)}' | xargs -n2 mv
git の commit hashの文字数を固定する
COMMIT_HASH=$(git rev-parse --short=8 HEAD)
aws cloudwatch set-alarm-state --alarm-name "your-alarm-name" --state-value "ALARM" --state-reason "testing purposes" --region us-east-1
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 | |
git branch | grep -v "\\*" | grep -v master | xargs git branch -d | |
# if you would like to remove branches forcely , you can do this like below. | |
# git branch | grep -v "\\*" | grep -v master | xargs git branch -d |
$ brew info emacs
emacs: stable 26.1 (bottled), HEAD
GNU Emacs text editor
https://www.gnu.org/software/emacs/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/emacs.rb
==> Dependencies
Build: pkg-config ✔
Required: gnutls ✔
https://qiita.com/k315k1010/items/24beeb8d6a8cd64571c8
$ brew update
Warning: git-2.9.0 already installed
Error: Git must be installed and in your PATH!
NewerOlder