Skip to content

Instantly share code, notes, and snippets.

@romanblanco
romanblanco / coffe.sh
Created October 23, 2015 20:06
Install Coffe on Ubuntu 15.10
apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
apt-get install -y --no-install-recommends libboost-all-dev
apt-get install -y libatlas-base-dev
apt-get install -y python-dev
apt-get install -y libgflags-dev libgoogle-glog-dev liblmdb-dev
apt-get install -y libhdf5-dev
apt-get install -y git
git clone https://github.com/BVLC/caffe.git
cd ~/caffe
cp Makefile.config.example Makefile.config
@romanblanco
romanblanco / arch.sh
Last active February 8, 2022 20:31
Archlinux install notes
# Get ISO and verify signature
# - https://wiki.archlinux.org/index.php/Installation_guide#Verify_signature
# ============================
# https://www.archlinux.org/download/
gpg --keyserver-options auto-key-retrieve --verify archlinux-version-x86_64.iso.sig
# Preparing bootable USB
# - https://wiki.archlinux.org/index.php/USB_flash_installation_medium#Using_basic_command_line_utilities
# ======================
@romanblanco
romanblanco / wpa_supplicant.sh
Created May 25, 2016 12:31
connect to wifi
wpa_supplicant -D nl80211,wext -i wlan0 -c <(wpa_passphrase "your_SSID" "your_key") ; dhcpd wlan0
@romanblanco
romanblanco / database.yml
Last active June 24, 2016 11:25
config/database.yml
### RUN TESTS:
# PARALLEL=true bundle exec rake test:vmdb:setup
# PARALLEL=true bundle exec rake test:vmdb
---
base: &base
adapter: postgresql
encoding: utf8
username: root
pool: 5
@romanblanco
romanblanco / chrome-addons
Last active November 15, 2016 16:57
chrome-addons
-- adblock
https://chrome.google.com/webstore/detail/adblock/gighmmpiobklfepjocnamgkkbiglidom?hl=en
-- json formatter
https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa
-- screenshot
https://chrome.google.com/webstore/detail/full-page-screen-capture/fdpohaocaechififmbbbbbknoalclacl
-- language switcher
@romanblanco
romanblanco / notes.md
Last active September 16, 2021 07:07
Notes
# http://manageiq.org/documentation/development/developer_setup/
___
# Ubuntu
sudo apt-get install ruby
sudo apt-get install git
sudo apt-get install memcached
sudo atp-get install postgresql libpq-dev
@romanblanco
romanblanco / development.rb
Last active November 7, 2017 08:53
Developer Gemfile
# manageiq/bundler.d/development.rb
require 'rubygems'
gem 'pry'
gem 'pry-byebug'
gem 'pry-rails'
gem 'pry-doc'
gem 'pry-loudmouth'
gem 'pry-inline'
# http://chartkick.com/
require 'lastfm-client'
#require 'ap'
#require 'pry'
#require 'json'
LastFM.api_key = ''
LastFM.client_name = 'stats'
describe Mixins::CheckedIdMixin do
describe '#find_records_with_rbac' do
# include tested mixin
let(:mixin) { Object.new.tap { |s| s.singleton_class.send(:include, described_class) } }
# TODO create user with rights to access vm_1 and vm_2
let(:user_role) { FactoryGirl.create(:miq_user_role) }
let(:group) { FactoryGirl.create(
:miq_group,
:miq_user_role => user_role)
}