Pages

Monday, July 17, 2017

Chrome does not save passwords anymore

I had a problem that chrome stopped saving me a passwords. I'm using chrome on OS X. Everything is turned on that needs to be turned on and I get asked should chrome save me a password, but password is never saved.
I tried to uninstall chrome, to install it again, to reset settings, etc, but nothing fixed the problem.

Key step is, when you uninstall chrome to delete following folder:
 ~/Library/Application Support/Google/Chrome.


Thursday, May 25, 2017

Tuesday, April 04, 2017

Friday, March 03, 2017

Script iterm2 to open several ssh tabs

Save this like mysqcript.app:
tell application "iTerm2"
  tell current window
    
    create tab with default profile command "ssh myuser@111.111.111.111 -i my.pem"
    select last tab
    tell the current session
      write text "#web 1;"
    end tell
    
    create tab with default profile command "ssh myuser@111.111.111.112 -i my.pem"
    select last tab
    tell the current session
      write text "#web 2;"
    end tell
    
    create tab with default profile command "ssh myuser@111.111.111.113 -i my.pem"
    select last tab
    tell the current session
      write text "#worker 1;"
    end tell
  
  end tell
end tell

And run it as:
osascript mysqcript.app

Tuesday, February 21, 2017

Distributed locking

There are more alternatives for locking within distributed environment.

Zookeeper:
https://zookeeper.apache.org/doc/r3.3.6/recipes.html

or you can use Redis, for example.

https://redis.io/topics/distlock



Please read and following comments regarding Redis locking:
http://martin.kleppmann.com/2016/02/08/how-to-do-distributed-locking.html
http://antirez.com/news/101