Skip to content

Instantly share code, notes, and snippets.

PushMon pushmon

Block or report user

Report or block pushmon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View node-axios.js
// 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
$(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
<#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
<#if filename>
node_.txt
<#elseif title>
Node
<#elseif logo>
@pushmon
pushmon / c
Created Apr 2, 2014
C Language
View c
<#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
$urlString = "http://pshmn.com/eaFnY"
(new-object System.Net.WebClient).DownloadString($urlString)
View pushmon.sh
#!/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
<script type='text/javascript' src="http://pshmn.com/eaFnY?type=js"></script>
View gist:1886446
require 'net/http'
require 'uri'
urlString = 'http://pshmn.com/eaFnY'
begin
Net::HTTP.get(URI.parse(urlString))
rescue
# log error
end
View gist:1886432
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
You can’t perform that action at this time.