I hereby claim:
- I am jwatson on github.
- I am jwatson (https://keybase.io/jwatson) on keybase.
- I have a public key ASC_nRyd7q5jvcHxI8cvGgW-ACFLQufJNwdvrAK2NEA8CQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
static void SendHipChatMessage(NSString *token, NSString *room, NSString *message) | |
{ | |
NSDictionary *params = @{ | |
@"auth_token": token, | |
@"format": @"json", | |
@"room_id": room, | |
@"from": @"Mapkin App", | |
@"message": message, | |
@"message_format": @"text", | |
@"notify": @1, |
html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> | |
<title>Error 401 x-nuance-sessionid26a77594-335c-4340-bc83-2e898cc1660b | |
Received QueryError: Application ID or application key either invalid or expired.</title> | |
</head> | |
<body><h2>HTTP ERROR 401</h2> | |
<p>Problem accessing /NMDPTTSCmdServlet/tts. Reason: | |
<pre> x-nuance-sessionid26a77594-335c-4340-bc83-2e898cc1660b | |
Received QueryError: Application ID or application key either invalid or expired.</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> |
html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> | |
<title>Error 401 x-nuance-sessionid26a77594-335c-4340-bc83-2e898cc1660b | |
Received QueryError: Application ID or application key either invalid or expired.</title> | |
</head> | |
<body><h2>HTTP ERROR 401</h2> | |
<p>Problem accessing /NMDPTTSCmdServlet/tts. Reason: | |
<pre> x-nuance-sessionid26a77594-335c-4340-bc83-2e898cc1660b | |
Received QueryError: Application ID or application key either invalid or expired.</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> |
#!/usr/bin/env python | |
#vim: set fileencoding=utf8 | |
""" | |
This example depends on the `requests` library | |
http://requests.readthedocs.org/en/latest/ | |
$ pip install requests |
user www-data; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
use epoll; | |
accept_mutex off; | |
} |
from __future__ import print_function | |
import time | |
from fabric.api import get, local, run, sudo | |
def run_pg_badger(): | |
db_name = "mapkin" | |
sudo("perl -pi -e 's/log_min_duration_statement = .*/log_min_duration_statement = 0/' /etc/postgresql/9.*/main/postgresql.conf") |
#!/usr/bin/env python | |
# vim: set fileencoding=utf-8 | |
from __future__ import print_function | |
from fabric.api import env, run, sudo | |
from fabric.colors import cyan, green, yellow | |
from fabric.state import output |
#!/usr/bin/env python | |
from __future__ import print_function | |
import json | |
import os | |
import requests | |
import sys |