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 \ | |
-u xyz-principal \ | |
-d slaveId=af5abbb4-da24-4591-8529-8cb62f15108b-S0 \ | |
-d resources='[ | |
{ | |
"name": "ports", | |
"type": "RANGES", | |
"ranges": { | |
"range": [ | |
{ |
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 | |
HOST=localhost | |
curl --silent -XPOST -d @$1 -H "Content-Type: application/json" http://$HOST:8080/v2/apps | jq '.' |
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
package sparkexample; | |
import com.google.common.collect.BiMap; | |
import com.google.common.collect.HashBiMap; | |
import org.apache.mahout.drivers.DefaultElementReadSchema; | |
import org.apache.mahout.drivers.Schema; | |
import org.apache.mahout.drivers.TextDelimitedIndexedDatasetReader; | |
import org.apache.mahout.math.Matrix; | |
import org.apache.mahout.math.MatrixSlice; | |
import org.apache.mahout.math.cf.SimilarityAnalysis; |
This file has been truncated, but you can view the full file.
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
/usr/bin/htop: file format elf64-x86-64 | |
Disassembly of section .init: | |
0000000000404ba0 <_init>: | |
404ba0: 48 83 ec 08 sub $0x8,%rsp | |
404ba4: 48 8b 05 4d 84 21 00 mov 0x21844d(%rip),%rax # 61cff8 <_IO_stdin_used+0x2065f8> | |
404bab: 48 85 c0 test %rax,%rax |
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
$gems = { | |
{ "rubygems" => { version => "1.3.6" }}, | |
{ "vagrant" => { version => "1.0.5" }}, | |
{ "sahara" => { version => "0.0.13" }} | |
} | |
package { $gems[gem]: | |
ensure => $gems[version], | |
provider => gem, | |
} |
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
set-window-option -g utf8 on | |
set-option -g mouse-select-pane on | |
set-option -g mouse-select-window on | |
set-window-option -g mode-mouse on |