This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.
Step 1 - Enable NBD on the Host
modprobe nbd max_part=8
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
I wanted to be really able to explain to a fair amount of detail how does the program :command:`ls` actually work right from the moment you type the command name and hit ENTER. What goes on in user space and and in kernel space? This is my attempt and what I have learned so far on Linux (Fedora 19, 3.x kernel).
How does the shell find the location of 'ls' ?
| # Change YOUR_TOKEN to your prerender token | |
| # Change example.com (server_name) to your website url | |
| # Change /path/to/your/root to the correct value | |
| server { | |
| listen 80; | |
| server_name example.com; | |
| root /path/to/your/root; | |
| index index.html; |
| from fabric.api import local, run, env, put | |
| import os, time | |
| # remote ssh credentials | |
| env.hosts = ['10.1.1.25'] | |
| env.user = 'deploy' | |
| env.password = 'XXXXXXXX' #ssh password for user | |
| # or, specify path to server public key here: | |
| # env.key_filename = '' |
- Spree does not offer media management as a CMS function
This is true, but we do have some extensions such as spree_static_content that do provide the ability to create extra pages for your site.
- One page checkout is available on Magento, but not Spree
Assuming you mean the fields are all on one page: This is not provided by default, but it is relatively easy to customize Spree to do this. It's pretty commonly requested, and so it might be a good idea for us to provide a guide on how to do this.
| class BigForeignKey(models.ForeignKey): | |
| def db_type(self, connection): | |
| """ Adds support for foreign keys to big integers as primary keys. | |
| """ | |
| rel_field = self.rel.get_related_field() | |
| if (isinstance(rel_field, BigAutoField) or | |
| (not connection.features.related_fields_match_type and | |
| isinstance(rel_field, (BigIntegerField, )))): |
| data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
| require 'tire' | |
| # Tire.configure { logger STDERR, level: 'debug' } | |
| Tire.index('movie-titles') do | |
| delete | |
| create \ | |
| settings: { | |
| index: { | |
| analysis: { |
| # Tell system when Xcode utilities live: | |
| sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer | |
| # Set "opendiff" as the default mergetool globally: | |
| git config --global merge.tool opendiff |