Skip to content

Instantly share code, notes, and snippets.

@pcmantz
pcmantz / Vagrantfile
Created February 13, 2024 19:53
Vagrantfile.matrix
# Vagrantfile
RHEL_PACKAGES = %w[
autoconf
bzip2-devel
cpio
curl
expat
gcc
gcc-gfortran
### 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:
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
(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/
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
ELISP> t
t
ELISP> nil
nil
ELISP> false
*** Eval error *** Symbol's value as variable is void: false
(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
class GuestRolePermit < CanTango::RolePermit
def initialize ability
super
end
protected
def permit_rules
can(:read, [PackageManager, Package, Bundle]) { public_at.present? }
end
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) }
@pcmantz
pcmantz / gist:2465838
Created April 22, 2012 18:11
change title of terminal in Screen if we are in a git repository
export PROMPT_COMMAND='[ -d $(pwd)/.git ] && screen -X title "git $(pwd | xargs basename)"'