if status --is-interactive
Command to get a fresh database dump from redis with redis-cli
redis-cli --rdb /tmp/dump.rdb
From Redis Docs
upstream docker-registry {
server registry:5000;
}
root certbot -q renew --nginx
tar -axvf ImageMagick.tar.gz
!/bin/bash
rdb_file="/FOLDER_TO_YOUR_REDIS_DUMP_FILE/redis/dump.rdb"
redis_cli="/usr/bin/redis-cli"
DIR=date +%d-%m-%y
DEST=~/redis_backups/$DIR
mkdir $DEST
echo save| $redis_cli
exit 1
Rake::Task[:extra_behavior].invoke
Rake::Task[:my_task].invoke(1,'v18_0',20141230)
certbot renew --dry-run
file exists
gulp.task('default', () => {
return gulp
.src('./build/*.html')
.pipe(replace('.js"></script>', '.js" inline></script>'))
.pipe(replace('rel="stylesheet">', 'rel="stylesheet" inline>'))
.pipe(
inlinesource({
compress: false,
ignore: ['png'],
})
)
.pipe(gulp.dest('./build'));
});
{
"semi": true,
"trailingComma": "none",
"singleQuote": true,
"printWidth": 80
}
This post suggests the top 6 snippets you need to keep in your Chrome DevTools to help you experiment and build better apps.
While I regularily use services like Buddy or DeployHQ to build and deploy Craft CMS websites, I wanted to experiment with Github Actions. Here is what I came up with and why.
