Skip to content

Instantly share code, notes, and snippets.

View ceritium's full-sized avatar
🏠
Working from home

Jose Galisteo ceritium

🏠
Working from home
View GitHub Profile
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
{"apiVersion":1,"swaggerVersion":1.2,"basePath":"https://api.cardstreams.io","description":"Cardstreams v1 API","resourcePath":"/streams","produces":["application/json"],"consumes":["application/json"],"apis":[{"path":"/v1/streams","operations":[{"method":"GET","summary":"Retrieve all Streams","notes":"Returns a list of all Streams for a given app.","type":"array","items":{"$ref":"Stream"},"nickname":"getStreams","parameters":[{"name":"X-Cardstreams-AppId","description":"The generated Application ID","type":"string","threescale_name":"app_ids","paramType":"header","required":false},{"name":"X-Cardstreams-AppKey","description":"The generated Application Key","threescale_name":"app_keys","type":"string","paramType":"header","required":false},{"name":"Authorization","description":"Authorization bearer token for access","type":"string","paramType":"header","required":false}],"responseMessages":[{"code":200,"message":"OK","responseModel":"Stream"}]},{"method":"POST","summary":"Create a new Stream.","notes":"Create
{
"links": {
"self": "http://example.com/posts",
"next": "http://example.com/posts?page[offset]=2",
"last": "http://example.com/posts?page[offset]=10"
},
"data": [{
"type": "posts",
"id": "1",
"attributes": {
@ceritium
ceritium / gitosis_config_generator.rb
Created June 4, 2009 16:25
Gitosis Config Generator
class GitosisConfigGenerator
def initialize
@config = {}
end
def add_group(name, options = {})
@config.store(name, {:writable => options[:writable], :readonly => options[:readonly], :members => options[:members]})
end
require 'rubygems'
require 'hpricot'
require 'open-uri'
class CareerjetSpider
BASE = "http://www.careerjet.com/search/jobs"
MONTH = { 'January' => 'Jan', 'February' => 'Feb', 'March' => 'Mar', 'April' => 'Apr', 'May' => 'May', 'June' => 'Jun', 'July' => 'Jul', 'August' => 'Aug', 'September' => 'Sep', 'October' => 'Oct', 'November' => 'Nov', 'December' => 'Dec'}
attr_reader :page
#transacciones.hideme
Tienes
= @transacciones_count
= link_to_function "transacciones" do |page|
- page[:transacciones].show
before "deploy:migrate", 'db:backup'
namespace :db do
desc "Crea un backup de la base de datos antes de correr migraciones"
task :backup do
run "mkdir -p #{current_path}/db/backups"
run "mysqldump -u root -p #{application}_production | gzip > #{current_path}/db/backups/#{application}_production_#{Time.now.strftime '%Y%m%dT%:%H%M%S'}.gzip" do |ch, stream, out|
ch.send_data "the password" if out == "Enter password: "
end
no such file to load -- data-calendar
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/gem_dependency.rb:208:in `load'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `load_gems'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `load_gems'
export PS1='\w$(__git_ps1 "(%s)") > '
#export PS1='\[\e[1;32m\][\u@\h \W]\$\[\e[0m\] '
source ~/.rake_cap_bash_autocomplete.sh
#export PS1=">\[\033[s\]\[\033[1;\$((COLUMNS-4))f\]\$(date +%H:%M)\[\033[u\]"
alias mysql=/usr/local/mysql/bin/mysql
alias mysqladmin=/usr/local/mysql/bin/mysqladmin
/Users/ceritium/.rvm/gems/ruby-1.9.2-p0/gems/redgreen-1.2.2/lib/redgreen.rb:2:in `require': no such file to load -- test/unit/ui/console/testrunner (LoadError)
from /Users/ceritium/.rvm/gems/ruby-1.9.2-p0/gems/redgreen-1.2.2/lib/redgreen.rb:2:in `<top (required)>'
from /Users/ceritium/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:in `require'
from /Users/ceritium/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:in `block (2 levels) in require'
from /Users/ceritium/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:in `each'
from /Users/ceritium/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:in `block in require'
from /Users/ceritium/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:in `each'
from /Users/ceritium/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:in `require'
from /Users/ceritium/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler.rb:112:in `require'
from /Users/c