DevTech101

DevTech101

Uncategorized

Using Consul for Service Discovery In Multiple Data Centers – Part 1

Consul configuration in a multi Data Center environment Below I am going to describe how to use Consul Health Checking across Multiple Data Centers. A picture is worth a thousand words, the diagram below describes a high level overview of the Consul multi Data Center architecture. Consul Multi Data Center Diagram below are the highlights …

Using Consul for Service Discovery In Multiple Data Centers – Part 1 Read More »

New IP Subnet IETF draft – IP-FF / “Five Fields”

Very interesting – just found this IETF draft – IP-FF / “Five Fields” Below is some of the befits of the new so called Five Fields (IP-FF) A new IP Schema – Internet Protocol “Five Fields” Main highlights: -Short, human readable addresses, with IPv4 look & feel, like this: 192.168.510.971.11 10.0.0.0.1 382.201.769.25.133 Where each field …

New IP Subnet IETF draft – IP-FF / “Five Fields” Read More »

Git auto complete and color coding

First lets get the auto completed code curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash Now add to your .bashrc or .bash_profile if [ -f ~/.git-completion.bash ]; then . ~/.git-completion.bash fi To enable Git color coding git config color.ui git config –global color.ui true

Pulseaudio (PCM) Gnome 3 issues

Solution for no sound # https://bugzilla.redhat.com/show_bug.cgi?id=1206764 /root/.pulse/client.conf autospawn = yes # OK, I guess we can consider that a regression in autostart behavior, I’ll re-add # Add /usr/bin/pulseaudio –start “$@” # to /usr/bin/start-pulseaudio-x11 script You can start (or restart with pkill pulseaudio) /usr/bin/amd64/pulseaudio –start –log-target=syslog Note: All settings are in /etc/pulse/default.pa Helpful links PulseAudio Examples

Using NodeJS With MongoDB

Configuring MongoDB First test and connect to mongo From connect line > use mcfly switched to db mcfly > db.createCollection(‘mathpeeps’) { “ok” : 1 } > db.mathpeeps.insert({Firstname: ‘Eli’, lastname: ‘Kleinman’}) WriteResult({ “nInserted” : 1 }) > db.mathpeeps.insert({Firstname: ‘Moshe’, lastname: ‘Kleinman’}) WriteResult({ “nInserted” : 1 }) > db.mathpeeps.find() { “_id” : ObjectId(“55ce19e7737e49e3a5a7553e”), “Firstname” : “Eli”, “lastname” …

Using NodeJS With MongoDB Read More »

Hw to make lightning google calendar

In the current version (0.18 with lightning 1.9.1), this is a hidden feature which is disabled by default. It is slightly buggy, but works sufficiently to just get an invitation into your google calendar from your (possibly non-google) inbox. Using the config editor, simply set calendar.google.enableEmailInvitations to true. You may also want to set calendar.google.sendEventNotifications …

Hw to make lightning google calendar Read More »