##Fetch the status from origin and ignore all local changes
git fetch --all
git reset --hard origin/master
##Change the last commit Message
git commit --amend -m "New commit message"
(function( vjs ) { | |
var videojsEventBroadcastPlugin = function( options ) { | |
var player = this, | |
postEventToWindow = function( eventString ) { | |
var messageData = { | |
'name': 'zonTriggeredEventTracking', | |
'sender': 'videojs', | |
'event': eventString | |
}; |
# Redirect auf Sitemap (extern, Weiterleitung) | |
RewriteRule sitemap.xml$ /index.php?eID=dd_googlesitemap [L,Redirect=permanent] | |
# Redirect auf Sitemap (intern, Auslieferung) | |
RewriteRule ^sitemap\.xml$ index.php?eID=dd_googlesitemap [L] |
var NAMESPACE = NAMESPACE || {}; | |
NAMESPACE.gaSpeedTrackingJsLoadStart = (new Date()).getTime(); | |
/* All JS ... */ | |
/* Encapsulate "use strict" to this part of the code, while others can still be unstrict. */ | |
(function () { | |
"use strict"; | |
/* Track JS Parsing time (start was set at the Beginning of the JS) */ |
## | |
# Logging Settings in /etc/nginx/nginx.conf | |
## | |
log_format custom '$remote_user\t$time_local\t$request_time\t$host\t$request\t' | |
'$status\t$body_bytes_sent\t$http_referer\t$http_user_agent'; | |
access_log /var/log/nginx/access.log custom; | |
error_log /var/log/nginx/error.log; |
##Fetch the status from origin and ignore all local changes
git fetch --all
git reset --hard origin/master
##Change the last commit Message
git commit --amend -m "New commit message"
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
### With timestamp/integer coloumn (1354711936) | |
SELECT | |
FROM_UNIXTIME(crdate, '%Y') AS year, | |
FROM_UNIXTIME(crdate, '%M') AS month, | |
COUNT(uid) AS number | |
FROM `tx_campeforms_domain_model_contact` | |
WHERE interest LIKE "%Techniker%" | |
AND email NOT LIKE "%test.de%" | |
AND email NOT LIKE "%ondigo.de%" |
Cache! In allen Ebenen, samt Inhalt und Header. | |
================================================= | |
MySQL Tabellen anlegen: TYPE=InnoDB => ENGINE=InnoDB | |
================================================= | |
SITUATION: Formular. Eine Zeile soll via JS ausgeblendet werden, wenn das Feld nicht benötigt wird. Suche per parents('.selector'). | |
FEHLER: Nachdem sich die HTML-Struktur änderte, gab es weiter oben im DOM weitere '.selector' , sodass plötzlich praktisch die ganze Seite ausgeblendet wurde. |
# /etc/php/php.ini | |
log_errors = On | |
error_log = /tmp/php-error.log |