Skip to content

Instantly share code, notes, and snippets.

@yumminhuang
yumminhuang / remove-expired-index.sh
Created October 27, 2017 02:48
Remove Elasticsearch indices that older than a given date.
#!/usr/bin/env bash
#set -x
usage()
{
cat << EOF
remove-expired-index.sh
@dianjuar
dianjuar / Install update WordPress puglins directly.md
Last active October 10, 2024 23:37
Install update WordPress plugins without providing ftp access

Install WordPress plugins directly (without FTP)

Put this on your wp-config.php

/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');