Skip to content

Instantly share code, notes, and snippets.

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

Jaime Idolpx idolpx

🏠
Working from home
View GitHub Profile
@idolpx
idolpx / ANSI-color-codes.h
Last active April 18, 2022 18:51 — forked from RabaDabaDoba/ANSI-color-codes.h
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define ANSI_BLACK "\e[0;30m"
#define ANSI_RED "\e[0;31m"
@idolpx
idolpx / download.py
Last active April 9, 2020 22:17 — forked from mjohnsullivan/download.py
Python HTTP download with resume and optional MD5 hash checking
import os.path
import requests
import shutil
import hashlib
import logging
def validate_file(file_path, hash):
"""
Validates a file against an MD5 hash value