Provides packages names completion in bash for pip install
, pip download
and pip search
$ pip install mat<TAB>
Display all 188 possibilities? (y or n)
from functools import partial | |
def instance(**kwargs): | |
class instobj(object): | |
pass | |
o = instobj() | |
for k, v in kwargs.iteritems(): | |
if callable(v): | |
v = partial(v, o) |
#!/usr/bin/env python | |
# coding=utf-8 | |
""" | |
python distribute file | |
""" | |
from __future__ import (absolute_import, division, print_function, | |
unicode_literals, with_statement) |
on linux 4.19, I get
error creating new backup file '/var/lib/dpkg/status-old': Invalid cross-device link
when trying to install stuff on a ubuntu docker container. this seems to be an issue with metacopy https://www.spinics.net/lists/linux-unionfs/msg06109.html
issue can be worked around by running
To prevent programs from overwriting /etc/resolv.conf you can also write-protect it by setting the immutable file attribute:
sudo chattr +i /etc/resolv.conf
From: https://wiki.archlinux.org/index.php/Domain_name_resolution#Overwriting_of_/etc/resolv.conf
# vim: set fileencoding=utf-8 : | |
# | |
# How to store and retrieve gzip-compressed objects in AWS S3 | |
########################################################################### | |
# | |
# Copyright 2015 Vince Veselosky and contributors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at |