##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 isRetina(){ | |
return (('devicePixelRatio' in window && devicePixelRatio > 1) || | |
('matchMedia' in window && matchMedia("(-moz-device-pixel-ratio:1.0)").matches)) | |
} |
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) */ |
### Redirect for folders, preserving subfolders | |
RedirectMatch 301 ^/en/orchester/mitglieder/musiker/(.*) /en/orchestra/musician/$1 | |
RedirectMatch 301 ^/orchester/mitglieder/musiker/(.*) /orchester/musiker/$1 |
# /etc/php/php.ini | |
log_errors = On | |
error_log = /tmp/php-error.log |
# 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] |
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. |
### 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%" |
##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" |
# NOTE: This shit is mixed up (Ubuntu Linux vs Mac OS) | |
# ###################################### | |
# Functions and Parameters for Own Aliases | |
# ###################################### | |
function parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |