Skip to content

Instantly share code, notes, and snippets.

View ilivessevili's full-sized avatar

9lives ilivessevili

  • Beijing China
View GitHub Profile
import os
1GB = 1024*1024*1024 # 1GB
with open('large_file', 'wb') as fout:
fout.write(os.urandom(1GB))
sudo su
echo 'UseDNS no' >> /etc/ssh/sshd_config
service ssh restart
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install glance-api' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
openstack-dashboard-cloudbase-theme : Depends: openstack-dashboard (= 1:2015.1.0-0ubuntu1~cloud0) but 1:2015.1.1-0ubuntu1~cloud2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Error: /Stage[main]/Glance::Api/Package[glance-api]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install glance-api' returned 100: Reading package lists...
Building dependency tree...
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \