This file contains 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
usort($data, function ($a, $b) { | |
return ip2long($a[0]) - ip2long($b[0]); | |
}); |
This file contains 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
private function getAsnFromIP($ip) | |
{ | |
$query = 'whois -h whois.cymru.com " -f ' . (string) $ip . '"'; | |
$whoisResult = shell_exec($query); | |
$asnArray = explode('|', $whoisResult); | |
$cleanAsn = array_map('trim', $asnArray); | |
return $cleanAsn; | |
} |
This file contains 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
/** | |
* @module describe-it | |
* | |
* This module defines global variables to provide unit test case runner functions compatible with mocha and jasmine. | |
* The codebase is written for brevity and facilitate being as lightweight as possible. | |
* | |
* The code is intended to be included in Postman Test Sandbox. | |
*/ | |
/** |
This file contains 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
1: In a CMD window: | |
setx PATH "%PATH%;C:\Users\YOUR_USER_HERE\AppData\Local\Programs\Python\Python36-32\Scripts" | |
2: Close instance of CMD | |
3: Open new instance of CMD | |
4: $$$ |
This file contains 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
SET TL_PANEL=C:\ | |
SET TR_PANEL=C:\ | |
SET BL_PANEL=C:\ | |
SET BR_PANEL=C:\ | |
start ConEmu -cmdlist powerShell -cur_console:fn:d:%TL_PANEL% ^|^|^| powerShell -cur_console:s1TVnd:%BL_PANEL% ^|^|^| cmd -cur_console:s1THnd:%TR_PANEL% ^|^|^| powerShell -cur_console:s2THnd:%BR_PANEL% |
This file contains 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
html{ | |
height:100%; | |
width:100%; | |
background: url(images/bg.jpg) no-repeat center center fixed; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
} |
This file contains 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 javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
public class simpleGUI extends JFrame implements ActionListener { | |
private static final long serialVersionUID = 1L; | |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am 6footgeek on github. | |
* I am 6footgeek (https://keybase.io/6footgeek) on keybase. | |
* I have a public key whose fingerprint is 6F4C 2EC0 A219 F442 C22C 6FD7 2A2A A6EB 35FB 1CD8 | |
To claim this, I am signing this object: |