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
# Vagrantfile | |
RHEL_PACKAGES = %w[ | |
autoconf | |
bzip2-devel | |
cpio | |
curl | |
expat | |
gcc | |
gcc-gfortran |
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
### Keybase proof | |
I hereby claim: | |
* I am pcmantz on github. | |
* I am pmantzevi (https://keybase.io/pmantzevi) on keybase. | |
* I have a public key ASDyD1uuSOZVtugUqCvdK1udNLGBhow7umBDms95UWt-aAo | |
To claim this, I am signing this object: |
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
GRIFFON HP: 59 AC : 12 | |
Str+4, Dex+1 Con +3 Int -4 Wis +1 Cha -1 | |
Multi attack, 1 beak 1 claw per turn | |
+6 hit, beak 1d8+4 pierce claw 2d4+4 slash | |
Fly speed = 80 ft per round (!) walk = 30 ft | |
GIANT FLY STATS HP : 19 AC : 11 | |
Str +2 Dex +1 Con +1 Int -4 Wis + 0 Cha -4 | |
Fly speed 60 ft per round walk 20 ft darkvision 60 ft |
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
(in /home/devuser/dev/vamp-ui) | |
Old Rails generator API | |
A plugin in the app is using the old generator API (a new one may be available at http://github.com/trydionel/rails3-generators). | |
More information: http://blog.plataformatec.com.br/2010/01/discovering-rails-3-generators/ | |
The culprits: | |
- vendor/plugins/acts_as_taggable_redux/generators/ | |
- vendor/plugins/acts_as_taggable_redux/generators/acts_as_taggable_tables/ | |
- vendor/plugins/acts_as_taggable_redux/generators/acts_as_taggable_stylesheet/ | |
- vendor/plugins/acts_as_authenticated/generators/ |
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
create_table(:bundles, :ignore_index_errors=>true) do | |
primary_key :id | |
String :name, :size=>255, :null=>false | |
String :version, :size=>255, :null=>false | |
Integer :revision, :null=>false | |
Integer :user_id, :null=>false | |
DateTime :created_at, :null=>false | |
DateTime :updated_at, :null=>false | |
DateTime :public_at |
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
ELISP> t | |
t | |
ELISP> nil | |
nil | |
ELISP> false | |
*** Eval error *** Symbol's value as variable is void: false |
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
(setq default-cursor-color "green") | |
(setq yasnippet-can-fire-cursor-color "purple" ) | |
;; It will test whether it can expand, if yes, cursor color -> green. | |
(defun yasnippet-can-fire-p (&optional field) | |
(interactive) | |
(setq yas--condition-cache-timestamp (current-time)) | |
(let (templates-and-pos) | |
(unless (and yas-expand-only-for-last-commands |
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
class GuestRolePermit < CanTango::RolePermit | |
def initialize ability | |
super | |
end | |
protected | |
def permit_rules | |
can(:read, [PackageManager, Package, Bundle]) { public_at.present? } | |
end |
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
require 'spec_helper' | |
require 'cantango/rspec/matchers' | |
describe GuestRolePermit do | |
context 'a guest user' do | |
subject(:guest_user) { FactoryGirl.create(:guest_user) } | |
context 'acting on a public bundle' do | |
let(:public_bundle) { FactoryGirl.create(:public_bundle) } |
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
export PROMPT_COMMAND='[ -d $(pwd)/.git ] && screen -X title "git $(pwd | xargs basename)"' |
NewerOlder