Skip to content

Instantly share code, notes, and snippets.

View jmyeary's full-sized avatar

Justin Yeary jmyeary

  • Kansas
View GitHub Profile
@jmyeary
jmyeary / autoflex.py
Created January 31, 2024 02:27
automating azure pipelines: bicep tabular translation in python
import pyodbc
import json
# Connect to your database - don't hardcode the creds!
conn = pydobc.connect(database="your_database", user="your_username", password="your_password", host="your_host", port="your_port")
cur = conn.cursor()
# List of your tables
tables = ["table1", "table2", "table3", "table4", "table5", "table6", "table7", "table8", "table9"]
@jmyeary
jmyeary / gist:5a03e9f6f35b1f868c6e9ae01f6ce7a0
Created January 23, 2024 21:16
synapse cursor to check multiple tables
DECLARE @TableName nvarchar(128);
DECLARE @Command nvarchar(500);
DECLARE TableCursor CURSOR FOR
SELECT table_name FROM information_schema.tables
WHERE table_schema = 'myschema';
OPEN TableCursor;
FETCH NEXT FROM TableCursor INTO @TableName;
@jmyeary
jmyeary / tweet_dumper.py
Created June 13, 2022 18:16 — forked from brenorb/tweet_dumper.py
A Python 3.+ script to download all of a user's tweets into a csv.
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""