Linux terminal (super) lite:
conda install m2-base
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
| import os | |
| import wget | |
| import uuid | |
| import requests | |
| from pymongo import MongoClient | |
| # Meant for my discord quotes database, but works for anything where collection looks like: | |
| # { | |
| # { 'name': '<name>', | |
| # 'image_url: '<url>' |
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
| name: Setup Terraform via GitHub Actions | |
| # Source: https://github.com/marketplace/actions/hashicorp-setup-terraform | |
| on: [push, pull_request] | |
| #on: | |
| # push: | |
| # branches: | |
| # - main | |
| env: |
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
| # ---------- | |
| # Example is using Runescape Grand Exchange. User searches for an item and 'closest_item' is returned. | |
| # Buttons for each of the 'closest_item' are generated and user clicks on which one they want. Message | |
| # updates based on that selection and all the buttons are removed. | |
| # ---------- | |
| # message_author = context.message.author # If using commands, different if using slash | |
| # closest_items = ['Runite bar', 'Bronze bar', 'Iron bar', 'Rune dart'] | |
| # game = 'osrs' | |
| # view = GrandExchangeView(context.message.author, closest_items, game) | |
| # embed = preselect_embed(game) # content of the embed doesn't matter in this context |
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 | |
| # Prerequisites | |
| # - active `AWS_SESSION_TOKEN`, `AWS_SECRET_ACCESS_KEY`, and `AWS_ACCESS_KEY_ID` on host server | |
| # - identity file for the remote server, if required by server | |
| # Get command-line arguments | |
| while getopts ":s:i:" opt; do | |
| case $opt in | |
| s) remote_server="$OPTARG" |
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
| name: tortoise | |
| channels: | |
| - conda-forge | |
| dependencies: | |
| - python=3.8 | |
| - charset-normalizer | |
| - pip | |
| - pillow |