Skip to content

Instantly share code, notes, and snippets.

View qq99's full-sized avatar

Anthony Cameron qq99

View GitHub Profile
@ontarionick
ontarionick / gist:22608a703f358a984c9d
Created February 18, 2015 19:42
Hubspot auth handler for use in private or public API
require 'httparty'
class HubspotAuthHandler
HUBSPOT_LOGIN_URL = "https://login.hubspot.com/login/newLoginSubmit?loginPortalId=-1&loginRedirectUrl=&includeAuthToken=false"
HUBSPOT_HANDSHAKE_URL = "https://login.hubspot.com/login/api-verify"
def initialize(username, password)
@username = username
@password = password
@plentz
plentz / nginx.conf
Last active April 24, 2024 11:15
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048