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
TMPDIR="/gisdata/temp/" | |
UNZIPTOOL=unzip | |
WGETTOOL="/usr/bin/wget" | |
export PGBIN=/usr/lib/postgresql/14/bin | |
export PGPORT=5432 | |
export PGHOST=localhost | |
export PGUSER=$1 | |
export PGPASSWORD=$2 | |
export PGDATABASE=osm | |
PSQL=${PGBIN}/psql |
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
tags: | |
load_all: true | |
tables: | |
power: | |
columns: | |
- name: osm_id | |
type: id | |
- name: geometry | |
type: geometry | |
- key: name |
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
areas: | |
area_tags: [building, landuse, leisure, natural, aeroway] | |
linear_tags: [highway, barrier] | |
generalized_tables: | |
landusages_gen0: | |
source: landusages_gen1 | |
sql_filter: ST_Area(geometry)>500000.000000 | |
tolerance: 200.0 | |
landusages_gen1: | |
source: landusages |
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
(async function run() { | |
/** | |
* Here we check to make sure we're on the Apps page of the QMC. | |
* If we aren't on the Apps page, we exit the script with an | |
* error message. | |
*/ | |
if (window.location.pathname.includes("/qmc/apps") != true) { | |
let msg = "Only use this in the QMC!"; | |
console.log("####", msg); | |
alert(msg); |
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
<# | |
# Migrate data connections | |
# ======================== | |
# | |
# Requirements: | |
# - Qlik CLI tool (🔗 - https://github.com/qlik-oss/qlik-cli) | |
# - The ID of the data connection to migrate | |
# | |
# Steps: | |
# 1. Login to origin Qlik env. |
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
/* REST error retry loop */ | |
/* - This script will try to execute a subroutine 3 times before it finally fails. */ | |
Set ErrorMode = 0; | |
SUB MySub | |
LIB CONNECT TO 'Server test'; | |
[MyTable]: | |
SQL SELECT |
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
// ============================ LOAD TABLES ============================ | |
/* LOAD Fact table 1, including creating the compound key that will be used | |
to link this table to the other ones | |
*/ | |
Qualify *; | |
Unqualify [%mainKey], [CASENUMBER], [EMPLOYEE_CUSTOMERNO]; | |
[ReqAb]: | |
LOAD |
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
# Update DataTransfer load script | |
# Location of datasets.json file | |
$ds_path = "C:\ProgramData\Qlik\DataTransfer\DataUpload\storage\datasets.json" | |
# Get file contents as PSObject | |
$ds = Get-Content $ds_path | ConvertFrom-Json -Depth 20 | |
# Narrow to relevant data connection | |
$aws_con = $ds | ? { $_.name -eq "AWS SQL Server test 1" } |
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
<# | |
# # # # Assign nPrinting roles with nPrinting CLI using PowerShell # # # # | |
- Created by: Austin Spivey (aspivey@copleycg.com) | |
- Uses: https://github.com/QlikProfessionalServices/QlikNPrinting-CLI | |
- Last updated: 12/16/2021 | |
-License: MIT | |
Copyright 2021 Austin Spivey (aspivey@copleycg.com) | |
#> |
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 Python to access a password-protected page and scrape the data therein | |
# | |
# Make sure to install the Selenium and BeautifulSoup packages before running this script. | |
# | |
# Also, you need to install the ChromeDriver that matches your Chrome version: | |
# - https://chromedriver.chromium.org/downloads | |
# | |
# Things you can do to adapt and improve this script: | |
# - Install and use the python-dotenv package to use a .env file for storing your login credentials | |
# without accidentally exposing them to code reviewers. |
NewerOlder