Skip to content

Instantly share code, notes, and snippets.

@gilderlan
gilderlan / gist:3209160
Created July 30, 2012 18:56
Convert ogv to avi
mencoder -idx input.ogv -ovc lavc -oac mp3lame -o output.avi
@gilderlan
gilderlan / simple.html
Created May 13, 2012 19:57
Página html usada em aula....
<html>
<head>
<title>TESTE | HTML</title>
<style type="text/css">
body{
margin: 0px;
padding: 0px;
}
@gilderlan
gilderlan / gist:2346488
Created April 9, 2012 20:55
Rails start project
rails new appname --skip-sprockets -T
rails g rspec:install
@gilderlan
gilderlan / gist:2161856
Created March 22, 2012 19:05
Rakefile for Sinatra and Active-Record
require 'rubygems'
require 'active_record'
require 'yaml'
namespace :db do
task :environment do
@config = YAML::load(File.open(File.dirname(__FILE__) + '/db/database.yml'))
ActiveRecord::Base.establish_connection(@config)
end
@gilderlan
gilderlan / gist:1392083
Created November 24, 2011 19:31
baixando todos os podcasts do simples ideias http://podcast.simplesideias.com.br/
(1..10).each do |i|
`wget http://podcast.simplesideias.com.br/audio/sip-#{i}.mp3`
end
@gilderlan
gilderlan / gist:1320602
Created October 27, 2011 19:32
valor monetário no oracle
to_char(valor, 'FM999G999G999D90', 'nls_numeric_characters='',.''')
@gilderlan
gilderlan / gist:1308774
Created October 24, 2011 11:02
variáveis de ambiente para instalar o ruby-oci8
LD_LIBRARY_PATH='/opt/oracle/instantclient_11_2'
export LD_LIBRARY_PATH
PATH=$PATH:'/opt/oracle/instantclient_11_2'
SQLPATH='/opt/oracle/instantclient_11_2'
export SQLPATH
TNS_ADMIN='/opt/oracle/instantclient_11_2'
export TNS_ADMIN
@gilderlan
gilderlan / gist:1301255
Created October 20, 2011 14:20
link para corrigir instalação do ruby-oci8 no ubuntu 11.10
ln -s /usr/include/linux/types.h /usr/include/sys/types.h
@gilderlan
gilderlan / gist:1298247
Created October 19, 2011 13:15
my bash
export PS1='[\u] \[\033[1;33m\]\w\a\[\033[0m\]$(__git_ps1 " \[\033[1;32m\](%s)\[\033[0m\]")\n$ '