Before starting look for weather forecast.
- some fruits and vegi
- sliced bread
sudo iwlist wlan0 scan|grep -E '(Cell|ESSID|dBm)' | less |
twitter_api_bearer_token=xxx | |
hashtag=spotify | |
granularity=hour | |
curl \ | |
-X GET \ | |
-H "Authorization: Bearer ${twitter_api_bearer_token}" \ | |
"https://api.twitter.com/2/tweets/counts/recent?query=%23${hashtag}&granularity=${granularity}&search_count.fields" \ | |
| jq -r '.data[] \ | |
| {"start","end","tweet_count"} \ |
#! /usr/bin/env -S ansible-playbook --inventory=localhost, -v | |
# execute me by running `./multiline_commands.yaml` | |
--- | |
- name: Playground | |
hosts: localhost | |
connection: local | |
gather_facts: no | |
tasks: | |
- name: > | |
multiline command don't need `\` because |
FROM python:alpine | |
RUN apk add --no-cache --virtual .build-deps gcc make python3-dev linux-headers libgcc musl-dev | |
RUN pip install ansible-core | |
RUN ansible-galaxy collection install azure.azcollection community.general kubernetes.core | |
RUN pip install -r ~/.ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt | |
#RUN pip install azure-cli==$(grep azure-cli-core ~/.ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt | cut -d'=' -f3) | |
RUN apk del .build-deps | |
ENV ANSIBLE_STDOUT_CALLBACK=yaml |