Skip to content

Instantly share code, notes, and snippets.

View te-online's full-sized avatar

Thomas Ebert te-online

View GitHub Profile
@te-online
te-online / DeleteButtonWithConfirmation.js
Last active December 17, 2020 17:15 — forked from adylevy/DeleteButtonWithConfirmation.js
react-admin delete button with confirmation
/*
Copyright (c) 2018 Ady Levy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
@te-online
te-online / wordpress-multisite-internal-redirect-loop.md
Created January 8, 2018 20:11 — forked from JustThomas/wordpress-multisite-internal-redirect-loop.md
WordPress Multisite: How to fix error "too many redirects"

WordPress Multisite: How to fix error "Request exceeded the limit of 10 internal redirects"

I am running a WordPress multisite network with sub-directory setup. When I check my error.log file, it is full of entries like this one:

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'Limit InternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

The problem was, in my case, one specific rewrite rule in the .htaccess file.

Problem description

#FOR MULTIPLE REDIS INSTANCE INSTALLATION ON CentOS USE THE FOLLOWING PATHS AND SETUP PROCESS:

  • create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf
  • edit /etc/redis-xxx.conf, illustrated as below
@te-online
te-online / Delete Backups.au3
Created April 4, 2016 07:51 — forked from numeralnathan/Delete Backups.au3
An AutoIt script to delete Windows Backups when disk space falls below threshold
#include <AutoItConstants.au3>
#include <MsgBoxConstants.au3>
; This is where the backups are stored
Global Const $BACKUP_DIR = "G:\NREYNOLD-LAP"
$free = DriveSpaceFree($BACKUP_DIR)
; Don't delete backups if more than 60 GB is available (i.e. enough for another new backup directory to be created)
if $free > 60 * 1024 then