Skip to content

Instantly share code, notes, and snippets.

@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)
@ProjectMoon
ProjectMoon / README.md
Last active January 6, 2023 17:31
Patch that disables Subsonic license checking and validation

Update 2020 Edition: Use something like Airsonic instead. Subsonic's code is closed source at this point, and thus this patch is useless, unless you are using a 9 year old verison of Subsonic for some reason.


A patch to disable the licensing functionality in Subsonic, a GPL-licensed media streaming server/web interface. Use of the mobile apps requires you to get a license after 30 days of trial. You obtain a license via donation.

Except that's not a donation. So, here's a patch to fix that. Support the Subsonic project with a donation that's actually a donation. The program is developed and maintained very well.

Steps to victory