- Réseau
- Fournir un accès internet aux muséomixeurs, essentiellement WiFi
- Fournir un accès internet, de préférence filaire, à l'orga et la web team
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
| class SomeStuff < Ramaze::Controller | |
| helper :versionner | |
| def index | |
| "Hello world" | |
| end | |
| end |
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/perl | |
| use strict; | |
| use threads; | |
| use Thread::Queue::Any; | |
| use Net::OpenSSH; | |
| use Parse::DMIDecode::Constants qw(@TYPES); | |
| use Parse::DMIDecode qw(); |
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
| require 'ramaze' | |
| # Put a jpeg in the same directory as this file named 'image.jpg" | |
| # calling index.jpg will yell at user | |
| # calling send_image.jpg will send back image.jpg | |
| class MyController < Ramaze::Controller | |
| map '/' | |
| provide(:jpg, :type => 'image/jpeg') do |action, value| |
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
| require 'ramaze' | |
| class MyController < Ramaze::Controller | |
| map '/' | |
| helper :blue_form | |
| def index | |
| # BlueForm requires the passed object to respond_to? key names | |
| @result = OpenStruct.new(request.subset(:textname, :textanother)) | |
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
| # FNordmetric helper | |
| # | |
| # Define :fnord_redis_url trait in class where helper is used | |
| # e.g. : trait :fnord_redis_url => "redis://redis.example.com:6332" | |
| # | |
| require 'fnordmetric' | |
| module Ramaze | |
| module Helper | |
| module FnordmetricHelper |
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
| Vidar Hokstad | |
| Home Blog Ruby Compiler Sliding Stats | |
| 2008-03-22 16:02 UTC Rack middleware: Adding cache headers | |
| Posted in: ruby, rack, programming | |
| I'm playing with a small web based RSS reader, and one of the things it does is cache a lot of data to reduce the impact on the sites I follow feeds from. However I realized this a couple of days ago I'd completely forgotten to set cache headers, and I kept hammering my own site. | |
| That wouldn't do, and since my app is using Rack to interface to the webserver, there's a simple solution: Write a tiny Rack middleware class, just like I described in "Rewriting content types with Rack". | |
| The great thing is that because of Rack this class can be used to add cache headers for anything from pure Rack based apps to apps using Rails, Merb, or any number of other Ruby frameworks that has Rack adapters. If you haven't looked into Rack already, do. |
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
| $ ../hacking/test-module ./service name=httpd state=started | |
| Traceback (most recent call last): | |
| File "../hacking/test-module", line 53, in <module> | |
| argsfile = open(argspath, 'w') | |
| IOError: [Errno 13] Permission denied: '/.ansible_test_module_arguments' |