Skip to content

Instantly share code, notes, and snippets.

View cappert's full-sized avatar

Camille Appert cappert

View GitHub Profile

Hey @pomeranian99, you asked who I'd talk to in the Maker/hardware hacker movement in China, and since I've been thinking about this a lot, I decided to dump a reply on Ello. The following is more opinionated than informed -- if you have unreasonable expectations of advice that's opinionated and informed, talk to @tigoe.

That sort of work is exploding at the moment, as you know. In Shanghai, talk especially to David Li of Xinchejian hacker space. In Shenzen, talk especially to Zach Hoeken (the Twitters say he's in Austin now, not sure if that's a move or a visit, check his schedule.) In the US, before you leave, talk to Sylvia Lindter (who's not in Michigan, but was in China for years) and Emily Parker, late of New America, who's working on green hacking.

All of those conversations will be great and interesting, and you will have a wonderful time talking to these people and I'm happy to help, but what I really want to do is to urge you to look around without North American lenses at what 'hardware hackers'

LyonJUG

Lyon.rb

AFUP Lyon

Game Dev Party

On me demande en DM :

Est-ce que tu connaitrais des projets ruby opensource avec des démos en ligne ?

Le premier projet qui m'est venu à l'idée c'est diaspora/diaspora, le réseau social.

Diaspora

J'avoue que je m'en suis surtout souvenu parce qu'il se sont fait bien trasher au lancement. Et ils ont eu aussi beaucoup de problèmes ensuite, donc je pense que c'est un bon exemple de projet qui a changé, vécu, et qui malgré tout tourne encore.

/*
* Author: Andrea Shepard <andrea@torproject.org>
* Date: 2014-04-10
*
* Written as probe component of a larger tool to survey for Tor nodes
* vulnerable to Heartbleed; since we actually use OpenSSL it works correctly
* in unusual handshake cases like prompting for client certs, unlike that python
* script that initially circulated, and the async I/O gives us good control
* about timeouts so we can be patient and have a low probability of false
* negatives.
Faraday::Builder is now Faraday::RackBuilder.
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
(sass):299: Invalid CSS after " color: #b61924;": expected "}", was "@include: trans..." (Sass::SyntaxError)
from /Users/camille/.gem/ruby/2.1.1/gems/sass-3.2.13/lib/sass/scss/parser.rb:1147:in `expected'
from /Users/camille/.gem/ruby/2.1.1/gems/sass-3.2.13/lib/sass/scss/parser.rb:1085:in `expected'
from /Users/camille/.gem/ruby/2.1.1/gems/sass-3.2.13/lib/sass/scss/parser.rb:1080:in `tok!'
from /Users/camille/.gem/ruby/2.1.1/gems/sass-3.2.13/lib/sass/scss/parser.rb:536:in `block'
from /Users/camille/.gem/ruby/2.1.1/gems/sass-3.2.13/lib/sass/scss/parser.rb:529:in `ruleset'
from /Users/camille/.gem/ruby/2.1.1/gems/sass-3.2.13/lib/sass/scss/css_parser.rb:22:in `block_child'
from /Users/camille/.gem/ruby/2.1.1/gems/sass-3.2.13/lib/sass/scss/parser.rb:546:in
Test:
>ab -n400 -c16 http://127.0.0.1:3000/posts
=> Booting Puma
=> Rails 4.0.0 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Puma 2.6.0 starting...
* Min threads: 0, max threads: 16
* Environment: production
@cappert
cappert / transcript.txt
Last active December 12, 2015 04:58
Transcript and translation of the interview of Gregg Pollack by the @parlonsruby guys at TakeOff Conf : http://parlonsruby.com/pr007-takeoff-conference/
starts à 14:20
GREGG POLLACK
It's better, I had an expresso yesterday and it wasn't as good. That's decent. It's only slighly crappy.
PHILIPPE
Alright, so we are with Gregg Pollack, at TakeOff Conf[1], I guess that's the only interview we're gonna do in English, actually.
GREGG POLLACK
oh, no.
@cappert
cappert / gist:4089621
Created November 16, 2012 18:20
installing rails4 edge
(c) @olivierlacan
https://github.com/rails/rails/issues/7773#issuecomment-9292053
Simple-ish solution assuming you're either using bundle exec (you'll need to prepend it when necessary below) or you have gem binaries set to install in bin and your path pointing there first.
mkdir <appname>
cd <appname>
bundle init (assuming you have bundler installed)
add this in Gemfile:
@cappert
cappert / gist:4082150
Created November 15, 2012 23:02
Text to speech on Windows 7 using a simple script
CreateObject("SAPI.SpVoice").Speak"Test. This is a test. Mango apple banana."
@cappert
cappert / postConditions_controller.php
Created September 18, 2012 09:00
CakePHP postConditions
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package Cake.Controller