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
virsh -c lxc:/// net-destroy default | |
virsh -c lxc:/// net-undefine default | |
echo "<network> | |
<name>default</name> | |
<uuid>feb3e820-777f-c3df-defe-94d8c140791a</uuid> | |
<forward mode='nat'/> | |
<bridge name='br100' stp='on' delay='0' /> |
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
root@scala:~/scala/scalaschool/helloworld# sbt console | |
[info] Set current project to helloworld (in build file:/root/scala/scalaschool/helloworld/) | |
[info] Starting scala interpreter... | |
[info] | |
Welcome to Scala version 2.10.4 (OpenJDK 64-Bit Server VM, Java 1.7.0_03). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> Hi.main(Array()) | |
Hi! |
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
root@scala:~/scala/scalaschool/helloworld# sbt | |
Getting org.scala-sbt sbt 0.13.5 ... | |
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.5/jars/sbt.jar ... | |
[SUCCESSFUL ] org.scala-sbt#sbt;0.13.5!sbt.jar (579ms) | |
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.10.4/scala-library-2.10.4.jar ... | |
[SUCCESSFUL ] org.scala-lang#scala-library;2.10.4!scala-library.jar (4110ms) | |
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main/0.13.5/jars/main.jar ... | |
[SUCCESSFUL ] org.scala-sbt#main;0.13.5!main.jar (2748ms) | |
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.5/jars/compiler-interface-src.jar ... | |
[SUCCESSFUL ] org.scala-sbt#compiler-interface;0.13.5!compiler-interface-src.jar (495ms) |
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
"sentinels": [ | |
{ | |
"host": "localhost", | |
"port": "27000" | |
}, | |
{ | |
"host": "localhost", | |
"port": "27001" | |
}, | |
{ |
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
curl -i -s -d \ | |
"{\"instance\": { | |
\"flavorRef\": \"1\", | |
\"name\": \"$name\", | |
\"datastore\": {\"type\": \"redis\"}, | |
\"volume\": {\"size\":1} | |
}}" \ | |
-H "X-Auth-Token: $token" \ | |
-H "Content-Type: application/json" \ | |
https://iad.databases.api.rackspacecloud.com/v1.0/INSERT_YOUR_TENANT_HERE/instances |
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
"sentinels": [ | |
{ | |
"host": "localhost", | |
"port": "27000" | |
}, | |
{ | |
"host": "localhost", | |
"port": "27001" | |
}, | |
{ |
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
# Replication | |
role:slave | |
master_host:10.188.16.215 | |
master_port:3306 | |
master_link_status:down | |
master_last_io_seconds_ago:-1 | |
master_sync_in_progress:0 | |
slave_repl_offset:1 | |
master_link_down_since_seconds:1406579917 | |
slave_priority:100 |
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
;; Original idea from | |
;; http://www.opensubscriber.com/message/[email protected]/10971693.html | |
(defun comment-dwim-line (&optional arg) | |
"Replacement for the comment-dwim command. | |
If no region is selected and current line is not blank and we are not at the end of the line, | |
then comment current line. | |
Replaces default behaviour of comment-dwim, when it inserts comment at the end of the line." | |
(interactive "*P") | |
(comment-normalize-vars) | |
(if (and (not (region-active-p)) (not (looking-at "[ \t]*$"))) |
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
{ _events: {}, | |
newListener: false, | |
_conf: { delimiter: '::', wildcard: true }, | |
delimiter: '::', | |
wildcard: true, | |
listenerTree: {}, | |
client: undefined, | |
id: 'A-11763949', | |
name: 'd6fbe3fcfd4111e38f757f4bf66c641a.publb.rackspaceclouddb.com', | |
type: 'A', |
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
17:33 [orv] [msg(koko)] its like a single channel now | |
17:33 [orv] [koko([email protected])] eww | |
17:33 [orv] [msg(koko)] but w/o tab complete i think |