Skip to content

Instantly share code, notes, and snippets.

Avatar

Jerod Gawne jerodg

View GitHub Profile
View python_class_skeleton.py
# !/usr/bin/env python3.8
"""Title
Copyright © 2020 <https://github.com/jerodg/>
This program is free software: you can redistribute it and/or modify
it under the terms of the Server Side Public License (SSPL) as
published by MongoDB, Inc., either version 1 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
@jerodg
jerodg / python_async_class_skeleton.py
Created May 19, 2020
Python Async Class Skeleton
View python_async_class_skeleton.py
# !/usr/bin/env python3.8
"""Title
Copyright © 2020 <https://github.com/jerodg/>
This program is free software: you can redistribute it and/or modify
it under the terms of the Server Side Public License (SSPL) as
published by MongoDB, Inc., either version 1 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
View data_class_example.py
#!/usr/bin/env python3.7
"""Phantom API Data Classes: Jerod Gawne 2018.12.18 <https://github.com/jerodg>
https://my.phantom.us/4.1/docs/rest"""
import logging
from dataclasses import dataclass, field
from sys import exc_info
from traceback import print_exception
from typing import Any, Dict, List, Union
from base64 import b64encode
View hdfs_prophet.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jerodg
jerodg / windows_and_office_kms_setup.adoc
Last active Jul 24, 2021
Activate Windows Using KMS
View windows_and_office_kms_setup.adoc

Microsoft Windows and Office KMS Setup

@jerodg
jerodg / install_python_from_source.sh
Created Feb 6, 2018
Linux- Install Python from Source
View install_python_from_source.sh
#!/bin/bash
# Jerod Gawne, 2018.02.06, 2018.02.06
# Install Python From Source *nix
# Note:
# Must be run as root or with sudo
# Reference:
# https://gist.github.com/jerodg/
# https://stackoverflow.com/q/4111475/4434405
@jerodg
jerodg / git-pushing-multiple.rst
Created Dec 18, 2017 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.
View git-pushing-multiple.rst

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@jerodg
jerodg / keybase.md
Created Oct 5, 2017
My Keybase Proof
View keybase.md

Keybase proof

I hereby claim:

  • I am jerodg on github.
  • I am jerodg (https://keybase.io/jerodg) on keybase.
  • I have a public key ASA2uXEFRtJTS25sxfhMABymBYBARC0fnPn7DXkturJaKwo

To claim this, I am signing this object: