Skip to content

Instantly share code, notes, and snippets.

@pippolino
pippolino / redshift_query_executor.py
Last active April 17, 2024 21:43
Redshift Data API Query Executor
import time
import boto3
import pandas as pd
class RedshiftQueryExecutor:
def __init__(self, cluster_id, database, user, region):
self.client = boto3.client('redshift-data', region_name=region)
self.cluster_id = cluster_id
self.database = database

Keybase proof

I hereby claim:

  • I am pippolino on github.
  • I am pippolino (https://keybase.io/pippolino) on keybase.
  • I have a public key whose fingerprint is 95B4 C01C 74E4 D13F 8D91 E3D6 C8D4 3994 EE81 1976

To claim this, I am signing this object:

@pippolino
pippolino / gist:5f6f9cc2d3a26f9f35d9b4326e15ae58
Created November 28, 2023 08:47
DependencyCheck - Maven Plugin 9.0.1 - java.lang.NoClassDefFoundError after NVD download error
2023-11-28T08:18:06.2375863Z ##[section]Starting: Dependency check update only
2023-11-28T08:18:06.2386464Z ==============================================================================
2023-11-28T08:18:06.2386915Z Task : Maven
2023-11-28T08:18:06.2387055Z Description : Build, test, and deploy with Apache Maven
2023-11-28T08:18:06.2387455Z Version : 4.231.0
2023-11-28T08:18:06.2387619Z Author : Microsoft Corporation
2023-11-28T08:18:06.2387876Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/maven
2023-11-28T08:18:06.2388422Z ==============================================================================
2023-11-28T08:18:07.0245883Z [command]/usr/bin/mvn -version
2023-11-28T08:18:07.2848985Z Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
multifactSumAggregator = function() {
return function(facts) {
return function() {
var summedFacts = {};
for (var _i = 0, _len = facts.length; _i < _len; _i++) {
summedFacts[facts[_i]] = 0
}