- CDNs sind nicht nur für Bilder sinnvoll, auch alle anderen Assets.
- CDNs können auch ESI Unterstützen.
- Prefetching Images/Files: http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#link-type-prefetch http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#link-type-prefetch
- Alles was ausfallen kann, wird auch ausfallen, sogar ganze Datacenter und Verfügbarkeitszonen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir scrutinizer && cd scrutinizer | |
# Install tools | |
# - Scrutinizer and composer | |
wget http://scrutinizer-ci.com/scrutinizer.phar | |
curl -sS https://getcomposer.org/installer | php | |
# - All needed CI tools | |
php composer.phar require h4cc/phpqatools:~1.2 | |
cp -p composer.phar vendor/bin/composer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apache2 Version 2.4 has two slight changes. | |
1. NameVirtualHost * is deprecated | |
-> Simply remove it. | |
2. Files sites-enabled have to end with '.conf' | |
in '/etc/apache2/apache2.conf' is now: | |
--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "43"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
/** | |
* Script for creating a new Apache2 VHost and MySQL User + Database. | |
* | |
* @author Julius Beckmann ([email protected]) | |
*/ | |
if(6 != count($argv)) { | |
echo "--- New Vhost --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
function wsse_header($username, $password) { | |
// Needed to change hashing, so not nounces with '/' inside will not be generated. | |
$nonce = sha1(uniqid(null, true) . uniqid()); | |
$created = new DateTime('now', new DateTimezone('UTC')); | |
$created = $created->format(DateTime::ISO8601); | |
$digest = sha1($nonce.$created.$password, true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i -e 's/^\$ModLoad imklog/#\$ModLoad imklog/g' /etc/rsyslog.conf | |
service rsyslog restart | |
# Source: https://github.com/devananda/openvz-tools/blob/master/install-openvz-kernel.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cronjob for poor man monitoring of server health | |
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | |
# Every sunday, check for apt-get upgrades. | |
33 3 * * 0 root apt-get update ; apt-get -q --simulate upgrade | |
# Every sunday, check for SMART errors. | |
34 3 * * 0 root echo 'SMART Sectors'; smartctl -a /dev/sda | grep -i sector ; smartctl -a /dev/sdb | grep -i sector; echo 'SMART All'; smartctl -a /dev/sda ; smartctl -a /dev/sdb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a new Token | |
curl -u 'githubuser' -d '{"note":"Your Application"}' https://api.github.com/authorizations | |
# It is: "ebab4dc37e654bb230a9c69ebcd5f38e9a81e210" | |
#{ | |
# "created_at": "2013-01-04T18:00:28Z", | |
# "app": { | |
# "url": "http://developer.github.com/v3/oauth/#oauth-authorizations-api", |