Skip to content

Instantly share code, notes, and snippets.

View taisyo7333's full-sized avatar

Daisuke Inoue taisyo7333

View GitHub Profile
@taisyo7333
taisyo7333 / RedHat-RemoteExam.md
Last active April 16, 2023 07:24
RED HAT Remote EXAM : Create Live USB
 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
#!/bin/bash -x
```
BUILD_CONFIG_NAME=simple
oc get bc/${BUILD_CONFIG_NAME} -o jsonpath='{.spec.triggers[?(@.generic)].generic.secret}'
```
@taisyo7333
taisyo7333 / q3.md
Created November 12, 2021 12:27
Shellgei
ls -U | awk '{print $1, sprintf("%07d",$1)}' | xargs -n2 mv
@taisyo7333
taisyo7333 / git.md
Created June 2, 2021 05:14
git の commit hashの文字数を固定する

git の commit hashの文字数を固定する

COMMIT_HASH=$(git rev-parse --short=8 HEAD)

特定のdocker imageを削除したい

docker images | grep <searchable word> | sed -r 's/\s+/,/g' | cut -d ',' -f 3 | xargs docker rmi
@taisyo7333
taisyo7333 / alarm.md
Last active December 25, 2020 08:15
force-to-fire-cloudwatch-alarm-with-CLI
@taisyo7333
taisyo7333 / cleanup-branches.sh
Created November 30, 2020 06:34
Remove topic branches except master and current branches
#!/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
@taisyo7333
taisyo7333 / brew_info_emacs.md
Created December 23, 2018 10:46
Emacs -- brew install
$ 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 ✔
@taisyo7333
taisyo7333 / help.md
Created December 1, 2018 10:45
brew updateできなくなった!(Gitエラーが発生)
@taisyo7333
taisyo7333 / remind_by_slack.md
Created December 1, 2018 10:41
Slack remind me

毎朝9時にGmailを確認する

/remind me  メール確認:https://mail.google.com/mail/u/0/#inbox at 9:00 every weekday