Skip to content

Instantly share code, notes, and snippets.

View hclpandv's full-sized avatar
🎯
Focusing

Vikas Pandey hclpandv

🎯
Focusing
View GitHub Profile
@hclpandv
hclpandv / wait_for_http_200.sh
Created April 25, 2019 05:51 — forked from rgl/wait_for_http_200.sh
Wait for an HTTP endpoint to return 200 OK with Bash and curl
bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9000)" != "200" ]]; do sleep 5; done'
# also check https://gist.github.com/rgl/c2ba64b7e2a5a04d1eb65983995dce76
@hclpandv
hclpandv / ansible-github.yml
Created November 27, 2018 03:01 — forked from devynspencer/ansible-github.yml
Example playbook for cloning a private git repository with Ansible.
---
hosts: all
tasks:
- name: add github ssh key
copy: >
src=files/id_rsa.github
dest=/root/.ssh/id_rsa.github
owner=root
group=root