Estimated time: 10 minutes
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
var os = require('os'); | |
var path = require('path'); | |
var randomDir = function() { | |
return path.join(os.tmpdir(), String(Math.floor(Math.random()*1000))); | |
}; | |
var openit = function(url) { | |
var chromeLocation = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'; | |
var args = [ |
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
apt-get install network-manager-openvpn | |
wget https://www.privateinternetaccess.com/openvpn/openvpn.zip | |
mv openvpn.zip /etc/openvpn | |
cd /etc/openvpn | |
unzip openvpn.zip | |
rm -rf openvpn.zip | |
# set up the rest in the gui | |
# gateway = us-east.privateinternetaccess.com | |
# CA.crt will be in /etc/openvpn |
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
[{"id":"roam-transit/953","type":"gtfs","name":"Roam Transit GTFS","raw":"http://data.trilliumtransit.com/gtfs/roamtransit-banff-ab-ca/roamtransit-banff-ab-ca.zip","location":{"type":"Point","properties":{"name":"Banff, AB, Canada","shortName":"Banff"},"coordinates":[-115.570769,51.178363]}},{"id":"mission-bay-tma/952","type":"gtfs","name":"Mission Bay TMA GTFS","raw":"http://data.trilliumtransit.com/gtfs/missionbay-ca-us/missionbay-ca-us.zip","location":{"type":"Point","properties":{"name":"San Francisco, CA, USA","shortName":"San Francisco"},"coordinates":[-122.419415,37.774929]}},{"id":"avalon-transit/951","type":"gtfs","name":"Avalon Transit","raw":"http://data.trilliumtransit.com/gtfs/avalon-ca-us/avalon-ca-us.zip","location":{"type":"Point","properties":{"name":"Santa Catalina Island, California 90704, USA","shortName":"Santa Catalina Island"},"coordinates":[-118.41631,33.387886]}},{"id":"blue-grass-ultra-transit-service/950","type":"gtfs","name":"Blue Grass Ultra-Transit Service GTFS","raw":"http://dat |
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
package com.wificar.component; | |
import android.util.Log; | |
import com.wificar.WificarActivity; | |
import com.wificar.util.BlowFish; | |
import com.wificar.util.ByteUtility; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import org.apache.http.util.ByteArrayBuffer; |
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
var isStorageAvailable = function (storage) { | |
if (typeof storage == 'undefined') return false; | |
try { // hack for safari incognito | |
storage.setItem("storage", ""); | |
storage.getItem("storage"); | |
storage.removeItem("storage"); | |
return true; | |
} | |
catch (err) { | |
return false; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
var redis = require('redis'); | |
var async = require('async'); | |
module.exports = loadRedis; | |
function loadRedis(opts, cb) { | |
var errored = false; | |
var client = redis.createClient(opts.redis.port, opts.redis.host); | |
client.once('error', function (e) { |
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
package com.Instax.sdk; | |
import java.io.*; | |
import java.util.*; | |
import android.graphics.Bitmap; | |
import android.graphics.Bitmap.CompressFormat; | |
import android.graphics.Color; | |
import android.util.Log; | |
import com.Instax.sdk.InstaxStatus.ErrCode; |
NewerOlder