This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Opções de boot para o CCE W93 | |
noapic nolapic nobluetooth pci=assign-busses apicmaintimer idle=poll reboot=cold,hard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install ruby rdoc irb libyaml-ruby libzlib-ruby ri libopenssl-ruby ruby1.8-dev build-essential libmysql-ruby mysql-server libmysqlclient15-dev | |
cd /tmp | |
wget "http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz" | |
tar -xvzf rubygems-1.3.1.tgz | |
rm rubygems-1.3.1.tgz | |
cd rubygems-1.3.1 | |
sudo ruby setup.rb | |
cd .. | |
rm -r rubygems-1.3.1 | |
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Products.CMFCore.utils import getToolByName | |
from zLOG import LOG, INFO | |
def testOwnerInAclUsers(self): | |
portal = getToolByName(self, 'portal_url').getPortalObject() | |
# FIXME: pegar a lista abaixo programaticamente | |
zope_users = [] # lista de usuários no acl_users *do Zope* | |
plone_users = map(str, portal.acl_users.getUsers()) | |
users = zope_users + plone_users | |
def inner_function(obj, path): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This is a buildout configuration for plone 2.5 + interlegis.sqlalchemystorage | |
# | |
[buildout] | |
parts = | |
plone | |
zope2 | |
productdistros | |
instance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/code$ hg clone git://github.com/dirceu/emacs-starter-kit.git dirceu-emacs-starter-kit | |
fetching from : origin | |
importing Hg objects into Git | |
Counting objects: 1301, done. | |
Compressing objects: 100% (826/826), done. | |
Total 1301 (delta 485), reused 1242 (delta 452) | |
importing Git objects into Hg | |
at: 0/159 | |
at: 100/159 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You should put this in your ~/.bashrc | |
export PATH=/opt/local/lib/erlang/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Testando form do Wufoo</title> | |
</head> | |
<body> | |
<script type="text/javascript">var host = (("https:" == document.location.protocol) ? "https://secure." : "http://");document.write(unescape("%3Cscript src='" + host + "wufoo.com/scripts/embed/form.js' type='text/javascript'%3E%3C/script%3E"));</script> | |
<script type="text/javascript"> | |
var m7x4a3 = new WufooForm(); | |
m7x4a3.initialize({ | |
'userName':'dirceu', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys = require('sys'); | |
function fizzbuzz(n) { | |
if(n == 101) | |
return; | |
if(n % 15 == 0) | |
sys.puts('FizzBuzz'); | |
else if(n % 5 == 0) | |
sys.puts('Buzz'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(custom-set-faces | |
'(mumamo-background-chunk-major ((t (:background "dark")))) | |
'(mumamo-background-chunk-submode ((t (:background "dark")))) | |
'(mumamo-background-chunk-submode1 ((t (:background "dark")))) | |
'(mumamo-background-chunk-submode2 ((t (:background "dark")))) | |
'(mumamo-background-chunk-submode3 ((t (:background "dark")))) | |
'(mumamo-background-chunk-submode4 ((t (:background "dark")))) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dirceu@macbook:~/Desktop/riak-0.10.1$ | |
→ make devrel | |
cp -Rn dev/riak dev/dev1 | |
rm -rf dev/dev1/data | |
mkdir -p dev/dev1/data/ring | |
rm -rf dev/dev1/lib/luke* && ln -sf /Users/dirceu/Desktop/riak-0.10.1/apps/luke dev/dev1/lib; rm -rf dev/dev1/lib/riak_core* && ln -sf /Users/dirceu/Desktop/riak-0.10.1/apps/riak_core dev/dev1/lib; rm -rf dev/dev1/lib/riak_kv* && ln -sf /Users/dirceu/Desktop/riak-0.10.1/apps/riak_kv dev/dev1/lib; | |
rm -rf dev/dev1/lib/ebloom* && ln -sf /Users/dirceu/Desktop/riak-0.10.1/deps/ebloom dev/dev1/lib; rm -rf dev/dev1/lib/erlang_js* && ln -sf /Users/dirceu/Desktop/riak-0.10.1/deps/erlang_js dev/dev1/lib; rm -rf dev/dev1/lib/mochiweb* && ln -sf /Users/dirceu/Desktop/riak-0.10.1/deps/mochiweb dev/dev1/lib; rm -rf dev/dev1/lib/protobuffs* && ln -sf /Users/dirceu/Desktop/riak-0.10.1/deps/protobuffs dev/dev1/lib; rm -rf dev/dev1/lib/riakc* && ln -sf /Users/dirceu/Desktop/riak-0.10.1/deps/riakc dev/dev1/lib; rm -rf dev/dev1/lib/webmachine* && ln -sf /Users/dirceu/Desktop/riak-0.10.1/deps/webma |