Chrome Flags
This information source from the following url:
http://peter.sh/experiments/chromium-command-line-switches/
Simulate Capture with a Fake Stream (test video and audio signal)
--use-fake-device-for-media-stream
var quickconnect = require('rtc-quickconnect'); | |
var randomName = require('random-name'); | |
var opts = { | |
room: 'quickconnect-demo-chat-room', | |
iceServers: require('freeice')() | |
}; | |
quickconnect('http://switchboard.rtc.io', opts) | |
.createDataChannel('chat') | |
.on('channel:opened:chat', function(id, dc) { |
This information source from the following url:
http://peter.sh/experiments/chromium-command-line-switches/
--use-fake-device-for-media-stream
Run the interactive command prompt on a particular container:
docker exec -it $(docker ps --filter "name=mysql*" --format "{{.ID}}") /bin/bash
Remove ALL registered containers:
docker container ls -a --format="{{.ID}}" | xargs docker container rm
The following is an "oh noes, where's my Internet" guide to surviving as a coder with no or limited Internet. Primarily the guide is focused on those who will be doing JS development (and using npm as a package manager) but some of the advice is useful for other environments also.
Tooling in this steps require that you have git installed, and use github for your repositories.
One thing I really like to do when I get a bit of time offline, is clean up an old repository that I once thought was useful. I rarely know about what project this might be in advance. As a result, I like to clone all the things from my personal github account.
To do this I recommend using multirepo
, which is best installed (at the moment) like so:
Emoji guide:
This is gist. | |
There are many like it, but this one is mine. | |
It is my life. | |
I must master it as I must master my life. | |
Without me gist is useless. | |
Without gist, I am useless. |
NOTE: This guide is currently incomplete.
Install general dependencies:
sudo apt-get install git build-essential cmake pkg-config libboost-dev libboost-test-dev \
libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config \
libssl-dev libsoup2.4-dev libboost-system-dev libboost-filesystem-dev \
libogg-dev libtheora-dev libasound2-dev libvorbis-dev libpango1.0-dev \
libvisual-0.4-dev libffi-dev libgmp-dev
An nginx configuration that can be added to your /etc/nginx/sites-enabled
directory to proxy from the local nginx server through to other servers running on other ports. Primarily this is useful when you want to view a site using HTTPS but don't want to associate the certificate with that local server.
The following proxys work:
http://localhost/ => http://localhost:9966/
https://localhost/ => http://localhost:9966/
https://localhost/<port>/ => http://localhost:<port>/
https://localhost/<port>/ => http://localhost:<port>/
var socket = io.connect(server), | |
reSock = /^sock\:.*$/i; | |
socket.on('connect', function() { | |
eve.on('*', function() { | |
// get the last argument | |
var lastArg = arguments.length ? arguments[arguments.length - 1] : null; | |
// if the last arg is a socket connection, then don't send it to the serve | |
// because we got it from the server... |