Incorporates changes by 0mnius.
The intent is to define terse, standards-supported names for AWS regions.
| <?php | |
| /* | |
| Automatic Login | |
| (c) 2008 Tim Wood | |
| contact via: tmwood (at) datawranglers (dot) com | |
| You are free to use this code as long as this notice is retained | |
| Description |
| <f:if condition="{node.context.workspace.name} == 'live'"> | |
| Only visible in live frontend | |
| </f:if> | |
| <f:security.ifAccess privilegeTarget="TYPO3.Neos:Backend.GeneralAccess"> | |
| <f:if condition="{node.context.workspace.name} != 'live'"> | |
| Only visible in backend workspace | |
| </f:if> | |
| </f:security.ifAccess> |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "net" | |
| "os" | |
| "strings" |
| package main | |
| import ( | |
| "log" | |
| "bufio" | |
| "time" | |
| "os" | |
| "fmt" | |
| "io" | |
| "net" |
Incorporates changes by 0mnius.
The intent is to define terse, standards-supported names for AWS regions.
| SET @history_interval = 7; | |
| SET @trends_interval = 90; | |
| DELETE FROM alerts WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60); | |
| DELETE FROM acknowledges WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60); | |
| DELETE FROM events WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60); | |
| DELETE FROM history WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60); | |
| DELETE FROM history_uint WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60); | |
| DELETE FROM history_str WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60); |
| --- | |
| - hosts: all | |
| gather_facts: no | |
| vars: | |
| string: "string" | |
| list: | |
| - item1 | |
| - item2 | |
| dict: | |
| key1: value1 |
| #!/bin/bash | |
| RANDSTR="$(cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | head -c 40)" |
| # e.g. for example.com/kirbycms/ | |
| location /kirbycms/ { | |
| if (!-e $request_filename) { | |
| rewrite ^/kirbycms/(.*)$ /kirbycms/index.php last; | |
| break; | |
| } | |
| } |
| identify -format '%wx%h' image.png |