This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
1GB = 1024*1024*1024 # 1GB | |
with open('large_file', 'wb') as fout: | |
fout.write(os.urandom(1GB)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su | |
echo 'UseDNS no' >> /etc/ssh/sshd_config | |
service ssh restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 \ |
NewerOlder