Skip to content

Instantly share code, notes, and snippets.

View survivant's full-sized avatar

Sebastien Dionne survivant

  • Jerabi inc.
  • Montreal, Quebec
View GitHub Profile
PS F:\junk\05> vagrant up {"configs"=>{"smb_password"=>"newyork00", "smb_username"=>"sebastien.dionne@gmail.com"}} Bringing machine '2master' up with 'hyperv' provider... Bringing machine '2worker1' up with 'hyperv' provider... Bringing machine '2worker2' up with 'hyperv' provider...
==> 2master: Verifying Hyper-V is enabled...
==> 2master: Verifying Hyper-V is accessible...
==> 2master: Importing a Hyper-V instance
2master: Creating and registering the VM...
2master: Successfully imported VM
2master: Please choose a switch to attach to your Hyper-V instance.
2master: If none of these are appropriate, please open the Hyper-V manager
2master: to create a new virtual switch.
2master:
Questions are not from any actual exam!!!
Q: Create a job that calculates pi to 2000 decimal points using the container with the image named perl
and the following commands issued to the container: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
Once the job has completed, check the logs to and export the result to pi-result.txt.
Solution:
@survivant
survivant / CKAD.md
Created May 8, 2020 01:55 — forked from veggiemonk/CKAD.md
CKAD exam preparation
@survivant
survivant / README.md
Created March 4, 2020 01:46 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@survivant
survivant / make.sh
Created February 11, 2017 00:29 — forked from artzub/make.sh
Install JetBrains Hub + YouTrack + UpSource + Nginx
#!/bin/bash
apt-get install mc htop git unzip wget curl -y
echo
echo "====================================================="
echo " WELCOME"
echo "====================================================="
echo
echo "Hub"
@survivant
survivant / Main.java
Created April 10, 2012 12:42
Unrecognized field ""
package com.test.stack;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Main {
@JsonProperty("com.test.stack")
public Stack stack;
}
@survivant
survivant / Main.java
Created April 2, 2012 18:07
Jacskson-xml deserialize List problem
package com.test.options;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Main {
@JsonProperty("com.test.options")
public Options options;
}
@survivant
survivant / Main.java
Created April 2, 2012 17:58
Jackson-xml Empty field example
package com.test.stack;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Main {
@JsonProperty("com.test.stack")
public Stack stack;
}
@survivant
survivant / socketio-chat.html
Created January 17, 2012 03:18
Socket.io chat proposal
<!DOCTYPE html>
<html>
<head>
<link href="css/style.css" rel="stylesheet">
<script src="./dist/jquery-1.7.js"></script>
<script src="./dist/socket.io.js"></script>
<script>
// socket.io specific code
var socket = io.connect('', {'resource':'atmosphere-socketio-chat/ChatAtmosphereHandler'});
@survivant
survivant / AtmosphereConfigv2.java
Created December 7, 2011 16:22
exemple de AtmosphereConfig
/**
* Load AtmosphereHandler defined under META-INF/atmosphere.xml
*
* @param stream The input stream we read from.
* @param c The classloader
*/
protected void loadAtmosphereDotXml(InputStream stream, URLClassLoader c)
throws IOException, ServletException {
if (stream == null) {