Skip to content

Instantly share code, notes, and snippets.

View kris-luminar's full-sized avatar

Kris Luminar kris-luminar

  • StudyKIK
  • Kingston, PA
  • 07:18 (UTC -04:00)
View GitHub Profile
@kris-luminar
kris-luminar / gist:5975027
Created July 11, 2013 12:29
Can't source a .bash_profile file This file exists but when I call source on it it fails. When I source it inside the remote machine called 'charley' using the same 'vagrant' user, the source command can't seem to find the file.
~/Downloads/ansible
☻ ansible charley -a 'ls -la /home/vagrant/.bash_profile' -u vagrant devel 714cb02 ✗
192.168.14.133 | success | rc=0 >>
-rw-rw-r-- 1 vagrant vagrant 118 Jul 10 13:21 /home/vagrant/.bash_profile
~/Downloads/ansible
☻ ansible charley -a 'source /home/vagrant/.bash_profile' -u vagrant devel 714cb02 ✗
192.168.14.133 | FAILED | rc=2 >>
[Errno 2] No such file or directory
@kris-luminar
kris-luminar / main.yml
Created July 11, 2013 13:39
How to install RVM using Ansible
- hosts: charley
user: vagrant
sudo: no
tasks:
- name: Install RVM
shell: \curl -L https://get.rvm.io | bash -s stable --autolibs=packages
---
apt_upgrade_file: vmware_tools_upgrade.yml
mysql> show variables like 'innodb%';
+---------------------------------+------------------------+
| Variable_name | Value |
+---------------------------------+------------------------+
| innodb_adaptive_flushing | ON |
| innodb_adaptive_hash_index | ON |
| innodb_additional_mem_pool_size | 8388608 |
| innodb_autoextend_increment | 8 |
| innodb_autoinc_lock_mode | 1 |
| innodb_buffer_pool_instances | 1 |
@kris-luminar
kris-luminar / vcr_cucumber_setup.rb
Created November 13, 2013 14:34
Cucumber VCR config file
require 'vcr'
VCR.configure do |c|
c.hook_into :webmock
c.cassette_library_dir = 'features/cassettes'
c.ignore_request do |request|
URI(request.uri).port == 8981 #solr test server
end
# can't get any features to run without this enabled