Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using CRBM2.Domain.Core;
using System.Linq;
using Framework.Serialization;
using CRBM2.Domain.Prepaid;
using System.Runtime.Serialization;
namespace CRBM2.Domain.Prepaid
{
[Serializable]
@ProjectMoon
ProjectMoon / errorhandling.js
Created October 10, 2012 13:12
errorhandling
//A third way.
//In a business logic module. Note: replace "internal" methods with your own logic (redis, mongodb, etc).
function getBlogByGuid(id, callback) {
internalLoad(id, function(err, post) {
if (err) return callback(err);
});
}
function deleteDocumentById(id, callback) {
internalDelete(id, function(err) {
@ProjectMoon
ProjectMoon / log
Created September 22, 2019 11:50
AFWall+ Tor over cellular
==========
IPv4 Rules
==========
Chain INPUT (policy ACCEPT 619 packets, 95432 bytes)
pkts bytes target prot opt in out source destination
22464 26M nm_mdmprxy_doze_mode_skip all -- * * 0.0.0.0/0 0.0.0.0/0
22551 26M bw_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
22551 26M fw_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
@ProjectMoon
ProjectMoon / rules
Created September 22, 2019 19:46
AFWall+ Tor Over Cellular 2
==========
IPv4 Rules
==========
Chain INPUT (policy ACCEPT 626 packets, 304K bytes)
pkts bytes target prot opt in out source destination
8061 1913K nm_mdmprxy_doze_mode_skip all -- * * 0.0.0.0/0 0.0.0.0/0
26085 13M bw_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
26085 13M fw_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
@ProjectMoon
ProjectMoon / log
Last active September 23, 2019 12:41
AFWall Tor issue 3
==========
IPv4 Rules
==========
Chain INPUT (policy ACCEPT 18 packets, 1464 bytes)
pkts bytes target prot opt in out source destination
7362 2983K nm_mdmprxy_doze_mode_skip all -- * * 0.0.0.0/0 0.0.0.0/0
7447 3012K bw_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
7447 3012K fw_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)