Saving GIT passwords
Saving your git password lets you skip giving username/password at every checkin Normally you use git config –global credential.helper store but this is not very […]
Continue reading »Golden nuggets where no entry is longer than my expected attention span
Saving your git password lets you skip giving username/password at every checkin Normally you use git config –global credential.helper store but this is not very […]
Continue reading »MySQL/MariaDB Remember to change bind-address to 0.0.0.0. By default it is set to 127.0.0.1 and then you can’t connect remotely! Exactly which config file it […]
Continue reading »http://www.linuxproblem.org/art_9.html Basically you add the content of your own ~/.ssh/id_rsa.pub to the targets ~/.ssh/authorized_keys file. (Replace ‘a’ with your username, A with your hostname or […]
Continue reading »Since Oracles own instructions (https://docs.oracle.com/javase/9/install/installation-jdk-and-jre-linux-platforms.htm) sucks big time, I can recommend this one instead: https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04 Simple and easy to follow. And it WORKS!
Continue reading »First of all, check the documentation: https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server then go ahead: sudo apt-get install samba decide which LINUX user should be used (or create a new). […]
Continue reading »Some alternatives to Angular 1.x (deprecated), Angular 2 (Typescript) and Angular v4 https://www.slant.co/topics/4306/~angular-js-alternatives vue.js riot react (not a framework, per se. It’s a view rendering […]
Continue reading »General structure BEGIN { print “BEGIN” } /filter1/ { print $0 } /$6 == “Nov”/ { print $1, $2 } […]
Continue reading »The single reason why I started dating Ruby class VCR def initialize @messages = [] end def method_missing(method, *args, &block) @messages << [method, args, block] […]
Continue reading »You can find a lot of business terms here https://en.wikipedia.org/wiki/List_of_business_terms https://en.wikipedia.org/wiki/List_of_buzzwords Churn Rate Churn rate, when applied to a customer base, refers to the proportion […]
Continue reading »problem You know when you want to select records depending on the values of related records (like belongs_to fields) ? scenario class TradingSignal < ActiveRecord::Base […]
Continue reading »Nested forms with HABTM and HasManyThrough Start with the models has_many :events # creates …… accepts_nested_attributes_for :events, :allow_destroy => true # creates…. attr_accessible :events_attributes # […]
Continue reading »You know how it is, you need to download a 3GB install kit, but don’t want to disturb the missuz by clogging all the bandwidth. […]
Continue reading »