Skip to content

Instantly share code, notes, and snippets.

@eayin2
eayin2 / remove-duplicated-pacman-entries.py
Last active April 12, 2016 15:23
Removes duplicated pacman packages in arch linux. Run this as root
#!/usr/bin/python2.7
import os
import re
import glob
import datetime
import errno
from operator import itemgetter
def mkdir_p(path):
#!/usr/bin/python3
import os
import datetime
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, DateTime
from sqlalchemy.orm import sessionmaker
import argparse
from gymail.gymail import send_mail