This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Data.Odbc; | |
class Program | |
{ | |
static void Main() | |
{ | |
string connectionString = "DRIVER={Arrow Flight SQL ODBC Driver};host=localhost;UID=dremio;PWD=dremio123;PORT=32010;UseEncryption=false;DisableHostVerification=1;DisableCertificateVerification=1;HandshakeTimeout=100;ROUTING_TAG=testing"; | |
using (OdbcConnection connection = new OdbcConnection(connectionString)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires JDK 1.8 | |
// Run it with: | |
// javac Main.java && java -cp .:dremio-jdbc-driver-20.0.0-202201050826310141-8cc7162b.jar Main | |
// If the output in terminal shows the following then the test is successful. | |
// Printing the result | |
// ------------------- | |
// User: dremio | |
// ------------------- | |
import java.sql.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:7 | |
RUN yum install -y python3 python3-devel python3-pip unixODBC unixODBC-devel python3-setuptools gcc gcc-c++ https://download.dremio.com/odbc-driver/dremio-odbc-LATEST.x86_64.rpm && \ | |
pip3 install apache-superset sqlalchemy_dremio && \ | |
export LC_ALL=en_US.UTF-8 && \ | |
superset db upgrade && \ | |
superset init && \ | |
export FLASK_APP=superset && \ | |
flask fab create-admin --username admin --firstname admin --lastname admin --email admin@admin --password admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyarrow import flight | |
import base64,time,pandas | |
class HttpDremioClientAuthHandler(flight.ClientAuthHandler): | |
def __init__(self, username, password): | |
super().__init__() | |
self.username = bytes(username) | |
self.password = bytes(password) | |
self.token = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "my doc", | |
"foo": { | |
"bar": "baz", | |
"quux": "revlos", | |
"level1" : { | |
"l2string": "l2val", | |
"l2struct": { | |
"level3": "l3val" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"_id": "5ab556035819188e4e0f11ed", | |
"index": 0, | |
"guid": "96733393-88fd-4a56-a566-e83bd36ea8a2", | |
"isActive": false, | |
"balance": "$1,612.00", | |
"picture": "http://placehold.it/32x32", | |
"age": 27, | |
"eyeColor": "blue", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Movie ID | Movie Name | Year | |
---|---|---|---|
0000008 | Edison Kinetoscopic Record of a Sneeze | 1894 | |
0000091 | Le manoir du diable | 1896 | |
0000417 | Le voyage dans la lune | 1902 | |
0000628 | The s of Dollie | 1908 | |
0000833 | The Country Doctor | 1909 | |
0001223 | Frankenstein | 1910 | |
0001740 | The Lonedale Operator | 1911 | |
0002101 | Cleopatra | 1912 | |
0002130 | Linferno | 1911 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Print title, link and score for each HN items | |
// Inject jquery | |
$('.title>a').each(function(index) { | |
var titleLink = $(this).text() + "::" + $(this).attr("href"); | |
var score = $(this).parent().parent().next().find($('[id^=score]')).text().replace(/[^\/\d]/g, ''); | |
console.log(titleLink + "::" + score); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Router restart script | |
# This scrit authenticates itself with the router and then restarts the router | |
# Version 1.0 | |
# Auther - Naren | |
# Tested on a faulty Belkin router :X | |
# To execute: | |
# $ sh restart.sh | |
# Note: You may want to chmod 777 restart.sh to give it permission |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This script gets the feeds of the specified rss link. | |
* | |
* @author - Naren | |
* @version - 1.0.0 | |
* @since - 4th April, 2014. 17:23 EST | |
* | |
*/ |
NewerOlder