Skip to content

Instantly share code, notes, and snippets.

View abdulhadad's full-sized avatar

Abdul Hadad abdulhadad

View GitHub Profile
@abdulhadad
abdulhadad / publish_twbx.bat
Created November 5, 2014 06:54
Publishing multiple Tableau document in certain folder
rem @echo off
set TABLEAU_SVR_DIR="C:\Program Files\Tableau\Tableau Server\8.1"
set TABLEAU_TWBX_DIR="C:\Users\Administrator\Documents\tableau docs"
pushd %TABLEAU_SVR_DIR%\bin
tabcmd.exe login -u user -p password -s http://localhost
for %%X in (%TABLEAU_TWBX_DIR%\*) do tabcmd.exe publish "%%X"
popd
pause
@abdulhadad
abdulhadad / httpd-php.conf
Created November 24, 2014 06:30
PHP SAPI separate configuration file for Apache httpd
# handler for .php file
LoadModule php5_module "c:/php54/php5apache2_4.dll"
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
# configure the path to php.ini
PHPIniDir "C:/php54"
@abdulhadad
abdulhadad / httpd-proxy-pentaho.conf
Created November 24, 2014 06:47
Separate onfiguration of Pentaho called via Apache httpd proxy module
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
@abdulhadad
abdulhadad / set_date.cmd
Created November 24, 2014 07:19
Set windows time and date from batch file
time 1:00:00 PM
date 12/7/2013
@abdulhadad
abdulhadad / set_tableau_trusted.bat
Last active August 29, 2015 14:10
Set trusted tableau host and restart tableau
set TABLEAU_SVR_DIR="C:\Program Files\Tableau\Tableau Server\8.1"
pushd %TABLEAU_SVR_DIR%\bin
rem stop tableau server
tabadmin stop
rem tabadmin set wgserver.trusted_hosts "ip1, ip2"
tabadmin set wgserver.trusted_hosts "127.0.0.1, 192.168.230.129"
rem set the log level of log vizqlserver log, set info or debug
tabadmin set server.log.level "info"
rem config tableau
tabadmin config
@abdulhadad
abdulhadad / httpd-proxy-tableau.conf
Created November 26, 2014 08:09
Proxy configuration for tableau on apache httpd
# open tableau server login screen in existing server http://webserver_host/tableau/
# after login url will redisrect to http://webserver_host/
# open again to open tableau server portal http://webserver_host/tableau/
#
# clear web browser cache to use or use private browsing mode
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
@abdulhadad
abdulhadad / index.html
Created June 21, 2016 13:55
redirect to different url folder
<!doctype html>
<html>
<head>
<title>Redirect</title>
<meta http-equiv="Refresh" content="0; url=/selter">
<!-- If the meta tag doesn't work, try JavaScript to redirect. -->
<script type="text/javascript">
window.location.href = "/selter"
@abdulhadad
abdulhadad / QuranReference.txt
Last active July 24, 2016 18:19
Quran References
# Quran.com
http://quran.com/
## Quran.com legacy
http://legacy.quran.com/
## Quran Android
http://android.quran.com/
# Tanzil
http://tanzil.net/
@abdulhadad
abdulhadad / HTML CSS JS Playgrounds.txt
Last active July 25, 2016 11:36
HTML CSS JS Playgrounds
http://jsbin.com/
http://cssdeck.com/
https://jsfiddle.net/
http://codepen.io//
@abdulhadad
abdulhadad / windows10_hotspot.bat
Last active August 24, 2016 16:27
Start and stop windows 10 hotspot feature
@echo off
set _show_wlan=netsh wlan show drivers
rem see if device support hotspot
for /f "tokens=2 delims=:" %%a in ('%_show_wlan% ^|find "Hosted network supported"') do @set _hn_support=%%a
if "%_hn_support%"==" Yes" (
setlocal EnableDelayedExpansion
set _ssid=Windows10Hotspot
set _password=Windows10