As long as composer support in CMS is "not there yet", you need to get around somehow.
Say you want to use the (awesome) markdown library, you need a way to get it in.
- Use a container extension with a private namespace
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| <?php // You probably don't need to add this opening PHP tag! | |
| function my_custom_canvas_scripts() { | |
| $classes = get_body_class(); | |
| if ( in_array( 'page-template-elementor_canvas', $classes ) ) { ?> | |
| <script type="text/javascript"> | |
| <!--[Custom Script]><!--> | |
| //(function($) { //Uncomment this for no conflict jQuery | |
| // Add your script here |
| #!/bin/bash | |
| set -e | |
| set -u | |
| clear | |
| ami="ami-10e00b6d" | |
| size="t2.medium" | |
| today=$(date +"%m-%d-%y-%H%M") | |
| localip=$(curl -s https://ipinfo.io/ip) |
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| let mapleader=" " | |
| """ Plugins -------------------------------- | |
| set surround | |
| set multiple-cursors | |
| set commentary | |
| set argtextobj | |
| set easymotion | |
| set textobj-entire | |
| set ReplaceWithRegister |
| # Advent of Code template by @MathisHammel | |
| import requests | |
| from aoc_secrets import AOC_COOKIE # Put your session cookie in this variable | |
| YEAR = '2022' | |
| def get_input(day): | |
| req = requests.get(f'https://adventofcode.com/{YEAR}/day/{day}/input', headers={'cookie':'session='+AOC_COOKIE}) | |
| return req.text |