If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
| # Resolve DNS | |
| nslookup | |
| # List of open internet connections established | |
| # lsof is much more general purpose | |
| lsof -i | grep -E "(LISTEN|ESTABLISHED)" | |
| # Monitor network traffic & connections | |
| nettop |
| import UIKit | |
| extension UIView { | |
| func findSuperviewWithClass<T>(superViewClass : T.Type) -> UIView? { | |
| var xsuperView : UIView! = self.superview! | |
| var foundSuperView : UIView! | |
| while (xsuperView != nil && foundSuperView == nil) { | |
| if xsuperView.self is T { | |
| foundSuperView = xsuperView |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
| docker rmi $(docker images -q -f dangling=true) |
| // LTS = v4.x, change accordingly | |
| curl -sL https://deb.nodesource.com/setup_4.x | sudo bash - |
| # Give ownership of directory to user/group | |
| sudo chown -R <user>:<group> directory | |
| sudo chown -R :<group> directory | |
| sudo chown -R <user>: directory | |
| # Add user to group | |
| sudo usermod -a -G groupName userName |
| docker-machine create --driver amazonec2 \ | |
| --amazonec2-instance-type t2.nano \ | |
| --amazonec2-region eu-west-1 \ | |
| node-name |