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
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] |
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
wget https://raw.github.com/emposha/Shell-Detector/master/shelldetect.py | |
python shelldetect.py -r True -d /home/admin/web/ >> shell.log | |
find ./ -iname "8052c4.php" -type f | |
find ../public_html -type f -exec chmod 644 {} \; & | |
find ../public_html -type d -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
clamscan -r --bell -i / | |
/usr/local/sbin/maldet --scan-all /home/admin/web | |
cat /var/log/*.log | awk -F\" ' { print $1,$2 } ' | grep "file" | |
grep -RPn "(passthru|exec|eval|shell_exec|assert|str_rot13|system|phpinfo|base64_decode|chmod|mkdir|fopen|fclose|readfile) *\(" |
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
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) | |
# Access to docker container running | |
docker exec -it [container-id] bash |
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
http://noithattrevietnam.com | |
khóa căn bản: https://www.udemy.com/the-complete-react-native-and-redux-course/ | |
khóa nâng cao: https://www.udemy.com/react-native-advanced/ |
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
############Google Fonts css to JS######### | |
<script type="text/javascript"> | |
WebFontConfig = { | |
google: { families: [ 'Roboto:400,700&subset=latin-ext,vietnamese' ] } | |
}; | |
(function() { | |
var wf = document.createElement('script'); | |
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; | |
wf.type = 'text/javascript'; |
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
find -name '*.jpg' -print0 | xargs -0 --no-run-if-empty -I{} -P4 guetzli --quality 85 --verbose {} {} | |
apt-get install libpng-dev | |
apt-get install pkg-config | |
wget https://github.com/google/guetzli/releases/download/v1.0.1/guetzli_linux_x86-64 guetzli | |
chmod +x guetzli | |
find -name '*.jpg' -print0 | xargs -0 --no-run-if-empty -I{} -P4 ./var/www/html/guetzli --quality 85 --verbose {} {} |
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
https://sourcemaking.com/design_patterns/singleton |
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
ModPagespeed on | |
ModPagespeedInheritVHostConfig on | |
ModPagespeedRespectVary on | |
ModPagespeedPreserveUrlRelativity on | |
ModPagespeedFetchHttps enable | |
ModPagespeedLowercaseHtmlNames on | |
ModPagespeedDisableRewriteOnNoTransform off | |
ModPagespeedModifyCachingHeaders on | |
ModPagespeedXHeaderValue "Powered By mod_pagespeed" |
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
.giveMeEllipsis { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
display: -webkit-box; | |
-webkit-box-orient: vertical; | |
-webkit-line-clamp: N; /* number of lines to show */ | |
line-height: X; /* fallback */ | |
max-height: X*N; /* fallback */ | |
} |
NewerOlder