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
const SMTPServer = require("smtp-server").SMTPServer; | |
const TelegramBot = require('node-telegram-bot-api'); | |
const fetch = require('node-fetch'); | |
const TelegramToken = ''; | |
const bot = new TelegramBot(TelegramToken, {polling: false}); | |
const chatId = ''; | |
const server = new SMTPServer({ | |
onConnect(session, callback) { | |
// if (session.remoteAddress === "10.10.10.2") { |
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
<?php | |
//php gd-gif.php image.gif gd-image.gif | |
$gif = imagecreatefromgif($argv[1]); | |
imagegif($gif, $argv[2]); | |
imagedestroy($gif); | |
?> |
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
gd |
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
alert(document.domain); |
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
// Inputs in Radians so degtorad degrees first. | |
function vincenty($lat1, $lon1, $lat2, $lon2) { | |
// Equitorial Radius | |
$a = 6378137.0; | |
// Polar Radius | |
$b = 6356752.31424518; | |
//Flattening of the ellipsoid | |
$f = 0.00335281066; | |
// Difference in longitude | |
$L = $lon2 - $lon1; |
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
<?php | |
/** | |
* Calculate geodesic distance (in meters) between two points specified by | |
* latitude/longitude using Vincenty inverse formula for ellipsoids | |
* | |
* from: Vincenty inverse formula - T Vincenty, "Direct and Inverse | |
* Solutions of Geodesics on the Ellipsoid with application of nested | |
* equations", Survey Review, vol XXII no 176, 1975 | |
* http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf | |
* |