Thursday, March 28, 2013

Jenkins on Mac OS X Tips and Tricks

Here I'm going to collect useful Jenkins Mac OS X tips and tricks:
  • Stop Jenkins
  • sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
  • Start Jenkins
  • sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
  • Change Jenkins default port
  • sudo defaults write /Library/LaunchDaemons/org.jenkins-ci httpPort '9999'
    Verify this settings:
    defaults read /Library/LaunchDaemons/org.jenkins-ci
    Then restart (stop, start) Jenkins daemon 
  • Disable Jenkins start after OS X reboot
  • sudo defaults write /Library/LaunchDaemons/org.jenkins-ci RunAtLoad -bool NO
  • Uninstall Jenkins
  • The next command requires admin password:
    /Library/Application Support/Jenkins/Uninstall.command
  • Upgrade Jenkins
    1. Download the latest war of Jenkins from the website
    2. Stop Jenkins
    3. Copy the downloaded "war" from your download directory to the "/Applications/Jenkins/" folder. 
    4. Start Jenkins
    When Jenkins is started You should have an updated installation.
Links:

Monday, March 04, 2013

Delicious. Evernote. Move bookmarks. Security Issues.

 
I've been using delicious.com social bookmarking service several years. In my toolbox were Firefox add-on, Android app and their Web UI access.

But, last Friday I had strange issue. I couldn't create any bookmark and I couldn't view my "delicious" bookmarks via web UI.

Then I've tried to get all my bookmarks via REST API and I had a success
https://USERNAME:PASSWORD@api.del.icio.us/v1/posts/all
At least I have a backup of all my bookmarks.

As an Evernote user I've decided to move/export/import all my Delicious bookmarks into Evernote. Very quick googling gave me this awesome solution:
Import Delicious bookmarks to Evernote including tags. The author wrote small script (for Mac/Windows) which properly imports Delicious bookmarks into Evernote. Just check it out.
He's also provided sources in case you'd like to improve/fix scripts: https://github.com/palaniraja/delicious2evernote.

Next day (last Saturday) I had been experiencing issues with Evernote also. Evernote resets my passwords and I had to re-type it. Very strange.

It looks to me that I switched from one unstable service to another :-) . So, I've decided to check twitter/blogs just to understand what going on. And, what a surprise:

Delicious

Evernote
Evernote’s Operations & Security team has discovered and blocked suspicious activity on the Evernote network that appears to have been a coordinated attempt to access secure areas of the Evernote Service. As a precaution to protect your data, we have decided to implement a password reset. Please read below for details and instructions.

In any case I've migrated all my bookmarks to Evernote. I'm going to use Evernote as centralize knowledge system: wiki, bookmarking, todo.