Rename files in Linux

Here's how I use rename:

rename 's/search/replace/' *
And here's it in action:

oli@bert:~/Desktop/rawr$ ls
pie\u333.sh
oli@bert:~/Desktop/rawr$ rename 's/\\u333/PIE/' *
oli@bert:~/Desktop/rawr$ ls
piePIE.sh

Mac What’s Locking File

Refer: http://apple.stackexchange.com/questions/22259/how-to-check-whats-locking-a-file

$ sudo lsof | grep -i looking-for

You will still need to kill the process and you can try the rm command too.

Simple JSON Server

https://github.com/typicode/json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)

Created with love for front-end developers who need a quick back-end for prototyping and mocking.

Installing NPM and NodeJS in Ubuntu

Possible Solution (Not Tested):
http://www.hostingadvice.com/how-to/install-nodejs-ubuntu-14-04/

Updating NPM
Refer: http://stackoverflow.com/questions/23393707/how-to-update-npm

This will update npm using npm itself:

# This is for initial installation
$ sudo npm install npm -g

# This is for upgrade
$ sudo npm update npm -g

From article: If you are stuck, try sudo npm update npm -g. All credit goes to Tim Castelijns. I have tested it on ubuntu 14.04, npm 1.3.10

Note that if you are using nvm for managing multiple versions in your local dev environment for e.g. testing purposes, all your installed versions (listed by nvm ls) are in ~/.nvm, hence you just omit system wide installation (i.e. omit sudo):

$ npm install npm -g

Updated version of NodeJS - Chris Lea
Refer: https://nodesource.com/blog/chris-lea-joins-forces-with-nodesource

Falcor

Project: https://www.npmjs.com/package/falcor

Overview Video: https://www.youtube.com/watch?v=hOE6nVVr14c

 

Remove Windows 10 Upgrade Icon

Refer: http://www.howtogeek.com/218856/how-do-you-disable-the-get-windows-10-icon-shown-in-the-notification-tray/

Bottom Line: Remove this installed packaged, and then hide it if it ever appears again.

KB3035583

Search for this in Install Updates
Windows (KB3035583)

Improve Battery Life in Ubuntu

Refer: http://www.makeuseof.com/tag/easily-increase-battery-life-tlp-linux/

Ubuntu
In Ubuntu, you’ll want to do the following:

$ sudo add-apt-repository ppa:linrunner/tlp.
$ sudo apt-get update
$ sudo apt-get install tlp tlp-rdw

If you are on a ThinkPad, you’ll need to install a few more packages for maximum battery life, which you can do with the command sudo apt-get install tp-smapi-dkms acpi-call-tools.

# Start the service, only needs done once, will start automatically on boot-up
$ sudo tlp start