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
var gulp = require('gulp'); | |
var babel = require('gulp-babel'); | |
var babelify = require('babelify'); | |
var uglify = require('gulp-uglify'); | |
var streamify = require('gulp-streamify'); | |
var browserify = require('browserify'); | |
var source = require('vinyl-source-stream'); | |
var del = require('del'); | |
var vinylPaths = require('vinyl-paths'); |
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
node_modules | |
sessions | |
build | |
dist | |
tmp | |
logs | |
*.out | |
node_modules | |
bower_components | |
public/components |
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
function triggerEvent(elem, eventName) { | |
var event = document.createEvent('HTMLEvents'); | |
event.initEvent(eventName,true, true); | |
event.eventName = eventName; | |
elem.dispatchEvent(event); | |
} |
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
target: | |
browserify js/main.js | uglifyjs -c warnings=false > bundle.js |
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
var gulp = require('gulp'); | |
var browserify = require('gulp-browserify'); | |
var sass = require('gulp-sass'); | |
// timers and WATCH_INTERVAL are needed for debouncing watch tasks | |
var timers = { | |
js: -1, | |
sass: -1, | |
tests: -1 | |
}; | |
var WATCH_INTERVAL = 1000; |
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 | |
/* | |
* Warning! Read and use at your own risk! | |
* | |
* This tiny proxy script is completely transparent and it passes | |
* all requests and headers without any checking of any kind. | |
* The same happens with JSON data. They are simply forwarded. | |
* | |
* This is just an easy and convenient solution for the AJAX |
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 | |
if ( isset($_POST['input_data']) ){ | |
$input_ip_list = explode ( "\n" , str_replace("\r", "", $_POST['input_data']) ); | |
$selected_ip_list = array(); | |
foreach( $input_ip_list as $line ) { | |
$new_ip = preg_match('/didn[^0-9a-zA-Z]*t[\s]+pass[\s]+through[\s]+redirect/',$line); | |
if ( $new_ip ){ | |
$line_as_array = preg_split("/[\s\t]+/", $line); | |
$selected_ip_list[] = $line_as_array[2]; |