Skip to content

Instantly share code, notes, and snippets.

View aames's full-sized avatar

Andrew Amesbury aames

  • Christchurch, New Zealand
View GitHub Profile
@aames
aames / pip_check.py
Created October 7, 2023 01:21
Checks for bad pip packages
"""
Checks for any bad packages from the list at:
https://gist.github.com/masteryoda101/65b55a117fe2ea33735f05024abc92c2
Created because of this article: https://www.bleepingcomputer.com/news/security/
hundreds-of-malicious-python-packages-found-stealing-sensitive-data/
"""
import importlib.util
import requests
@aames
aames / .gitconfig
Created November 6, 2017 19:18
Alias setup for git log in .gitconfig
[alias]
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

version: '2'
services:
swagger-editor:
image: swaggerapi/swagger-editor:latest
ports:
- "80:8080"
@aames
aames / zsh.md
Created November 28, 2015 09:05 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu