Skip to content

Instantly share code, notes, and snippets.

@ruimgoncalves
ruimgoncalves / checkInternet.sh
Last active November 18, 2021 06:13
Raspberry Pi Jessie Softether configuration
#!/bin/bash
nc -z -w30 8.8.8.8 53 # > /dev/null 2>&1
online=$?
if [ $online -ne 0 ]; then
echo "$(date) - No internet connection, restarting"
systemctl stop vpn.service
sleep 20
systemctl start vpn.service
echo "$(date) - Vpn service restarted!"

Meteor Alternatives Per Feature

This table was created in 2015 so may be quite outdated today.

Feature Meteor Solution Alternative Solutions Description
Live DB Sync [livequery][lq] ([mongo-oplog]), [ddp] RethinkDB, Redis, ShareDB, [npm:mongo-oplog], [firebase], etc. Push DB updates to client/server.
Latency Compensation, Optimistic UI [minimongo][mm] [RethinkDB][lcr], [mWater/minimongo] (fork, not ws but http, browserify) Imitate successful db query on client before it is done.
Isomorphic Code [isobuild] & isopacks browserify Write one code for server/client/mobile.
Isomorphic Packaging [isobuild], atmosphere No more separate packages for server & client. Get bower + npm + mobile.