I'm writing this up from memory, so errors may appear.
This has been updated to use SHA256 certificates.
- Go to http://www.startssl.com/
- Click on 'Control Panel'
#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/ |
<?php | |
/* | |
Usage: | |
$frag = new CWS_Fragment_Cache( 'unique-key', 3600 ); // Second param is TTL | |
if ( !$frag->output() ) { // NOTE, testing for a return of false | |
functions_that_do_stuff_live(); | |
these_should_echo(); | |
// IMPORTANT | |
$frag->store(); | |
// YOU CANNOT FORGET THIS. If you do, the site will break. |
@mixin respond-to-ie($size){ | |
@if $old-ie { | |
@content; | |
} @else { | |
@media all and (min-width: $size) { | |
@content; | |
} | |
} | |
} |
@mixin animation($value) { | |
-webkit-animation: unquote($value); | |
-moz-animation: unquote($value); | |
-o-animation: unquote($value); | |
animation: unquote($value); | |
} | |
@mixin animation-property($property, $value) { | |
-webkit-animation-#{$property}: unquote($value); | |
-moz-animation-#{$property}: unquote($value); |
I'm writing this up from memory, so errors may appear.
This has been updated to use SHA256 certificates.
# alias to edit commit messages without using rebase interactive | |
# example: git reword commithash message | |
reword = "!f() {\n GIT_SEQUENCE_EDITOR=\"sed -i 1s/^pick/reword/\" GIT_EDITOR=\"printf \\\"%s\\n\\\" \\\"$2\\\" >\" git rebase -i \"$1^\";\n git push -f;\n}; f" | |
# aliases to change a git repo from private to public, and public to private using gh-cli | |
alias gitpublic="gh repo edit --accept-visibility-change-consequences --visibility public" | |
alias gitprivate="gh repo edit --accept-visibility-change-consequences --visibility private" | |
# delete all your repos using gh-cli (please do not run this unless you want to delete all your repos) | |
gh repo list --limit 300 --json url -q '.[].url' | xargs -n1 gh repo delete --yes |
#!/bin/bash | |
grep '#[0-9a-fA-F]\{6\}#' -r -H -lc /var/www/ --include=*.{html,js,css,php,tpl,sh,py,java,class} | # Only get found issues | |
/usr/bin/mail -E -s 'INFECTED FILES FOUND on example.com' [email protected] # Send EMail | |
grep '/\*[0-9a-fA-F]\{6\}\*/' -r -H -lc /var/www/ --include=*.{html,js,css,php,tpl,sh,py,java,class} | # Only get found issues | |
/usr/bin/mail -E -s 'INFECTED FILES FOUND on example.com' [email protected] # Send EMail | |
grep 'e=w\["eval"\]' -r -H -lc /var/www/ --include=*.{html,js,css,php,tpl,sh,py,java,class} | # Only get found issues | |
/usr/bin/mail -E -s 'INFECTED FILES FOUND on example.com' [email protected] # Send EMail | |
grep '<!--/[0-9a-fA-F]\{6\}-->' -r -H -lc /var/www/ --include=*.{html,js,css,php,tpl,sh,py,java,class} | # Only get found issues | |
/usr/bin/mail -E -s 'INFECTED FILES FOUND on example.com' [email protected] # Send EMail | |
grep 'r=eval' -r -H -lc /var/www/ --include=*.{html,js,css,php,tpl,sh,py,java,class} | # Only get found issues |
upstream phpfpm { | |
server unix:/var/run/php5-fpm.sock; | |
} | |
upstream hhvm { | |
server unix:/var/run/hhvm/hhvm.sock; | |
} | |
# SSL | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |
<?php | |
/* | |
Plugin Name: Add Postcount to Adminmenu | |
Plugin URI: https://gist.github.com/derpixler/6d73b30fee3dcaf6d119 | |
Description: This Plugin adds a count bubble on Post menu | |
Version: 1.0 | |
Author: René Reimann | |
Author URI: http://www.rene-reimann.de | |
License: |
msgid "" | |
msgstr "" | |
"Project-Id-Version: <PROJECT NAME>\n" | |
"POT-Creation-Date: 2015-04-02 16:42+0100\n" | |
"PO-Revision-Date: \n" | |
"Last-Translator: \n" | |
"Language-Team: \n" | |
"Language: de_DE\n" | |
"MIME-Version: 1.0\n" | |
"Content-Type: text/plain; charset=UTF-8\n" |