Skip to content

Instantly share code, notes, and snippets.

View cristihainic's full-sized avatar
💭
I may be slow to respond.

Cristian Hainic cristihainic

💭
I may be slow to respond.
View GitHub Profile
@cristihainic
cristihainic / imgurUpload.sh
Last active January 2, 2018 10:32
Simple imgur image uploader via link or from local disk. Returns the link of the uploaded image.
#!/bin/bash
if [[ $1 == http* ]];
then
image=$1;
else
image=$(base64 $1);
fi
echo "Your uploaded image URL is:"
@cristihainic
cristihainic / test_pep8.py
Created April 12, 2018 20:53
Unit test that checks for PEP8 faults in a Django project using pytest
import os
import sys
import pycodestyle
from django.conf import settings
class PEP8Error(BaseException):
pass