View node-axios.js
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
// requires axios, install using "npm install axios" | |
const axios = require('axios'); | |
axios.get('http://pshmn.com/eaFnY') | |
.then(response => { | |
console.log(response.data); | |
}).catch(error => { | |
console.log(error); | |
}); |
View Jquery
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
$(document).ready(function() { | |
$.ajax({ | |
url: '${urlstring}', | |
success: function(data) { | |
document.write(data); | |
}, | |
error: function(xhr, status, error) { | |
document.write(error + ": " + JSON.parse(xhr.responseText)); | |
} | |
}); |
View scala
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
<#if filename> | |
scala_.txt | |
<#elseif title> | |
Scala | |
<#elseif logo> | |
//dmnv44fd3imdv.cloudfront.net/www.pushmon.com/img/code/java.gif | |
<#elseif code> | |
package com.teamextension.ping; | |
import java.net.URL |
View node
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
<#if filename> | |
node_.txt | |
<#elseif title> | |
Node | |
<#elseif logo> |
View c
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
<#if filename> | |
c_.txt | |
<#elseif title> | |
C | |
<#elseif logo> | |
//dmnv44fd3imdv.cloudfront.net/www.pushmon.com/img/code/java.gif | |
<#elseif code> | |
#include <stdio.h> | |
#include <curl.h> |
View pushmon.ps1
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
$urlString = "http://pshmn.com/eaFnY" | |
(new-object System.Net.WebClient).DownloadString($urlString) |
View pushmon.sh
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
#!/bin/bash | |
set -e # if command fails, exit and do not ping | |
urlstring="http://pshmn.com/eaFnY" | |
curl -L "${urlstring}" | |
# if you prefer wget over curl, use | |
# wget -O - "${urlstring}" |
View gist:1886456
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
<script type='text/javascript' src="http://pshmn.com/eaFnY?type=js"></script> |
View gist:1886446
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
require 'net/http' | |
require 'uri' | |
urlString = 'http://pshmn.com/eaFnY' | |
begin | |
Net::HTTP.get(URI.parse(urlString)) | |
rescue | |
# log error | |
end |
View gist:1886432
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
On Error Resume Next | |
Dim http, urlString | |
urlString = "http://pshmn.com/eaFnY" | |
Set http = CreateObject("Msxml2.ServerXMLHTTP") | |
http.Open "GET", urlString | |
http.Send | |
Set http = Nothing |
NewerOlder