Merge branch 'master' of https://github.com/fleetside72/notes
This commit is contained in:
commit
8e80391176
14
jupyter/setup.md
Normal file
14
jupyter/setup.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
install R kernel for jupyter to use
|
||||||
|
* `sudo R`
|
||||||
|
* `install.packages('IRkernel')`
|
||||||
|
* `IRkernel::installspec()`
|
||||||
|
|
||||||
|
run on network:
|
||||||
|
`jupyter notebook --ip 10.0.10.15 --port 8888`
|
||||||
|
|
||||||
|
|
||||||
|
basic packages:
|
||||||
|
* ggplot2, plyr, ggExtra, scales
|
||||||
|
|
||||||
|
|
@ -7,3 +7,22 @@ openssl req -new -key key.pem -out csr.pem
|
|||||||
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
|
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
|
||||||
rm csr.pem
|
rm csr.pem
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
##Chrome stops accepting self-signed certs needs mod
|
||||||
|
|
||||||
|
https://stackoverflow.com/questions/43665243/invalid-self-signed-ssl-cert-subject-alternative-name-missing
|
||||||
|
|
||||||
|
1. set a file v3.ext
|
||||||
|
```
|
||||||
|
authorityKeyIdentifier=keyid,issuer
|
||||||
|
basicConstraints=CA:FALSE
|
||||||
|
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
|
||||||
|
subjectAltName = @alt_names
|
||||||
|
|
||||||
|
[alt_names]
|
||||||
|
DNS.1 = %%DOMAIN%%
|
||||||
|
```
|
||||||
|
|
||||||
|
2. openssl req -new -key key.pem -out csr.pem -sha256 -extfile v3.ext
|
||||||
|
|
||||||
|
0
nodejs/new_proj.md
Normal file
0
nodejs/new_proj.md
Normal file
21
ubuntu/system_service.md
Normal file
21
ubuntu/system_service.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
`//etc/systemd/system/filename.service`
|
||||||
|
|
||||||
|
```
|
||||||
|
[Unit]
|
||||||
|
Description=forecast_api
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/node //opt/forecast_api/index.js
|
||||||
|
Restart=always
|
||||||
|
User=fc_api
|
||||||
|
Environemnt=NODE_ENV=production
|
||||||
|
WorkingDirectory=//opt/forecast_api
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
||||||
|
|
||||||
|
`systemctl enable forecast.api`
|
||||||
|
|
||||||
|
`systemctl start forecast_api.service`
|
Loading…
Reference in New Issue
Block a user