npm install --global --production windows-build-tools
#!/bin/sh | |
apt-get update | |
apt-get install apt-transport-https ca-certificates | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list | |
apt-get update | |
apt-get purge lxc-docker | |
apt-get install linux-image-extra-$(uname -r) | |
apt-get install apparmor | |
apt-get install docker-engine |
If you need to use a docker machine or any other server listening on other port than 80, you can use this snippet to authenticate your domain with Let's encrypt.
- Add the content of
site.conf
to your nginx configuration - Create the folder
/var/www/letsencrypt
- Run the
certbot-auto
using the webroot plugin--webroot -w /var/www/letsencrypt/
Click File
then Settings
and search for terminal
.
Change the Shell path to C:\Users\YOUR-USERNAME\.babun\cygwin\bin\bash.exe
if you're using Babun.
Cygwin users should use C:\cygwin\bin\bash.exe
or similar, depending on where you've it installed.
Click Ok, open a new terminal (tab) and try running ls -l
. Tada!
- Clone repository:
git clone https://github.com/giordanocardillo/meteor-up.git && cd meteor-up
- Run
npm install
- Run
npm run prepublish
- Run
npm install -g
So, I guess I'm not the only one that need some way of easily toggling code in and out of the code.
This trick below can be used to toggle between two sets of code, with one symbol in the code with no additional short-keys to learn, and no tool dependencies!
//* /*
someCode(); someCode();
/*/ /*/
someOtherCode(); someOtherCode();
//*/ //*/
#!/bin/sh | |
cd /home | |
mkdir janus-sources | |
cd janus-sources | |
apt-get update | |
apt-get install -y curl git libmicrohttpd-dev libjansson-dev libnice-dev libssl-dev libsofia-sip-ua-dev libglib2.0-dev libopus-dev libogg-dev libcurl4-openssl-dev pkg-config gengetopt libtool automake cmake | |
curl -O -L https://github.com/cisco/libsrtp/archive/v2.0.0.tar.gz | |
tar xfv v2.0.0.tar.gz | |
cd libsrtp-2.0.0 | |
./configure --prefix=/usr --enable-openssl |
const path = require('path'); | |
const webpack = require('webpack'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
module.exports = { | |
context: path.resolve(__dirname, 'client'), | |
entry: './entry.js', | |
output: { | |
filename: 'bundle.js', | |
path: path.resolve(__dirname, 'public/javascripts'), |
Put in your .git/config
[remote "origin"]
...
url = ssh://git@gitolite-as-alice/my-repo
...
Even if the user and host are the same, they can still be distinguished in ~/.ssh/config
. For example, if your configuration looks like this: