Skip to content

Instantly share code, notes, and snippets.

View anselmobd's full-sized avatar

Anselmo Blanco Dominguez anselmobd

View GitHub Profile
@stefansundin
stefansundin / extract-attachments.py
Last active September 27, 2022 18:54
Extract attachments from emails that Gmail doesn't allow you to download. This is dumb. Please use Python >= 3.4.
#!/usr/bin/env python3
# Get your files that Gmail block. Warning message:
# "Anti-virus warning - 1 attachment contains a virus or blocked file. Downloading this attachment is disabled."
# Based on: https://spapas.github.io/2014/10/23/retrieve-gmail-blocked-attachments/
# Instructions:
# Go to your emails, click the arrow button in the top right, "Show original", then "Download Original".
# Move the files to the same directory as this program, then run it.
import sys
@jesugmz
jesugmz / kill-all.sh
Last active May 13, 2021 13:01
An alternative to killall command
#!/bin/bash
#
# An alternative to killall command
#
kill -9 $(pgrep <PROCESS_NAME>)