Skip to content

Instantly share code, notes, and snippets.

View abfo's full-sized avatar
☁️
Building Aurora: https://github.com/abfo/aurora

Robert Ellison abfo

☁️
Building Aurora: https://github.com/abfo/aurora
View GitHub Profile
var apiKey = '';
var monitorUrl = '';
var originUrl = '';
function monitor() {
// CRUX
var allCrux = callCrux(null, originUrl);
var desktopCrux = callCrux('DESKTOP', originUrl);
var mobileCrux = callCrux('MOBILE', originUrl);
var OAuthCreds = {
"type": "service_account",
//...
};
var SendEmailTo = '';
var MonitorImageUrl = '';
function downloadFrame() {
var timestamp = Date.now().toString();
var url = 'https://nexusapi.dropcam.com/get_image?uuid=12345&height=1280&cb=' + timestamp;
var response = UrlFetchApp.fetch(url);
var blob = response.getBlob();
blob.setName(timestamp + '.jpg');
var folders = DriveApp.getFoldersByName('DCFrames');
while (folders.hasNext()) {
public static void CrushAllImages()
{
try
{
string appDataRoot = HostingEnvironment.MapPath("~/App_Data");
if (appDataRoot == null)
{
return;
}
public ActionResult InlineCss()
{
BundleContext context = new BundleContext(
new HttpContextWrapper(System.Web.HttpContext.Current),
BundleTable.Bundles,
"~/Content/css");
Bundle cssBundle = BundleTable.Bundles.GetBundleFor("~/Content/css");
BundleResponse response = cssBundle.GenerateBundleResponse(context);
using System;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
namespace fingerd
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Caching;
using Newtonsoft.Json.Linq;
// ReSharper disable CheckNamespace
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FacebookComments.ascx.cs"
Inherits="LocalControls_FacebookComments" %>
<fb:comments href="..." width="630" num_posts="10">
*Include SEO comment list here*
</fb:comments>
if (string.IsNullOrWhiteSpace(post.Slug))
{
post.Slug = Post.GetUniqueSlug(post.Title, post.Id);
}