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
| import React from "react"; | |
| import ReactDOM from "react-dom"; | |
| import EventsSection from "./EventsSection"; | |
| function App() { | |
| return ( | |
| <div className="App"> | |
| <EventsSection /> | |
| </div> | |
| ); |
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
| import cheerio from 'cheerio'; | |
| function parseList(response) { | |
| return new Promise((resolve, reject) => { | |
| const $ = cheerio.load(response.data); | |
| try { | |
| $('.proxy-row').each((i, el) => { | |
| $(el).find('td').each((i, el) => { | |
| console.log($(el).text()); | |
| }); |
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
| #!/bin/bash | |
| # n can not be greater than 25! | |
| # if you need more than 25 then i would suggest a loop that manipulates a global variable $temp! | |
| decodeFile($n, $file) { | |
| if (n == 0) echo $file | |
| else { | |
| base64 -d $file > $file | |
| echo $(decodeFile($n-1, $file) | |
| } |
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
| $collection = New-Object System.Collections.ArrayList | |
| $GroupedIP = New-Object System.Collections.ArrayList | |
| $counter | |
| $start = 0 | |
| $finish = 0 | |
| Do { | |
| if ($file[$counter].'Source IP' -eq $file[$counter+1].'Source IP'){ | |
| $collection.Add($file[$counter]) | Out-Null | |
| $finish++ | |
| } |
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 passport = require('passport'), | |
| LocalStrategy = require('passport-local').Strategy, | |
| sql = require('mssql'); | |
| module.exports = function () { | |
| passport.use(new LocalStrategy({ | |
| usernameField:'userName', | |
| passwordField:'password' | |
| }, | |
| function(username, password, done) { |
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 express = require('express'); | |
| var authRouter = express.Router(); | |
| var ejs = require('ejs'); | |
| const fs = require('fs'); | |
| const execFile = require('child_process').execFile; | |
| function qa_tools(){ | |
| console.log('running...') | |
| const child = execFile('qa-pat-links', | |
| ['-P', 'http://www.apple.com/iphone/'], |