worker_processes 2;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Learn Memory | |
After=syslog.target network.target mongodb.service | |
[Service] | |
ExecStart=/root/.nvm/versions/node/v6.0.0/bin/node /node/learn-memory/bin/learn-memory | |
Restart=always | |
RestartSec=10 | |
StandardOutput=syslog | |
StandardError=syslog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mydomain.com:443 { | |
tls [email protected] | |
proxy / localhost:7772 { | |
except /views /fonts /javascripts /langs | |
} | |
root /node/learn-memory/public | |
gzip | |
} | |
mydomain.com:8082 { | |
tls [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1="[\[$(tput sgr0)\]\[\033[38;5;208m\]\A\[$(tput sgr0)\]\[\033[38;5;15m\]] \[$(tput sgr0)\]\[\033[38;5;82m\]\u\[$(tput sgr0)\]\[\033[38;5;83m\]@\[$(tput sgr0)\]\[\033[38;5;82m\]\H\[$(tput sgr0)\]\[\033[38;5;15m\] > \[$(tput sgr0)\]\[\033[38;5;39m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\] \\$ \[$(tput sgr0)\]" | |
alias fm="ssh [email protected] -t "./fm"" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Play and pause button thanks to Icono | |
*/ | |
[class*="icono-"] { | |
display: inline-block; | |
vertical-align: middle; | |
position: relative; | |
font-style: normal; | |
color: #333; | |
text-align: left; |
sudo yum install libsndfile-devel.*
Tapez ces lignes de commandes:
git clone https://github.com/ChristopheJacquet/PiFmRds.git
cd PiFmRds/src
make clean
make
apt-get install sox
sox -t ogg http://live.bloguelinux.ca -t wav - | sudo ./pi_fm_rds -freq 108 -rt "Bloguelinux.ca - Radio quebecoise" -audio -
#!/bin/bash
nvm use 0.12
export NODE_ENV=production
cd /node/zikcenter/
pm2 start zikcenter.js
cd /node/learn-memory/bin/
pm2 start learn-memory
cd /node/raspberry/
pm2 start raspberry.js
See Git docs.
Add git user to sudoers:
sudo adduser git sudo
Change git shell:
sudo chsh git # and enter the path to git-shell, usually: /usr/bin/git-shell