Skip to content

Instantly share code, notes, and snippets.

View gabrielfalcao's full-sized avatar

Gabriel Falcão gabrielfalcao

View GitHub Profile
#!/usr/bin/ruby
#
# I deliberately didn't DRY /usr/local references into a variable as this
# script will not "just work" if you change the destination directory. However
# please feel free to fork it and make that possible.
#
# If you do fork, please ensure you add a comment here that explains what the
# changes are intended to do and how well you tested them.
#
# 14th March 2010:
# -*- coding: utf-8 -*-
# Copyright (C) <2009> Gabriel Falcão <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) <2010> Gabriel Falcão <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
#!/bin/sh
KEY="$HOME/.ssh/id_rsa.pub"
if [ ! -f $KEY ];then
echo "private key not found at $KEY"
echo "* please create it with "ssh-keygen -t dsa" *"
echo "* to login to the remote host without a password, don't give the key you create with ssh-keygen a password! *"
exit
fi
Feature: Twitter login
As a registred user
I want use my twitter account
So that I can get personal data
Scenario: Authenticate
Given my username pytwitt2
And my secret password 123456
When I request for access
Then my user pytwitt2 object should be returned
export TERM="xterm-color"
alias ls="ls -G"
PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] "
alias egrep="egrep --colour"
alias grep="egrep --colour"
export PYTHONPATH=$PYTHONPATH:$HOME/usr/python-libs:/Library/Python/2.6/site-packages/
export PATH=$PATH:$HOME/usr/bin:/usr/local/sbin
export GEM_HOME='/usr/local/Cellar/gems/1.8'
export BASH_COMPLETION_PATH=$HOME/usr/bash_completion.d
#!/bin/sh
# ssh-copy-id for mac os x
KEY="$HOME/.ssh/id_rsa.pub"
if [ ! -f $KEY ];then
echo "private key not found at $KEY"
echo "* please create it with "ssh-keygen -t dsa" *"
echo "* to login to the remote host without a password, don't give the key you create with ssh-keygen a password! *"
exit
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pwd
from lettuce import step, world
@step('Given I have the user "(.*)"')
def given_i_have_the_user_group1(step, user):
world.user = user
# #!/usr/bin/env python
# -*- coding: utf-8 -*-
# <terrain.py - selenium wrapper for lettuce bdd>
# Copyright (C) <2010> Gabriel Falcão <[email protected]>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) <2010> Gabriel Falcão <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is