Automatisches Erstellen von Sitemaps unter UNIX:
wget --mirror --no-parent --reject jpg,jpeg,png,gif,svg,mp3,mp4,JPG,pdf,PDF,woff,eof,eot,ttf --output-file=ran-wget.log http://www.ondigo.de/
tree | grep -v index.html
# 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)/' | |
} | |
/* ***************************************************************************** | |
* Formates a JS Date Object according toa given String. The Place holders | |
* work like the php date() function, but not every case is implemented ! | |
* | |
* %d% Day of the month, 2 digits with leading zeros | |
* %j% Day of the month without leading zeros | |
* %m% Numeric representation of a month, with leading zeros | |
* %n% Numeric representation of a month, without leading zeros | |
* %Y% A full numeric representation of a year, 4 digits | |
* %y% A two digit representation of a year |
Automatisches Erstellen von Sitemaps unter UNIX:
wget --mirror --no-parent --reject jpg,jpeg,png,gif,svg,mp3,mp4,JPG,pdf,PDF,woff,eof,eot,ttf --output-file=ran-wget.log http://www.ondigo.de/
tree | grep -v index.html
I hereby claim:
To claim this, I am signing this object:
$ scp user@1.2.3.4:/var/log/apache/www.domain.com.log ~/2015-04-16_log-analyse/www1.domain.com.log
$ scp user@1.2.3.4:/var/log/apache/www.domain.com.log ~/2015-04-16_log-analyse/www2.domain.com.log
$ cd ~/2015-04-16_log-analyse
$ grep "2015-04-16 15" www1.domain.com.log > www.domain.com_1500-1559.log
Currently just a collection of snippets, but should be developed into a setup Script! | |
# Make Sublime available from the command line (sublime ~/.hgrc) | |
$ sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime |
(function( vjs ) { | |
var webtrekkPlugin = function( options ) { | |
var player = this, | |
sendEventToWebtrekk = function( trekkString ) { | |
var messageData = { | |
'sender': 'videojsWebtrekk', | |
'message': trekkString | |
}; | |
window.parent.postMessage( JSON.stringify( messageData ), '*' ); |
function isRetina(){ | |
return (('devicePixelRatio' in window && devicePixelRatio > 1) || | |
('matchMedia' in window && matchMedia("(-moz-device-pixel-ratio:1.0)").matches)) | |
} |
### 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 |