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
-- add work layer group if not exists | |
INSERT INTO systemlookup | |
(id, org, [type], [name]) | |
SELECT | |
id + 'work_layer_group' id, | |
id as org, | |
'MAP_LAYER_GROUP' [type], | |
'Work' [name] | |
FROM org o | |
where id = '${orgId}' |
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
// icon | |
{ | |
"type": "symbol", | |
"layout": { | |
"icon-size": 0.5 | |
}, | |
"paint": {} | |
} | |
// point |
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 () { | |
const { layers } = await (await fetch('https://.../arcgis/rest/services/.../MapServer?f=pjson')).json(); | |
const layersById = layers.reduce((acc, item) => { | |
acc[item.id] = item; | |
return acc; | |
}, {}); | |
let usedIcons = []; |
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
/* | |
---------------------------------------------------------------------------------------------------- | |
Table: W1_DOCUMENT - Document | |
---------------------------------------------------------------------------------------------------- | |
The data for CLOB/XML field BO_DATA_AREA should be enclosed by <endclob>. | |
Delimiter: , | |
Enclosing Character: " | |
For not-nullable fields with no value, provide a single space enclosed in enclosing character | |
Fields: | |
The first 30 characters contain target table name W1_DOCUMENT padded with spaces |
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
declare @v_db nvarchar(255) = 'sample'; | |
declare @v_bkup_name nvarchar(255) = (select @v_db + format(sysdatetime(),'_yyyyMMdd_HHmm') + '.bak'); | |
declare @v_arn nvarchar(510) = 'arn:aws:s3:::sample-databasebackups/' + @v_bkup_name; | |
print '=====backing up database=====' | |
print 'database: ' + @v_db; | |
print 'filename: ' + @v_bkup_name; | |
print 'arn: ' + @v_arn; | |
exec msdb.dbo.rds_backup_database | |
@source_db_name= @v_db, --database 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
/* | |
refresh sql server database views | |
*/ | |
declare @name varchar(max) = '' | |
declare viewCursor cursor | |
for | |
select distinct [name] | |
from [sysobjects] | |
where [type] = 'V'; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Amazon Monitron Lamda Function | |
// Basic Example grabbing info from S3 Bicket | |
const aws = require('aws-sdk'); | |
const s3 = new aws.S3({ apiVersion: '2006-03-01' }); | |
var ses = new aws.SES({ region: "us-east-1" }); | |
const prefix = '[LOGPREFIX] ' | |
exports.handler = async (event, context) => { |
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
// Oracle OCI Object Storage Upload Example | |
// Using Upload Manager with Progress Bar Tracking | |
// imports | |
const fs = require('fs'); | |
const { basename, join } = require('path'); | |
const cliProgress = require('cli-progress'); | |
const os = require('oci-objectstorage'); | |
const common = require('oci-common'); |
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 Files into Clob from Filesystem Using PL/SQL | |
Dee Clawson | |
20210814 | |
MIT License | |
*/ | |
res CLOB; | |
v_bfile BFILE; | |
v_temp_blob BLOB; |