Techy Things

Boost CPU to max speed on Linux/CentOS 0

Boost CPU to max speed on Linux/CentOS

As I was filling up a ticket and pasting my /proc/cpuinfo I realized my CPU were running at 800MHz Solution $> sudo nano /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor It will repeat for each of your Core. Is it useful...

[SOLVED] Adding epel repo to Centos 6.8 0

[SOLVED] Adding epel repo to Centos 6.8

$> su - $> yum update # optional but recommanded $> rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org $> rpm -Uvh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm  

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}")...