Skip to content

Instantly share code, notes, and snippets.

View tfoldi's full-sized avatar

Földi Tamás tfoldi

View GitHub Profile
@tfoldi
tfoldi / dim_cndn_abap.abap
Created December 6, 2011 09:28
KONV extract SAP Download
REPORT ZAL_ABAP message-id 26 line-size 255
no standard page heading.
* Y_XI_G00D_KONV_FASTFULL_2.
PARAMETER $PARAM1 TYPE I.
PARAMETER DOWNLOAD(1) DEFAULT 'N' lower case. "N-svr,Y-clnt
PARAMETER EXECMODE(1) DEFAULT 'B' lower case. "D-dlg,B-btch
PARAMETER OUT_DIR(48) DEFAULT "output file dir
'/dwacta/out/LD2' lower case.
PARAMETER IN_DIR(48) DEFAULT "input file dir
'/dwacta/out/LD2' lower case.

Payload for test:

$ cat signin.xml
<tsRequest>
  <credentials name="yoyo" password="fofo" >
    <site contentUrl="" />
  </credentials>
</tsRequest>

CURL -F works with Tableau 9.0

CREATE TABLE emp (
name text,
age integer,
salary numeric(10,2)
);
CREATE OR REPLACE FUNCTION get_emps(float8) RETURNS SETOF emp AS '
names <- c("Joe","Jim","Jon")
ages <- c(41,25,35)
salaries <- c(250000,120000,50000)
@tfoldi
tfoldi / tableau.rb
Created April 24, 2013 07:56
This ruby class can logon and invoke REST API URLs in Tableau server. Authentication is done by using RSA crpyto stuff.
require 'httpclient'
module TableauLDAPSync
class Tableau
def initialize(server_url)
proxy = ENV['HTTP_PROXY']
@http_client = HTTPClient.new(proxy)
@http_client.set_cookie_store("cookie.dat")
# put this file to the apache\conf directory
# Load mod_jk module
# Update this path to match your modules location
LoadModule jk_module modules/mod_jk.so
# Declare the module for <IfModule directive> (remove this line on Apache 2.x)
#AddModule mod_jk.c
# Where to find workers.properties
# Update this path to match your conf directory location (put workers.properties next to httpd.conf)
@tfoldi
tfoldi / get_published_sources_with_workbook.sql
Created January 30, 2016 15:06
Get published data sources with workbooks
select *
from datasources
inner join data_connections on (data_connections.name = datasources.name)
inner join workbooks on (data_connections.owner_id = workbooks.id)
where data_connections.dbclass = 'sqlproxy';
@tfoldi
tfoldi / workgroup.yml
Last active December 6, 2016 10:21
Tableau Server Features
features.APIBasedEmbedCode: false
features.AQLDataPipeline2: false
features.AddSupportUser: false
features.AlertOnThresholdCondition: false
features.AlphabeticalSchemaSort: false
features.AlternativeFedEngine: false
features.AnalyticsObjectsEditors: false
features.AsyncJsModuleLoad: false
features.AutomaticDrill: false
features.Autosave: false
@tfoldi
tfoldi / Makefile
Created September 15, 2010 12:46
Greenplum MapReduce function written in C language
wordcount:
cc -g -ggdb -shared -o wordcount.so wordcount.c -I`pg_config --includedir-server` -I`pg_config --pkgincludedir`/internal -I`pg_config --pkgincludedir` -fPIC
@tfoldi
tfoldi / WebServiceClient.java
Created May 14, 2015 14:09
Trigger Schedule from Java
/**
*
*/
package tableauSrvrWebservice.Auth;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StringReader;
package com.starschema.jampi.blas
import jdk.incubator.vector.{DoubleVector, FloatVector, IntVector}
object DotProductVector {
val I128 = IntVector.SPECIES_128
val I256 = IntVector.SPECIES_256
val F256 = FloatVector.SPECIES_256
val D256 = DoubleVector.SPECIES_256