Skip to content

Instantly share code, notes, and snippets.

An die Liebe

Ich habe dich nicht gebeten zu bleiben, doch du bist geblieben.

Ich habe dich niemals gefragt wer du bist oder was du auch willst.

@SpikePy
SpikePy / trip_preparationsa.md
Last active September 8, 2023 05:16
Trip Preparations

Trip Preparation

Before starting look for weather forecast.

Thinks to Pack

rations

  • some fruits and vegi
  • sliced bread
@SpikePy
SpikePy / ansible_multiline.yaml
Last active June 1, 2022 18:48
playing with multiline commands in ansible
#! /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
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"} \
@SpikePy
SpikePy / wlan_signal_strength.sh
Created December 15, 2021 07:14
Linux: Scan WLAN Signal Strength
sudo iwlist wlan0 scan|grep -E '(Cell|ESSID|dBm)' | less