Skip to content

Instantly share code, notes, and snippets.

curl -u userName:password -H "Accept: application/json" http://locahost:8080/pentaho/api/userroledao/users
curl -u userName:password -H "Accept: application/json" http://locahost:8080/pentaho/api/userroledao/roles
curl -X PUT -u userName:password http://locahost:8080/pentaho/api/userroledao/createUser \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{ "userName" : "Test1", "password" : "test" }'
curl -X PUT -u userName:password http://locahost:8080/pentaho/api/userroledao/createUser \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
@osya
osya / gist:73c1d70936e93277366e
Last active January 26, 2016 10:32
Working with Vertica #SQL
-- Connecting to Vertica via pyvertica
__author__ = 'vosipov'
from pyvertica.connection import get_connection
conn = get_connection(False, driver='{Vertica}', server='192.168.30.128', database='VMart', port=5433, uid='dbadmin', pwd='password')
cursor = conn.cursor()
for row in cursor.execute("SELECT table_name FROM tables;"):
print row
conn.close()
@jineeshjohn
jineeshjohn / gist:2044414
Last active December 5, 2018 18:59
Dynamic html table rows and column creation with jQuery
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<style>
table{
width:500px;
height:500px;
}
table td{
padding:10px;
margin:10px;
border:1px solid #ccc;