Skip to content

Instantly share code, notes, and snippets.

@kjenney
kjenney / gist:4cfcc44482e1720d4e96340e8cb1d7d5
Created July 7, 2022 17:41
Redshift FIPS US-GOV-WEST-1 Failing
\
2022/07/07 17:37:37 [INFO] Terraform version: 0.13.7
2022/07/07 17:37:37 [INFO] Go runtime version: go1.14.7
2022/07/07 17:37:37 [INFO] CLI args: []string{"/bin/terraform", "init", "REDACTED"}
2022/07/07 17:37:37 [DEBUG] Attempting to open CLI config file: /root/.terraformrc
2022/07/07 17:37:37 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022/07/07 17:37:37 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022/07/07 17:37:37 [DEBUG] ignoring non-existing provider search directory /root/.terraform.d/plugins
2022/07/07 17:37:37 [DEBUG] ignoring non-existing provider search directory /root/.local/share/terraform/plugins
2022/07/07 17:37:37 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
@kjenney
kjenney / send_to_api_arduino_uno_wifi_v2
Created July 29, 2023 01:21
send_to_api_arduino_uno_wifi_v2
/*
This example puts data to a secure API endpoint
*/
#include <SPI.h>
#include <WiFiNINA.h>
#include "arduino_secrets.h"
@kjenney
kjenney / app-config.yaml
Created October 10, 2023 23:22
Using Self-hosted Github instance with Backstage Scaffolder
app:
title: Test
baseUrl: http://localhost:3000
organization:
name: Test
backend:
# Used for enabling authentication, secret is shared by all backend plugins
# See https://backstage.io/docs/auth/service-to-service-auth for
@kjenney
kjenney / gist:cef4c2346afff05b3b2d4a96f5a4e37a
Created February 11, 2024 17:23
pytrends_top_search_list.py
from pytrends.request import TrendReq
pytrends = TrendReq(hl='en-US', tz=360)
trending = pytrends.trending_searches(pn='united_states')
trending_list = trending[0].tolist()
print(trending_list)
@kjenney
kjenney / slackapp.py
Last active February 12, 2024 14:54
Slack App with Socket Mode Sending Interactive Messages and Client Sending Non-Interactive Messages
import requests
import logging
from threading import Thread
from slack_bolt import App
from slack_bolt.adapter.socket_mode import SocketModeHandler
import os
import threading
import time
logging.basicConfig(level=logging.DEBUG)