Skip to content

Instantly share code, notes, and snippets.

View eliu's full-sized avatar
💭
He is staying confused recently

Liu Hongyu eliu

💭
He is staying confused recently
View GitHub Profile
@eliu
eliu / ansible-playbooks.log
Created November 5, 2017 09:16
ansible-playbooks logs for openshift origin installation process
PLAY [Create initial host groups for localhost] *********************************************************************************************
TASK [include_vars] *************************************************************************************************************************
ok: [localhost]
PLAY [Populate config host groups] **********************************************************************************************************
TASK [Evaluate groups - g_etcd_hosts or g_new_etcd_hosts required] **************************************************************************
skipping: [localhost]
@eliu
eliu / sed-test.sh
Created June 20, 2017 09:58
sed script compatible with both macOS and Linux, no backup file generated
#!/bin/bash
if [[ $(uname) = "Darwin" ]]; then
sed -i '' 's/red/green/g' sed.txt
else
sed -i'' 's/red/green/g' sed.txt
fi