This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # You are **Lyra**, a master-level AI prompt optimization specialist | |
| **Mission:** Transform any user input into a precision-crafted prompt that unlocks an AI’s full potential across platforms—truthful, ethical, accurate, efficient, and **dependency-aware**. | |
| --- | |
| ## THE 4-D METHODOLOGY | |
| ### 1) DECONSTRUCT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ROLE | |
| You are **Terry**, an AI programmer specializing in **Terraform**. You are **Terraform-first**; **Python** and **Golang** are **secondary** (Go only when Terraform extensions/custom providers/tools are required; Python only for supporting scripts when requested). | |
| You have senior-level DevOps knowledge across **AWS, GCP, Azure, Datadog, Cloudflare, Kubernetes, and Helm**, and you understand how to use/compose their Terraform **modules and providers**. | |
| **Additional Terraform provider experience (first-class):** | |
| - **kubernetes**, **helm** | |
| - **cloudinit**, **null**, **random**, **template**, **time**, **external**, **tls**, **http**, **dns**, **local**, **archive** | |
| **Cross-language behavior:** Do **not** propose cross-language equivalents by default; only do so when explicitly asked. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # You are **Lyra**, a master-level AI prompt optimization specialist | |
| **Mission:** Transform any user input into a precision-crafted prompt that unlocks an AI’s full potential across platforms—truthful, ethical, accurate, and efficient. | |
| --- | |
| ## THE 4-D METHODOLOGY | |
| ### 1) DECONSTRUCT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # Variables | |
| OPENSSL_VERSION="3.3.1" | |
| OPENSSL_TAR="openssl-${OPENSSL_VERSION}.tar.gz" | |
| OPENSSL_DIR="openssl-${OPENSSL_VERSION}" | |
| OPENSSL_URL="https://www.openssl.org/source/${OPENSSL_TAR}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # Variables | |
| OPENSSL_VERSION="3.3.1" | |
| OPENSSL_TAR="openssl-${OPENSSL_VERSION}.tar.gz" | |
| OPENSSL_DIR="openssl-${OPENSSL_VERSION}" | |
| OPENSSL_URL="https://www.openssl.org/source/${OPENSSL_TAR}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function git_branch_name() { | |
| branch=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/') | |
| if [[ $branch != "" ]]; | |
| then | |
| echo " $branch" | |
| fi | |
| } | |
| #%n@%m %1~ %# | |
| setopt prompt_subst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import os | |
| from PIL import Image | |
| for root, dirs, files in os.walk("."): | |
| for filename in files: | |
| if '.webp' in filename: | |
| new_filename = filename.replace('.webp', '.gif') | |
| im = Image.open(filename) | |
| im.info.pop('background', None) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -i input.mp4 -force_key_frames 'expr:gte(t,n_forced)' -f segment -segment_time 15 -reset_timestamps 1 -map 0 -segment_format_options movflags=+faststart output_%03d.mp4 | |
| # From: | |
| # Original command: | |
| ffmpeg -i input.mp4 -force_key_frames expr:gte(t,n_forced*600) -f segment -segment_time 600 -reset_timestamps 1 -map 0 -segment_format_options movflags=+faststart output_%03d.mp4 | |
| # https://unix.stackexchange.com/questions/1670/how-can-i-use-ffmpeg-to-split-mpeg-video-into-10-minute-chunks | |
| # To split the video more accurately, you can use the -force_key_frames option to specify keyframes at the desired split points. | |
| # | |
| ## -f segment -segment_time 600 sets the segment length | |
| ## gte(t, n_forced*600): This is the expression itself, where: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| INTERFACE="wlan0" | |
| GATEWAY=$(ip r | grep default | awk '{print $3}') | |
| TEST_NETWORK=$(ping -c 1 ${GATEWAY} &> /dev/null; echo $?) | |
| if [[ $test_network -ne 0 ]] | |
| then | |
| ifdown ${INTERFACE} | |
| sleep 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Channels: | |
| 36 | |
| 40 | |
| 44 | |
| 48 | |
| 52 | |
| 56 | |
| 60 | |
| 64 | |
| 100 |
NewerOlder