Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
<?php | |
App::uses('FormAuthenticate', 'Controller/Component/Auth'); | |
class ExtendedFormAuthenticate extends FormAuthenticate | |
{ | |
public function authenicate(CakeRequest $request, CakeResponse $response) { | |
$userModel = $this->settings['userModel']; | |
list($plugin, $model) = pluginSplit($userModel); | |
$fields = $this->settings['fields']; |
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
Press minus + shift + s
and return
to chop/fold long lines!
<rewrite> | |
<!-- Have a bunch of redirects? Put them in a separate file --> | |
<rules configSource="Rewrites.config" /> | |
<rules> | |
<!-- Simple rewrite --> | |
<rule name="Simple redirect" stopProcessing="true"> | |
<match url="^path/sub path/page\.aspx$" /> | |
<action type="Rewrite" url="/newpath.aspx" /> |
#!/bin/bash | |
# | |
# #automysqlcheck.sh | |
# | |
# This is a small bash script that checks all mysql databases for errors | |
# and mails a log file to a specified email address. All variables are | |
# hardcoded for ease of use with cron. Any databases you wish not to check | |
# should be added to the DBEXCLUDE list, with a space in between each name. | |
# | |
# original version by [email protected], UVic Fine Arts 2004 |
<?php | |
// Based on <https://github.com/mecha-cms/x.minify> | |
namespace x\minify\_ { // start namespace | |
$n = __NAMESPACE__; | |
\define($n . "\\token_boolean", '\b(?:true|false)\b'); | |
\define($n . "\\token_number", '-?(?:(?:\d+)?\.)?\d+'); |
:: Author: Kaleb Lewis (Alleck) | |
:: Purpose: Find High Traffic Connections | |
:: OS: Windows/DOS | |
:: Language: Batch (.bat) | |
@ECHO off | |
:: Set the threshold at which you want events to trigger. | |
SET threshold=100 | |
SET attacked=300 |
// Turn on Developer Mode under User Settings > Appearance > Developer Mode (at the bottom) | |
// Then open the channel you wish to delete all of the messages (could be a DM) and click the three dots on the far right. | |
// Click "Copy ID" and paste that instead of LAST_MESSAGE_ID. | |
// Copy / paste the below script into the JavaScript console. | |
// If you're in a DM you will receive a 403 error for every message the other user sent (you don't have permission to delete their messages). | |
var before = 'LAST_MESSAGE_ID'; | |
clearMessages = function(){ | |
const authToken = document.body.appendChild(document.createElement`iframe`).contentWindow.localStorage.token.replace(/"/g, ""); | |
const channel = window.location.href.split('/').pop(); |