<input class="single-prop-self-closing" />
<img
src="/img/test.png"
class="multiple-props-self-closing"
/>
<span class="single-prop-no-content"></span>
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
_ssmcmd() { | |
# Ensure jq is installed | |
if ! command -v "jq" &> /dev/null; then | |
echo -e "Missing required command: jq" | |
exit | |
fi | |
echo -n "Running command..." | |
local CMD_ID=$(aws ssm send-command \ | |
--targets "Key=instanceids,Values=$2" \ |
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
curl -X PUT -H "Circle-Token: <token>" \ | |
-H "Accept: application/json" \ | |
-H "Content-Type: application/json" \ | |
--data '{"feature_flags":{"pr-only-branch-overrides": "prod, dev, staging"}}' \ | |
"https://circleci.com/api/v1.1/project/<vcs_type>/<org_slug>/<repo_name>/settings" |
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
<?php | |
namespace Drupal\my_migrate\Commands; | |
use Drupal\Core\Config\ConfigFactory; | |
use Drupal\Core\Entity\EntityTypeManagerInterface; | |
use Drupal\Core\Logger\LoggerChannelFactoryInterface; | |
use Drupal\migrate_tools\Commands\MigrateToolsCommands; | |
use Drupal\migrate_tools\MigrateTools; | |
use Drupal\search_api\IndexBatchHelper; |
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
_ecssh() { | |
aws ecs execute-command \ | |
--cluster $1 \ | |
--task $2 \ | |
--command "/bin/bash -c \"[ -f \"/entrypoint.sh\" ] && source /entrypoint.sh\" && /bin/bash" \ | |
--interactive | |
} | |
alias ecssh='_ecssh' |
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 | |
RED='\033[0;31m' | |
BLUE='\033[0;34m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' | |
sed_cmd="sed -i" | |
if man sed | grep -q BSD; then | |
sed_cmd="sed -i ''" |
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
<?php | |
namespace Drupal\my_module\Plugin\search_api\processor; | |
use Drupal\search_api\Datasource\DatasourceInterface; | |
use Drupal\search_api\Item\ItemInterface; | |
use Drupal\search_api\Processor\ProcessorPluginBase; | |
use Drupal\search_api\Processor\ProcessorProperty; | |
/** |
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
_cleanupRemote() { | |
if [ -n "$1" ]; then | |
branches=$(git remote prune "$1" -n | grep -oP ".*would prune\] $1/\K(.+)") | |
if [ -n "$branches" ]; then | |
echo "The following branches will be pruned and any local copies deleted:" | |
echo | |
echo "$branches" | |
echo |
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 | |
mydir=/tmp/certs | |
mkdir $mydir | |
truststore=${mydir}/rds-truststore.jks | |
storepassword=changeit | |
curl -sS "https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem" > ${mydir}/rds-combined-ca-bundle.pem | |
awk 'split_after == 1 {n++;split_after=0} /-----END CERTIFICATE-----/ {split_after=1}{print > "rds-ca-" n ".pem"}' < ${mydir}/rds-combined-ca-bundle.pem |
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
lockup() { | |
tmp_dir=$(mktemp -d -t locker-XXXXXXX) | |
( | |
set -e | |
locker=$1 | |
files=${@:2} | |
if [ -z "$locker" ]; then | |
echo "Must specify a locker name" |