Skip to content

Instantly share code, notes, and snippets.

View pierreozoux's full-sized avatar

Pierre Ozoux pierreozoux

View GitHub Profile
@pierreozoux
pierreozoux / about_me.html
Last active August 29, 2015 14:04
IndieWeb asides for Octopress
<section class="h-card">
<h1>
<a class="p-name u-url" href="{{ site.url }}">{{ site.author }}</a>
</h1>
{% if site.gravatar_email %}
<img class="u-photo" src="{% gravatar_image %}" alt="Gravatar of {{ site.author }} " title="Gravatar of {{ site.author }}" /><br/>
{% endif %}
{% if site.bio %}
<h2>Bio</h2>
<p class="p-note">{{ site.bio }}</p>
@pierreozoux
pierreozoux / demo
Created October 22, 2014 11:33
Difference between STARTTLS and TLS
# So TLS, which is the successor of SSL, is "Transport Layer Security".
# It is a kind of super protocol that initiates an encrypted tunnel between the client and the server,
# and then, you can use your normal verbs from your protocol as it was not encrypted.
# For instance with http. Let's say you want to get a page from ubicast.eu
# go to your terminal, and you can get it with
telnet ubicast.eu 80
GET / HTTP/1.0
# and you get the index of the site.
### Keybase proof
I hereby claim:
* I am pierreozoux on github.
* I am pierreozoux (https://keybase.io/pierreozoux) on keybase.
* I have a public key whose fingerprint is 172C 25C7 2840 DB0A D889 26A0 9426 5A67 410D 4B3C
To claim this, I am signing this object:
@pierreozoux
pierreozoux / programme.md
Last active August 29, 2015 14:19
Programme de formation Docker

Formation : Docker

Baseline : Apprenez à manipuler les containers Docker !

Durée : 2 jours

Public visé

Cette formation s'adresse aux développeurs et administrateurs de systèmes souhaitant apprendre les bases de Docker pour améliorer leurs méthodes de travail.

Description

@pierreozoux
pierreozoux / dump from ey-local up
Created December 12, 2012 10:55
Error when running monit recipe from cookbooks folder
[default] [Tue, 11 Dec 2012 19:31:31 +0000] INFO: Ran execute[cleanup-backup-inittab] successfully
[Tue, 11 Dec 2012 19:31:31 +0000] INFO: Chef Run complete in 131.255645 seconds
[default] ln:
[default] creating symbolic link `/etc/chef-custom/recipes/cookbooks/cookbooks'
[default] : Read-only file system
[default]
[default] [Tue, 11 Dec 2012 19:31:31 +0000] INFO: Starting Chef Solo Run
[default] /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/node.rb:180:in `method_missing'
[default] :
[default] Attribute default is not defined!
@pierreozoux
pierreozoux / comcast.js
Created November 23, 2015 09:47 — forked from Jarred-Sumner/comcast.js
Comcast injects this into webpages to show copyright notices
// Comcast Cable Communications, LLC Proprietary. Copyright 2014.
// Intended use is to display browser notifications for critical and time sensitive events.
var _ComcastAlert = (function(){
return {
SYS_URL: '/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do'
, dragObj: {zIndex: 999999}
, browser: null
, comcastCheck: 1
, comcastTimer: null
, xmlhttp: null
@pierreozoux
pierreozoux / docker-ovs.md
Created November 27, 2015 19:30 — forked from noteed/docker-ovs.md
Docker - Open vSwitch setup
@pierreozoux
pierreozoux / docker-tinc.md
Created November 27, 2015 19:36 — forked from noteed/docker-tinc.md
Docker - Tinc setup
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.11/lib/active_record/attribute_assignment.rb:88:in `block in assign_attributes'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.11/lib/active_record/attribute_assignment.rb:78:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.11/lib/active_record/attribute_assignment.rb:78:in `assign_attributes'
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.11/lib/active_record/base.rb:497:in `initialize'
/usr/local/lib/ruby/gems/1.9.1/gems/delayed_job-3.0.4/lib/delayed/backend/base.rb:29:in `new'
/usr/local/lib/ruby/gems/1.9.1/gems/delayed_job-3.0.4/lib/delayed/backend/base.rb:29:in `enqueue'
/usr/local/lib/ruby/gems/1.9.1/gems/delayed_job-3.0.4/lib/delayed/message_sending.rb:13:in `method_missing'
/usr/local/lib/ruby/gems/1.9.1/gems/delayed_job-3.0.4/lib/delayed/message_sending.rb:48:in `block in handle_asynchronously'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:513:in `_run__3949307421592321204__create
@pierreozoux
pierreozoux / csv2html.rb
Last active December 13, 2015 16:59
2 little quick and dirty script. A shell script to push ressources usage from a process running to a csv file. And a ruby script to draw a graph from a csv file.
#!/usr/bin/env ruby
require 'erb'
require 'csv'
csv_path = ARGV[0]
@csv_array = CSV.read(csv_path)
@csv_array.each_with_index do |row,row_index|