Techy Things

Install OpenVPN on CentOS 6.8 0

Install OpenVPN on CentOS 6.8

1. Install EPEL Repo http://tech.yipp.ca/linux/adding-epel-repo-centos-6-8/ 2. Install openvpn $> sudo yum install openvpn 3. Find the proper configuration, run VPN client using this command $> sudo openvpn --config myconfig.conf  

Unit tests in Ruby on Rails 0

Unit tests in Ruby on Rails

How to write and run your first unit test for your ruby on rails webapp Fist time setup $ rake db:test:load This will recreate a new test DB based ont the current schema! Tasks...

Git create patch with submodules 0

Git create patch with submodules

Method #1   Commit your changes but do not push yet git format-patch -n HEAD^ Then go in each submodule you care and do the sam Method #2 Submodules git submodule --quiet foreach --recursive...

Backbone after all render 0

Backbone after all render

views["#content-view"].render().once("afterRender", function() { // console.log("rendered"); $(window).trigger('scroll.rpinnable'); }, this);

liblvm llvm on cross-compiler mingw-w64-win32 0

liblvm llvm on cross-compiler mingw-w64-win32

How to compile yourself http://web.archive.org/web/20091027044149/http://geocities.com/henrik_bach_llvm/ http://clang-developers.42468.n3.nabble.com/LLVM-compilation-error-on-MinGW-MSYS-CMake-td2735422.html https://cygwin.com/ml/cygwin-developers/2015-03/msg00005.html On Visual Studio 1>filelog.obj : error LNK2019: unresolved external symbol __imp__StackWalk64@36 referenced in function "int __cdecl LogAlloc(unsigned char *,unsigned int)" (?LogAlloc@@YAHPAEI@Z) 1>filelog.obj : error LNK2019: unresolved external...

param is missing or the value is empty nested require permit 0

param is missing or the value is empty nested require permit

Error: param is missing or the value is empty: home_address_attributes Before (wrong) private def user_params Rails.logger.info("PARAMS: #{params.inspect}") params.require(:user).permit(:fullname, :login, :password, :password_confirmation, :phone_home, :phone_work, :phone_cell, :deliveryNote, :home_address_attributes).require(:home_address_attributes) end After (good) private def user_params Rails.logger.info("PARAMS: #{params.inspect}")...

Install a node workstation with nvm 0

Install a node workstation with nvm

1 NVM 1.1 Install nvm $> curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash $> export NVM_DIR="$HOME/.nvm" $> [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm 1.2 Verify it has installed $> command -v nvm If not,...