Skip to content

Instantly share code, notes, and snippets.

View digideskio's full-sized avatar

airbender digideskio

View GitHub Profile
@digideskio
digideskio / png2svg.sh
Created March 27, 2018 07:56 — forked from ykarikos/png2svg.sh
Convert png to svg using imagemagick and potrace
#!/bin/bash
if [ "$1" == "" ]; then
echo Usage: $0 pngfile
exit 0;
fi
FILE=`basename $1 .png`
if [ ! -e $FILE.png ]; then
<html>
<body style="font-family:Futura,'Century Gothic',CenturyGothic,AppleGothic,Arial,sans-serif; color:#333;">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><img src="https://medtasker-signatures.s3.amazonaws.com/medtasker-640px.png" width="178" height="30" /> </td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
// ==UserScript==
// @name GC Tour
// @namespace https://gist.github.com/DieBatzen/5814dc7368c1034470c8/
// @version 4.6.2
// @description Cachetour planning made easy. Pick some Caches, sort the list and print it out. Free for all users of geocaching.com!
// @run-at document-end
// @include http*://www.geocaching.com/*
// @include https://gctour.geocaching.cx/map/show*
// @exclude /^https?://www\.geocaching\.com/(login|jobs|promotions|blog)/
// @updateURL https://gist.github.com/DieBatzen/5814dc7368c1034470c8/raw/gctour.version.js
@digideskio
digideskio / cqc.ps1
Created December 20, 2017 02:40 — forked from matt40k/cqc.ps1
Care Quality Commission (CQC) - Basic PowerShell script to query Providers API (https://api.cqc.org.uk/public/v1/)
$url = 'https://api.cqc.org.uk/public/v1/'
$proxy = 'http://proxy:8000'
$limit = '1000000'
#$limit = '5'
$name = 'partnerCode={{ YOUR COMPANY NAME \ CODE }}'
#$limit = '5'
$providersUrl = $url+"providers?perPage=$limit&$name"
Write-Host $providersUrl
$r = Invoke-WebRequest -Uri $providersUrl -Method GET -ProxyUseDefaultCredentials -Proxy $proxy
$items = $r.Content | ConvertFrom-Json
@digideskio
digideskio / atto.js
Created December 19, 2017 19:58 — forked from FMCorz/atto.js
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@digideskio
digideskio / LambdaHandler.py
Created December 17, 2017 06:10 — forked from danieljimenez/LambdaHandler.py
Slack, Uber Eats
import logging
from urlparse import parse_qs
BODY_NAME = 'body-json'
class LambdaHandler:
def __init__(self, event, context, expected_tokens, method):
self.event = event
self.context = context

GitHub OAuth Busy Developer's Guide

This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at Develop.GitHub.com.

OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.

Web Application Flow

  • Redirect to this link to request GitHub access:
@digideskio
digideskio / eob.rb
Created December 4, 2017 16:29 — forked from rsds143/eob.rb
script aetna
require 'capybara'
require 'capybara/dsl'
require 'active_support/all'
require 'debugger'
class AetnaDownloader
include Capybara::DSL
def initialize
Capybara.run_server = false
// ==UserScript==
// @name DoodleHelper Full Spectrum for Firefox
// @namespace http://doodleordie.com/profile/haicat
// @include http://doodleordie.com/play
// @version 1
// @grant none
// ==/UserScript==
/*
@digideskio
digideskio / Common-Currency.json
Created November 29, 2017 20:41 — forked from ksafranski/Common-Currency.json
Common Currency Codes in JSON
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},