echo "UUID=12345" > ~/envsudo nano /lib/systemd/system/nodered.service- Add
EnvironmentFile=/home/pi/env sudo systemctl daemon-reloadsudo systemctl restart nodered
| Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]). | |
| The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch. | |
| Following are the changes that I made to make it work. | |
| $ sudo apt-get update | |
| $ sudo apt-get install lirc | |
| # Add the following lines to /etc/modules file | |
| lirc_dev | |
| lirc_rpi gpio_in_pin=18 gpio_out_pin=17 |
Install Golang 1.9:
wget https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile
If already installed old golang with apt-get:
| //Node gameloop | |
| var NanoTimer = require('nanotimer'); | |
| var count = 0; | |
| var source = msg.payload.source; | |
| var target = msg.payload.target; | |
| var interval = 16; |
When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.
filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&id=${fileid}"- Update
package.json, setversionto a prerelease version, e.g.2.0.0-rc1,3.1.5-rc4, ... - Run
npm packto create package - Run
npm publish <package>.tgz --tag nextto publish the package under thenexttag - Run
npm install --save package@nextto install prerelease package
I had wondered about this some weeks ago before finally trying it out today. I'm surprised nobody else had tried already. I was successful enough to be satisfied for my own uses. YMMV.
Result is I have a new Play Music account with Family Sharing which I can share with my G-Suite users, with all my playlists* moved over, and without anyone needing to maintain a separate email account.
This whole process took me about an hour, including moving across 15 playlists, but not including MX record propagation.
That is is basically a "fork" of blog article i'm constantly returning to. It seems that the blog is down:
Dave Bass proposed this which I picked up for my implementation (here for an 8-chars token):
| #!/bin/bash | |
| # Use as follows : | |
| # ./setup_carrierwave.sh local | |
| # ./setup_carrierwave.sh remote project_name [production/staging] | |
| set -e | |
| # Parameters | |
| MODE=$1 | |
| PROJECT_NAME=$2 |