Skip to content

Instantly share code, notes, and snippets.

View ssimpson89's full-sized avatar

Stephen Simpson ssimpson89

View GitHub Profile
@ConnorGriffin
ConnorGriffin / GDrive.Upload.ps1
Last active February 9, 2024 22:10
GDrive Upload PowerShell Script
# Set the Google Auth parameters. Fill in your RefreshToken, ClientID, and ClientSecret
$params = @{
Uri = 'https://accounts.google.com/o/oauth2/token'
Body = @(
"refresh_token=$RefreshToken", # Replace $RefreshToken with your refresh token
"client_id=$ClientID", # Replace $ClientID with your client ID
"client_secret=$ClientSecret", # Replace $ClientSecret with your client secret
"grant_type=refresh_token"
) -join '&'
Method = 'Post'
@Kapeli
Kapeli / cdn.js
Created February 25, 2014 22:17
function latencyTest(url) {
$.ajax({
url: "http://"+url+".kapeli.com/feeds/latencyTest_v2.txt",
cache: false,
success: function(content){
if(beginsWith("Just a latency test. Move along.", content))
{
var link = document.getElementsByClassName("downloadButton")[0];
if(link.getAttribute("href") == "Dash.zip")
{
@sysr-q
sysr-q / whatever.py
Created June 15, 2013 09:53
Generate on-the-fly QR codes, and send them out via Flask.
# -*- coding: utf-8 -*-
from flask import Flask, send_file
import qrcode
from StringIO import StringIO
app = Flask(__name__)
@app.route("/qr/<path:url>")
@app.route("/qr")
def qr_route(url="http://dongcorp.org"):
@onyxfish
onyxfish / wordpress.vcl
Created June 28, 2011 21:34
ChicagoNow Varnish configuration (development version)
backend app1 {
.host = "127.0.0.1";
.port = "8000";
}
acl purge {
"127.0.0.1";
"::1";
}