Skip to content

Instantly share code, notes, and snippets.

View jdemos's full-sized avatar

John Demos jdemos

View GitHub Profile

GitHub CodeQL Configuration Update Script

Overview

This Python script automates updating CodeQL configurations for GitHub repositories to use the extended query suite.

Features

  • Retrieves repositories associated with a code security configuration
  • Updates each repository's CodeQL configuration to use extended query suite
  • Provides status reporting and error handling
@jdemos
jdemos / task_one.py
Created November 23, 2022 01:59
Voia: Label Studio - task one python script
# Task 1: Automate the creation and import of data into ‘Label Studio’ using its API
# 1. Create an object detection project in Label Studio
# 2. Import the relevant data into this project
# 2a. Create local import storage connection
# 2b. Validate the connection
# 2c. Sync import storage - sync tasks from a local file import storage connection.
import os
import sys
@jdemos
jdemos / v2_quote_tweet_1443018592648192005.json
Created November 15, 2021 20:17
v2 Quote Tweet - Tutorial
{
"data": {
"id": "1443018592648192005",
"referenced_tweets": [
{
"type": "quoted",
"id": "1441113332644139010"
}
],
"text": "Happening now! We'd love to see you there! https://t.co/zX1mE4mWce"
@jdemos
jdemos / v2_reply_tweet_1445094741222248452.json
Created November 15, 2021 20:16
v2 Reply Tweet - Tutorial
{
"data": {
"id": "1445094741222248452",
"referenced_tweets": [
{
"type": "replied_to",
"id": "1445090423962279937"
}
],
"text": "@oscarmayer can we have the keys to the hot dog car"
@jdemos
jdemos / v2_retweet_1441083486559866882.json
Created November 15, 2021 20:15
v2 Retweet - Tutorial
{
"data": {
"id": "1441083486559866882",
"referenced_tweets": [
{
"type": "retweeted",
"id": "1441082281406308356"
}
],
"text": "RT @SproutSocial: We're excited to share that we partnered with @officialpartner on their #ExtremeWeather project to better understand how…"
@jdemos
jdemos / v2_original_tweet_1440769535355748358.json
Created November 15, 2021 20:14
v2 Original Tweet - Tutorial
{
"data": {
"id": "1440769535355748358",
"text": "Learn how to use the Twitter API with Google Cloud Products to ingest and analyze large volumes of Tweets in this tutorial by @prasannacs. Read more ⏬\n\nhttps://t.co/zvNHX85img"
}
}
@jdemos
jdemos / quote_tweet_1443018592648192005.json
Created November 15, 2021 20:09
Quote Tweet - Tutorial
{
"created_at": "Wed Sep 29 01:03:37 +0000 2021",
"id": 1443018592648192005,
"id_str": "1443018592648192005",
"text": "Happening now! We'd love to see you there! https://t.co/zX1mE4mWce",
"display_text_range": [
0,
42
],
"source": "Twitter Web App",
@jdemos
jdemos / reply_1445094741222248452.json
Created November 15, 2021 20:07
Reply - Tutorial
{
"created_at": "Mon Oct 04 18:33:29 +0000 2021",
"id": 1445094741222248452,
"id_str": "1445094741222248452",
"text": "@oscarmayer can we have the keys to the hot dog car",
"display_text_range": [
12,
51
],
"source": "Sprinklr",
@jdemos
jdemos / retweet_1441083486559866882.json
Created November 15, 2021 20:06
Retweet - Tutorial
{
"created_at": "Thu Sep 23 16:54:11 +0000 2021",
"id": 1441083486559866882,
"id_str": "1441083486559866882",
"text": "RT @SproutSocial: We're excited to share that we partnered with @officialpartner on their #ExtremeWeather project to better understand how…",
"source": "Twitter Web App",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
@jdemos
jdemos / original_tweet_1440769535355748358.json
Last active November 15, 2021 20:04
Original Tweet - Tutorial
{
"created_at": "Wed Sep 22 20:06:40 +0000 2021",
"id": 1440769535355748358,
"id_str": "1440769535355748358",
"text": "Learn how to use the Twitter API with Google Cloud Products to ingest and analyze large volumes of Tweets in this t… https://t.co/SzVYjzhPHC",
"source": "Twitter Web App",
"truncated": true,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,