Skip to content

Instantly share code, notes, and snippets.

View cappert's full-sized avatar

Camille Appert cappert

View GitHub Profile
@cappert
cappert / gist:3488962
Created August 27, 2012 14:30
stripectf2
test
@cappert
cappert / routes.diff
Created July 18, 2012 15:57
refuge new routes
- admin_conf POST /admin/conf(.:format) {:controller=>"admin", :action=>"conf"}
+ admin_conf POST /admin/conf(.:format) {:controller=>"admin/conf", :action=>"conf"}
- admin_occupation PUT /admin/occupation(.:format) {:controller=>"admin", :action=>"occupation"}
+ admin_occupation PUT /admin/occupation(.:format) {:controller=>"admin/occupation", :action=>"occupation"}
- DELETE /admin/categories/delete/:id(.:format) {:controller=>"admin", :action=>"categories_delete"}
+ DELETE /admin/categories/:id(.:format) {:controller=>"admin/categories:action=>"destroy","}
- admin_categories_create POST /admin/categories/create(.:format) {:controller=>"admin", :action=>"categories_create"}
@cappert
cappert / gist:3131930
Created July 17, 2012 20:44
Installing rmagick on Windows
@cappert
cappert / stdout
Created June 27, 2012 14:05
active_admin remove web_steps
You can implement step definitions for undefined steps with these snippets:
When /^I am on the index page for posts$/ do
pending # express the regexp above with the code you wish you had
end
When /^I follow "(.*?)"$/ do |arg1|
pending # express the regexp above with the code you wish you had
end
#!/bin/sh
CLIENT_INSTALL_LOG=/var/log/rayburst/client_install.log
INSTALL_LOG=/var/log/rayburst/install.log
# required rayburst directories
mkdir -p /usr/local/rayburst
mkdir -p /usr/local/rayburst/etc/rayburst
mkdir -p /var/run/rayburst
mkdir -p /var/log/rayburst
@cappert
cappert / MaxMSP patch for this example
Created March 27, 2012 19:41
VirtualColorMixer - Arduino-Processing communication example from http://arduino.cc/en/Tutorial/VirtualColorMixer
----------begin_max5_patcher----------
1512.3oc4Z00aaaCE8YmeED9ktB35xOjrj1aAsXX4g8xZQeYoXfVh1gqRjdT
TsIsn+2K+PJUovVVJ1VMdCAvxThV7bO7b48dIyWtXxzkxaYkSA+J3u.Sl7kK
lLwcK6MlT2dxzB5so4zRW2lJXeRt7elNy+HM6Vs61uDDzbOYkNmo02sg4euS
4BSede8S2P0o2vEq+aEKU66PPP7b3LPHDauPvyCmAvv4v6+M7L2XXF2WfCaF
lURgVPKbCxzKUbZdySDUEbgABN.ia08R9mccGYGn66qGutNir27qWbg8iY+7
HDRx.Hjf+OPHCQgPdpQHoxhBlwB+QF4cbkthlCRk4REnfeKScs3ZwaugWBbj
.PS+.qDPAkZkgPlY5oPS4By2A5aTLFv9pounjsgpnZVF3x27pqtBrRpJnZaa
C3WxTkfUJYA.BzR.BhIy.ehquw7dSoJCsrlATLckR.nhLPNWvVwL+Vp1LHL.
SjMG.tRaG7OxT5R2c8Hx9B8.wLCxVaGI6qnpj45Ug84kL+6YIM8CqUxJyycF
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe "Test recompute delivery delay for OpenERP" do
describe SaleOrder do
context "when created and validated" do # virer le _and_ si possible en divisant en 2 tests
before do
@sale_order = SaleOrder.create_sale_order(:order_policy=>"postpaid")
@sale_order.wkf_action('order_confirm')
end
REM mp4 (H.264 / ACC)
"c:\program files\ffmpeg\bin\ffmpeg.exe" -i %1 -b 1500k -vcodec libx264 -vpre slow -vpre baseline -g 30 -s 640x360 %1.mp4
REM webm (VP8 / Vorbis)
"c:\program files\ffmpeg\bin\ffmpeg.exe" -i %1 -b 1500k -vcodec libvpx -acodec libvorbis -ab 160000 -f webm -g 30 -s 640x360 %1.webm
REM ogv (Theora / Vorbis)
"c:\program files\ffmpeg\bin\ffmpeg.exe" -i %1 -b 1500k -vcodec libtheora -acodec libvorbis -ab 160000 -g 30 -s 640x360 %1.ogv
REM jpeg (screenshot at 10 seconds)
"c:\program files\ffmpeg\bin\ffmpeg.exe" -i %1 -ss 00:10 -vframes 1 -r 1 -s 640x360 -f image2 %1.jpg
Oct 13 14:41:55 bibinou-desktop kernel: [ 7907.808040] ata7: lost interrupt (Status 0x0)
Oct 13 14:41:55 bibinou-desktop kernel: [ 7907.808064] ata7.01: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
Oct 13 14:41:55 bibinou-desktop kernel: [ 7907.808068] ata7.01: failed command: READ DMA EXT
Oct 13 14:41:55 bibinou-desktop kernel: [ 7907.808072] ata7.01: cmd 25/00:08:70:58:4a/00:00:16:00:00/f0 tag 0 dma 4096 in
Oct 13 14:41:55 bibinou-desktop kernel: [ 7907.808073] res 40/00:00:00:4f:c2/00:00:00:00:00/10 Emask 0x4 (timeout)
Oct 13 14:41:55 bibinou-desktop kernel: [ 7907.808076] ata7.01: status: { DRDY }
Oct 13 14:41:55 bibinou-desktop kernel: [ 7907.808093] ata7: soft resetting link
Oct 13 14:41:56 bibinou-desktop kernel: [ 7907.980650] ata7.01: configured for UDMA/100
Oct 13 14:41:56 bibinou-desktop kernel: [ 7907.980656] ata7.01: device reported invalid CHS sector 0
Oct 13 14:41:56 bibinou-desktop kernel: [ 7907.980664] ata7: EH complete
@cappert
cappert / keepass_error
Created October 4, 2011 15:20
Keepass Monodevelop error message
from : http://www.mztools.com/articles/2008/MZ2008017.aspx
Smart Device (C#) {4D628B5B-2FBC-4AA6-8C16-197242AEB884}
Windows (C#) {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}