Skip to content

Instantly share code, notes, and snippets.

View argent-smith's full-sized avatar
🐪
OCaml & Coq while not @ work

Pavel Argentov argent-smith

🐪
OCaml & Coq while not @ work
View GitHub Profile
@argent-smith
argent-smith / fail.txt
Created September 9, 2011 06:48
rcov build failure on rbx-head
rbx-head [paul@paul rsh]$ bundle update
Fetching source index for http://rubygems.org/
Using rake (0.9.2)
Using ZenTest (4.6.2)
Using bundler (1.0.17)
Using diff-lcs (1.1.3)
Using git (1.2.5)
Using jeweler (1.6.4)
Installing rcov (0.9.10) with native extensions An exception occurred running /home/paul/.rvm/gems/rbx-head/bin/bundle
ERROR: Failed to build gem native extension.
@argent-smith
argent-smith / directory_issue.feature
Created September 27, 2011 20:24
Thor #directory issue
Feature: Suspected #directory issue
In order to test #directory behavior
As a Thor user
I want to see whether it expands 'templated' filenames or not
NB: this feature should be run with cucumber/aruba
Background: making the test suite
Given a file named "tester" with:
"""
@argent-smith
argent-smith / result.txt
Created October 28, 2011 19:23
Octopress' Issue #252
https://github.com/api/v2/json/repos/show/argent-smith?callback=? gave the following:
?({"repositories":[{"has_issues":true,"description":"A library wrapping BSD rsh(1) client execution into a PORO. Also features pure ruby rsh client implementation.","forks":1,"has_downloads":true,"url":"https://github.com/argent-smith/rsh","created_at":"2010/10/21 03:53:37 -0700","fork":false,"has_wiki":true,"size":508,"private":false,"language":"Ruby","name":"rsh","owner":"argent-smith","pushed_at":"2011/09/09 08:53:17 -0700","open_issues":0,"watchers":2},{"has_issues":true,"description":"Artificial Intelligent @ GitHub","forks":1,"has_downloads":true,"url":"https://github.com/argent-smith/argent-smith.github.com","created_at":"2010/10/31 12:25:40 -0700","fork":false,"homepage":"","has_wiki":true,"size":968,"private":false,"language":"Ruby","name":"argent-smith.github.com","owner":"argent-smith","pushed_at":"2011/09/10 01:23:55 -0700","open_issues":0,"watchers":2},{"has_issues":true,"description":"Yet Another Whois Thing."
@argent-smith
argent-smith / template.rb
Created November 17, 2011 20:00
a conflict when tried to merge...
module Tilt
TOPOBJECT = defined?(BasicObject) ? BasicObject : Object
# Base class for template implementations. Subclasses must implement
# the #prepare method and one of the #evaluate or #precompiled_template
# methods.
class Template
# Template source; loaded from a file or given directly.
attr_reader :data
@argent-smith
argent-smith / case.txt
Created March 7, 2012 06:59
facebook thing
[paul@paul paul]$ lynx -head -dump http://facebook.com
HTTP/1.0 301 Moved Permanently
Location: http://www.facebook.com/
Content-Type: text/html; charset=utf-8
X-FB-Debug: 0iV7kkInxezygwAu6gdBa2v96tBdZuV3gj4D92r7DQo=
Connection: close
Content-Length: 0
[paul@paul paul]$ host -a www.facebook.com
@argent-smith
argent-smith / test.js
Created September 5, 2012 10:46
yui killer
test = {
zhopa: function (z, char) {
return true;
}
}
@argent-smith
argent-smith / haproxy.conf
Created October 3, 2012 06:47
Haproxy timeouts for stable communication with nginx/unicorn backend
backend nginx_backend
#timeout connect 400
timeout connect 6000
#timeout server 600
timeout server 6000
server server1 10.0.0.1:8080 maxconn 2000 check
@argent-smith
argent-smith / stopping.txt
Created October 16, 2012 09:16
ACTUALLY stopping gjournal on GPT!!!
# sysctl kern.geom.label.gpt.enable=0
# sysctl kern.geom.label.gptid.enable=0
# gjournal stop da0p1.journal
@argent-smith
argent-smith / gist:5391009
Created April 15, 2013 20:22
Mongodb chef cookbook problem
[2013-04-15T20:17:15+00:00] INFO: Processing execute[apt-get update] action nothing (mongodb::10gen_repo line 28)
[2013-04-15T20:17:15+00:00] INFO: Processing apt_repository[10gen] action add (mongodb::10gen_repo line 32)
================================================================================
Error executing action `add` on resource 'apt_repository[10gen]'
================================================================================
RuntimeError
------------
The repository file to create is nil, cannot continue.
Checker definition probably flawed.
Error while checking syntax automatically: (file-error "Writing to process" "bad file descriptor" #<process flycheck-ruby-rubocop>)
Saving file /Users/paul/Development/Evrone/authentica/app/services/data_utils/best_pick_setup.rb...
Wrote /var/folders/mx/p1090yj579bfmb2t3bvdvclc0000gn/T/.!Users!paul!Development!Evrone!authentica!app!services!data_utils!best_pick_setup.rb.~undo-tree~
Wrote /Users/paul/Development/Evrone/authentica/app/services/data_utils/best_pick_setup.rb
Suspicious state from syntax checker ruby-rubocop: Checker ruby-rubocop returned non-zero exit code 1, but no errors from output: invalid option: --cache
/Users/paul/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rubocop-0.32.1/lib/rubocop/options.rb:68:in `parse'
/Users/paul/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rubocop-0.32.1/lib/rubocop/cli.rb:21:in `run'
/Users/paul/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rubocop-0.32.1/bin/rubocop:13:in `block in <top (required)>'
/Users/paul/.rbenv/ver