Shrink the disk (from https://www.maketecheasier.com/shrink-your-virtualbox-vm/):
- Reboot in Recovery mode (hold the Shift key while the VM is booting)
// http://www.cs.princeton.edu/~chazelle/courses/BIB/pagerank.htm | |
object MainIanRogers { | |
case class Edge(src: Int, dest: Int) | |
def main(args: Array[String]) { | |
val edges = Seq( | |
Edge(0, 1), | |
Edge(0, 2), |
Shrink the disk (from https://www.maketecheasier.com/shrink-your-virtualbox-vm/):
object Conway extends App { | |
var grid = Grid(3, 3) | |
while (true) { | |
grid.print | |
grid = grid.nextGrid | |
Thread.sleep(2000) | |
} |
I hereby claim:
To claim this, I am signing this object:
%dep | |
z.load("com.datastax.spark:spark-cassandra-connector_2.10:1.2.1") |
- la VM | |
- projet Home-Spotify-Exo | |
- repository Maven (.m2) | |
- mv ~/.m2 ~/.m2.bak | |
- mvn dependency:resolve | |
- mvn dependency:sources | |
- zip -r ~/m2repo.zip ~/.m2 | |
Et éventuellement : |
#!/usr/bin/python | |
DOCUMENTATION = ''' | |
--- | |
module: copy_remotely | |
short_description: Copies a file from the remote server to the remote server. | |
description: | |
- Copies a file but, unlike the M(file) module, the copy is performed on the | |
remote server. | |
The copy is only performed if the source and destination files are different | |
(different MD5 sums) or if the destination file does not exist. |
# Prompt | |
export PS1="\[\e[00;31;1m\]\t\[\e[0m\]\[\e[00;37m\] \[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
# Aliases | |
alias ls='ls -GFh' | |
alias ll='ls -l' | |
alias lla='ls -la' |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "saucy-server-amd64" |
package main | |
import ( | |
"code.google.com/p/go-tour/tree" | |
"fmt" | |
) | |
// Walk walks the tree t sending all values | |
// from the tree to the channel ch. | |
func Walk(t *tree.Tree, ch chan int) { |