mysql python 3 mac

  548  pip install –egg http://dev.mysql.com/get/Downloads/Connector-Python/mysql-co‌​nnector-python-2.1.4‌​.zip   549  pwd   550  python manage.py    551  pip list   552  pip install mysql-connector-python-rf   553  python manage.py    554  pip install MySQL-python   555  pip install mysql-python   556  brew install mysql-connector-c    557  pip install mysql-python   558  pip install MySQL-python   559  pip install… Continue reading mysql python 3 mac

Published
Categorized as Big Data

checking network speed via dd and nc

On one machine, run: nc -v -l 2222 > /dev/null (Make sure you’re not blocking connections to 2222!) On a second machine, run: dd if=/dev/zero bs=1024K count=512 | nc -v $IP_OF_FIRST_MACHINE 2222 dd will give you your speed: 536870912 bytes (537 MB) copied, 4.87526 s, 117 MB/s

Published
Categorized as Big Data Tagged

Turn any Linux host into proxy hosts very easy

you can turn any Linux computer into a SOCKS5 (and SOCKS4) proxy in just one command: ssh -N -D 0.0.0.0:1080 localhost And it doesn’t require root privileges. The ssh command starts up dynamic -D port forwarding on port1080 and talks to the clients via SOCSK5 or SOCKS4 protocols, just like a regular SOCKS5 proxy would! The -N option makes sure ssh stays… Continue reading Turn any Linux host into proxy hosts very easy

Published
Categorized as Big Data

change http to https in NGINX

According to nginx pitfalls, it’s slightly better to omit the unnecessary capture, using $request_uriinstead. In that case, append a question mark to prevent nginx from doubling any query args. server { listen 80; server_name signup.mysite.com; rewrite ^ https://$server_name$request_uri? permanent; }

Published
Categorized as Big Data

Aggregation is the New Virtualization: How Microservices Are Taming Distributed Computing

Virtualization has been a key driver behind every major trend in software, from search to social networks to SaaS, over the past decade. In fact, most of the applications we use — and cloud computing as we know it today — would not have been possible without the server utilization and cost savings that resulted… Continue reading Aggregation is the New Virtualization: How Microservices Are Taming Distributed Computing

loop mount an image

sudo losetup /dev/loop0 /path/to/disk.img mkdir /mnt/image sudo mount /dev/loop0 /mnt/image

Published
Categorized as Big Data