Skip to content

Instantly share code, notes, and snippets.

@jeremysuriel
jeremysuriel / openssl.conf
Created October 17, 2018 13:48
openssl.conf example for CA and chained certificate
dir = .
[ ca ]
default_ca = CA_default
[ CA_default ]
serial = $dir/serial
database = $dir/index.txt
new_certs_dir = $dir/newcerts
certificate = $dir/cacert.pem

Keybase proof

I hereby claim:

  • I am jeremysuriel on github.
  • I am jeremysuriel (https://keybase.io/jeremysuriel) on keybase.
  • I have a public key ASA4TTTezFi_GXoldEbwf0NEFgtZbEcRPnbPRGKGuSaLfgo

To claim this, I am signing this object:

@jeremysuriel
jeremysuriel / desk-oauth-example-single.php
Created May 1, 2012 01:05
Desk.com Single Access Token API - PHP Example
<?php
//
// Desk.com Single Access Token API Example
//
// 1) Copy this file to the root of your webserver and change the $my_desk_url variable to point to your desk.com hostname
// 2) Go to https://[yoursite].desk.com/admin/settings/api-applications and create an API Application
// 3) Copy the consumer key & secret on the listing page after you create your API Application
// 4) Click the "Your Access Token" link to get your single access token & secret
// 5) Copy your single access token & secret and paste it into the appropriate variable in this file
//
user www-data;
# number of nginx workers
worker_processes 1;
# pid of nginx master process
pid /var/run/nginx.pid;
# Number of worker connections. 1024 is a good default
events {
worker_connections 1024;