cd ~
wget http://nodejs.org/dist/v6.2.1/node-v6.2.1-linux-armv6l.tar.gz
tar -xzf node-v6.2.1-linux-armv6l.tar.gz
node-v6.2.1-linux-armv6l/bin/node -v
The last command should print v6.2.1.
Now you can copy it to /usr/local
| jest.mock("dns", () => { | |
| return { | |
| promises: { | |
| Resolver: function() { | |
| return { | |
| resolveTxt: () => { | |
| return ["1.1.1.1","2.2.2.2/28"]; | |
| } | |
| }; | |
| } |
| #!/bin/sh | |
| #Check the Drive Space Used by Cached Files | |
| du -sh /var/cache/apt/archives | |
| #Clean all the log file | |
| #for logs in `find /var/log -type f`; do > $logs; done | |
| logs=`find /var/log -type f` | |
| for i in $logs |
Data Down / Actions Up
Other
http://emberjs.jsbin.com/rwjblue/299/edit?js,output - simplified version of ic-ajax
| #! /usr/bin/env bash | |
| # Variables | |
| APPENV=local | |
| DBHOST=localhost | |
| DBNAME=dbname | |
| DBUSER=dbuser | |
| DBPASSWD=test123 | |
| echo -e "\n--- Mkay, installing now... ---\n" |