Skip to content

Instantly share code, notes, and snippets.

@BrajeshKhare
BrajeshKhare / graceful_shutdown_tornado_web_server.py
Created June 10, 2016 09:39 — forked from mywaiting/graceful_shutdown_tornado_web_server.py
The example to how to shutdown tornado web server gracefully...
#!/usr/bin/env python
"""
How to use it:
1. Just `kill -2 PROCESS_ID` or `kill -15 PROCESS_ID` , The Tornado Web Server Will shutdown after process all the request.
2. When you run it behind Nginx, it can graceful reboot your production server.
3. Nice Print in http://weibo.com/1682780325/zgkb7g8k7
"""
@BrajeshKhare
BrajeshKhare / supervisor.conf
Created June 13, 2016 07:08 — forked from tsabat/supervisor.conf
Sample supervisor config file
; Sample supervisor config file.
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
;chmod=0700 ; sockef file mode (default 0700)
;chown=nobody:nogroup ; socket file uid:gid owner
;username=user ; (default is no username (open server))
;password=123 ; (default is no password (open server))
;[inet_http_server] ; inet (TCP) server disabled by default
@BrajeshKhare
BrajeshKhare / gf-hubspot-sugar.php
Created October 14, 2016 05:16
Gravity Forms integration for Hubspot and SugarCRM
<?php
/**
* Includes extensions for Gravity Forms to SugarCRM and Hubspot
* The demo code with all fields is located at the bottom of the file
* for future reference so we don't have to hunt it down later
*
* Don't forget to read the link on how to finish off the SugarCRM
* integration. I'll blog about it eventually so it's all in one
* spot.
*
@BrajeshKhare
BrajeshKhare / hubspot_config.php
Created October 14, 2016 05:17 — forked from adrianmott/hubspot_config.php
HubSpot to SugarCRM Integration Code Sample
<?php
$hubspot_config = array (
'hsportalid' => '######',
'hapikey' => 'XXXXXX',
'hapiuser' => 'XXXXXX',
'hapipassword' => 'XXXXXX',
'sugarinstallpath' => 'http://somesite.com/sugarcrm/',
'hapilogfile' => './sycnlog.txt');
?>

Install Openshift OC Tool in Ubuntu 16.04

What is OC Tool?

OC tool stands for OpenShift Origin Client Tools

Environment

  • Operating System : Ubuntu 16.04 LTS (64-bit)