Skip to content

Instantly share code, notes, and snippets.

View acidjazz's full-sized avatar
🎯
Focusing

kevin olson acidjazz

🎯
Focusing
View GitHub Profile
connect.staticCache() is deprecated and will be removed in 3.0
use varnish or similar reverse proxy caches.
/home/kevinolson/smog/node_modules/vein/node_modules/protosock/node_modules/engine.io/lib/engine.io.js:110
var listeners = server.listeners('request')
^
TypeError: Object #<Object> has no method 'listeners'
at Object.exports.attach (/home/kevinolson/smog/node_modules/vein/node_modules/protosock/node_modules/engine.io/lib/engine.io.js:110:26)
at new Server (/home/kevinolson/smog/node_modules/vein/node_modules/protosock/lib/Server.coffee:65:34)
at Object.ps.createServer (/home/kevinolson/smog/node_modules/vein/node_modules/protosock/lib/main.coffee:31:12)
Error: failed to connect to [node:27017]
at Server.connect.connectionPool.on.server._serverState (/opt/node/root/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:482:73)
at EventEmitter.emit (events.js:126:20)
at connection.on._self._poolState (/opt/node/root/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:96:15)
at EventEmitter.emit (events.js:99:17)
at Socket.errorHandler (/opt/node/root/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:411:10)
at Socket.EventEmitter.emit (events.js:96:17)
at Socket.connect.require.lookup.addressType (net.js:698:16)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
extends layout
block content
.container
table.users
thead
tr
th name
th password
[ubuntu@256(..home/ubuntu/w/r1/src)]: route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.242.138.1 0.0.0.0 UG 100 0 0 eth0
10.13.0.0 * 255.255.255.255 UH 0 0 0 tun0
10.13.50.10 * 255.255.255.255 UH 0 0 0 tun0
10.13.50.11 * 255.255.255.255 UH 0 0 0 tun0
10.13.60.0 * 255.255.255.0 U 0 0 0 tun0
10.242.138.0 * 255.255.254.0 U 0 0 0 eth0
72.29.167.236 10.242.138.1 255.255.255.255 UGH 0 0 0 eth0
#!/bin/sh
# Add one IP to the list of split tunnel
add_ip ()
{
export CISCO_SPLIT_INC_${CISCO_SPLIT_INC}_ADDR=$1
export CISCO_SPLIT_INC_${CISCO_SPLIT_INC}_MASK=255.255.255.255
export CISCO_SPLIT_INC_${CISCO_SPLIT_INC}_MASKLEN=32
export CISCO_SPLIT_INC=$(($CISCO_SPLIT_INC + 1))
}
if (isset($_COOKIE['fbsr_'.FB_APPID])) {
$_REQUEST['signed_request'] = $_COOKIE['fbsr_'.FB_APPID];
}
<?
if (isset($_COOKIE['fbsr_'.FB_APPID])) {
$_REQUEST['signed_request'] = $_COOKIE['fbsr_'.FB_APPID];
}
public class sms_sxsw extends DroidGap
{
private static String imei;
private static String refer;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// Set by <content src="index.html" /> in config.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
package com.rosetta.receiver;
import android.os.Bundle;
import android.util.Log;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class Receiver extends BroadcastReceiver {
@Override