This file contains 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
#!/bin/bash | |
# one-liner: curl -s https://gist.github.com/PavloKovalov/6229214/raw/413074b01ed17ddba7de1eec5cfe6072212a23fa/fixmode.sh | bash - | |
find . -type f -perm 0666 -exec chmod 644 {} \; | |
find . -type f -perm 0777 -exec chmod 644 {} \; | |
find . -type d -perm 0777 -exec chmod 755 {} \; |
This file contains 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
server { | |
listen 80; | |
server_name localhost ~^(www\.)?(?<domain>.*\.dev)(.*\.xip\.io)?$ ; | |
root /home/pavel/www/$domain; | |
index index.php index.html index.htm; | |
location / { | |
try_files $uri $uri/ /index.php$is_args$args; | |
} |
This file contains 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
@import url(http://fonts.googleapis.com/css?family=Arimo:400,700,400italic,700italic); | |
* { | |
margin: 0; | |
padding: 0; | |
outline: none; | |
border: none; | |
background: transparent; | |
vertical-align: baseline; | |
-webkit-touch-callout: none; | |
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); |
This file contains 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
// Определение версии Internet Explorer (IE) в JavaScript | |
// Источник: http://tanalin.com/articles/ie-version-js/ | |
if (document.all && !document.querySelector) { | |
alert('IE7 или ниже'); | |
} | |
if (document.all && document.querySelector && !document.addEventListener) { | |
alert('IE8'); | |
} |
This file contains 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
%USERNAME% ALL=NOPASSWD: /usr/local/bin/sep |