Skip to content

Instantly share code, notes, and snippets.

View duper's full-sized avatar

The Super Duper duper

View GitHub Profile
@duper
duper / malware-list
Created June 21, 2016 16:46 — forked from gurre/malware-list
Malware domains to block in /etc/hosts
0.0.0.0 000007.ru
0.0.0.0 0000mps.webpreview.dsl.net
0.0.0.0 0001.2waky.com
0.0.0.0 024xuyisheng.com
0.0.0.0 0452jhw.com
0.0.0.0 0511zfhl.com
0.0.0.0 0532qdzxmr.com
0.0.0.0 0632qyw.com
0.0.0.0 09cd.co.kr
0.0.0.0 0fees.net
<?php
// set up terminal colorization
define('T_RESET',"\33[0m");
define('T_BLACK',"\33[0;30m");
define('T_DARKGRAY',"\33[1;30m");
define('T_BLUE',"\33[0;34m");
define('T_LIGHTBLUE',"\33[1;34m");
define('T_GREEN',"\33[0;32m");
define('T_LIGHTGREEN',"\33[1;32m");
define('T_CYAN',"\33[0;36m");
@duper
duper / regex
Created June 21, 2016 16:45 — forked from gurre/regex
Useful regexes
<?php
define('REGEX_ALPHA',"{[A-ZÅÄÖa-zåäö\s\-]+}");
define('REGEX_ALPHANUMERIC',"{[0-9A-ZÅÄÖa-zåäö\s\-]+}");
define('REGEX_ALPHANUMERICSIGNS',"{[0-9A-ZÅÄÖa-zåäö\s\-\_\.\:\,\;\(\)\?\!\&\/\=]+}");
define('REGEX_NUMERIC',"{^(-){0,1}([0-9]+)(,[0-9][0-9][0-9])*([.][0-9]){0,1}([0-9]*)$}");
define('REGEX_DIGIT','{[0-9]+}');
define('REGEX_EMAIL',"{^[a-z0-9\å\ä\ö._-]+@[a-z0-9\å\ä\ö.-]+\.[a-z]{2,6}$}i");
define('REGEX_SWEMOBILE',"{((46)|(0))((70)|(73)|(76))([\d+]{6,7}$)}");
define('REGEX_ENCODED',"{[A-Za-z\-\_\,\*]+}");
define('REGEX_PERMALINK','{[a-z0-9\-\_]+}');
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)