Skip to content

Instantly share code, notes, and snippets.

View chadgroom's full-sized avatar
🏠
Working from home

cgroom chadgroom

🏠
Working from home
  • California, USA
View GitHub Profile
@chadgroom
chadgroom / console.js
Last active December 20, 2020 20:06
A simple, droppable debugging console.
// true = wait for debugger to open | false = open on load
const waitForDebuggerOpen = false;
var aceScript = document.createElement('script');
aceScript.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js";
document.head.appendChild(aceScript);
var jqueryScript = document.createElement('script');
@chadgroom
chadgroom / safePathParser.py
Last active December 17, 2020 20:54
A simple utility that parses any given path string then returns a helpful object with cross-platform path representations.
#!/usr/bin/env python3
# PARSES ANY GIVEN PATH AND RETURNS AN OBJECT WITH CROSS-PLATFORM PATH REPRESENTATIONS
def safePathParser(string):
base = None
dir_ = None
if "\\" in string and "/" not in string:
@chadgroom
chadgroom / pystfp_paramiko_ecdsa.py
Last active January 27, 2022 14:13
Correct way to load ecdsa keys with paramiko/pysftp with OpenSSH.. Solves issue: https://github.com/paramiko/paramiko/issues/350
#!/usr/bin/env python3
# This error is caused by using `paramiko.RSA()` to manually load an ecdsa key from your know_hosts file or for manually loading as bytes.
# Using: `key = paramiko.AgentKey()` instead seemingly detects the key type automatically and accepts the ecdsa-sha2-nistp256 key just fine.
# EXAMPLE:
import pysftp
from base64 import decodebytes
import paramiko
@chadgroom
chadgroom / connatix_video_downloader.py
Last active July 2, 2024 08:13
Connatix Video Player Downloader [https://www.connatix.com/] - Made a quick downloader for a personal task and decided to upload it as some others may find it useful, enjoy!
#!/usr/bin/env python3
from seleniumwire import webdriver
import requests
from os import path, getcwd, startfile, name
from time import sleep
# from sys import argv
# CHAD GROOM - 2020
# **INTENDED FOR LEGAL PURPOSES**