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
| <service android:name=".ListenerServiceFromWear"> | |
| <intent-filter> | |
| <action android:name="com.google.android.gms.wearable.BIND_LISTENER" /> | |
| </intent-filter> | |
| </service> |
| // this is the background code... | |
| // listen for our browerAction to be clicked | |
| chrome.browserAction.onClicked.addListener(function (tab) { | |
| // for the current tab, inject the "inject.js" file & execute it | |
| chrome.tabs.executeScript(tab.ib, { | |
| file: 'inject.js' | |
| }); | |
| }); |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| /* | |
| In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
| server, but for some reason omit a client connecting to it. I added an | |
| example at the bottom. | |
| Save the following server in example.js: | |
| */ | |
| var net = require('net'); |
| var translate = (function () { | |
| var symbols = { | |
| a: '([]+![])[+!+[]]', | |
| b: '([]+{})[+!+[]+!+[]]', | |
| c: '([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]]', | |
| d: '([]+[][+[]])[+!+[]+!+[]]', | |
| e: '([]+[][+[]])[+!+[]+!+[]+!+[]]', | |
| f: '([]+[][+[]])[+!+[]+!+[]+!+[]+!+[]]', | |
| g: '([]+([]+[])[([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]]+([]+[][+!+[]])[+!+[]]+([]+![])[+!+[]+!+[]+!+[]]+([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+!![])[+!+[]]+([]+!![])[+!+[]+!+[]]+([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]]+([]+!![])[+!+[]]])[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]', | |
| h: '(+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[])[([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]]+([]+([]+[])[([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]]+([]+[][+!+[]])[+!+[]]+([]+![])[+!+[]+!+[]+!+[]]+([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+!![])[+!+[]]+([]+!![])[+!+[]+!+[]] |
| const GLib = imports.gi.GLib; | |
| const Gio = imports.gi.Gio; | |
| let [res, out, err, status] = GLib.spawn_command_line_sync('ls -la'); | |
| print(out); | |
| let [res, out] = GLib.spawn_command_line_sync('ls -la'); | |
| print(out); | |
| let [res, out] = GLib.spawn_sync(null, ['/bin/ls', '-la'], null, 0, null); |
| From: gtk-list-bounces@gnome.org [mailto:gtk-list-bounces@gnome.org] On Behalf Of Andy Spencer | |
| Sent: Friday, January 21, 2011 5:24 AM | |
| To: Michael Treibton | |
| Cc: gtk-list@gnome.org | |
| Subject: Re: Embedding applications via XEmbed | |
| On 2011-01-20 20:52, Michael Treibton wrote: | |
| > I've read about GtkSocket and GtkPlug, but the examples for the | |
| > official documentation don't make it clear to me how to go about this. | |
| > |