Skip to content

Instantly share code, notes, and snippets.

View alex-way's full-sized avatar
🏠
Working from home

Alexander Way alex-way

🏠
Working from home
View GitHub Profile
@alex-way
alex-way / settings.json
Created October 19, 2022 08:40
vscode config
{
"editor.minimap.enabled": false,
"editor.suggestSelection": "first",
"explorer.confirmDelete": false,
"rainbow_csv.csv_lint_detect_trailing_spaces": true,
"editor.wordBasedSuggestions": false,
"git.mergeEditor": true,
"window.commandCenter": true,
"terminal.integrated.shellIntegration.enabled": true,
"vs-kubernetes": {
@alex-way
alex-way / delete_artifacts.py
Created September 5, 2022 08:50
Delete Github Artifacts for repo
import requests
from datetime import datetime, timezone
from dateutil import parser
access_token = "POPULATE ME"
repo = "ORG/Repo"
total_bytes_deleted = 0
headers = {"Authorization": f"Bearer {access_token}"}
@alex-way
alex-way / AVA - Get Alarms JSON.py
Created August 16, 2022 09:39
AVA - Get Alarms JSON.py
""" AVA - Get Alarms
This script will retrieve all open, unsuppressed alarms from all customers
with an active AlienVault USM instance within the last week.
Parameters
---
swimlane_api_token: Key Store(swimlane_api_pat) = "secret_value"
The access token for the swimlane administrator account. Loaded from the key
store.
@alex-way
alex-way / auto_time_worked.js
Last active February 22, 2022 11:10
Auto Time Worked - ServiceNow
// ==UserScript==
// @name Auto Time Worked Duration
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Auto Sets the Time Worked Duration to 2 Minutes.
// @author You
// @match https://*.service-now.com/*
// @icon https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTwS70r6aZEg6-wofSf66x7MU7FiZSEFSOIQA&usqp=CAU
// @grant none
// ==/UserScript==