Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am vaioco on github.
  • I am vaioco (https://keybase.io/vaioco) on keybase.
  • I have a public key ASDVhShvtyuVqiqRJfrIqAV6v7dUDJAH_wXD3CyL8k_qFgo

To claim this, I am signing this object:

class ReplacementsTest : public MatchFinder::MatchCallback {
using reps_t = std::map<std::string, Replacements>;
public:
ReplacementsTest(reps_t *reps) : Replace(reps) {}
virtual void run(const MatchFinder::MatchResult &Result) {
clang::ASTContext *Context = Result.Context;
const clang::FunctionDecl *FS = Result.Nodes.getNodeAs<clang::FunctionDecl>("funcdecl");
if (!FS || !Context->getSourceManager().isWrittenInMainFile(FS->getLocStart()))
@vaioco
vaioco / web-servers.md
Created January 27, 2016 18:35 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@vaioco
vaioco / DexGuardStringDecoder.java
Created January 8, 2016 21:18 — forked from AKosterin/DexGuardStringDecoder.java
JEB Plugin for decrypt DexGuard encrypted Strings.
import jeb.api.IScript;
import jeb.api.JebInstance;
import jeb.api.ast.*;
import jeb.api.ast.Class;
import jeb.api.dex.Dex;
import jeb.api.dex.DexCodeItem;
import jeb.api.dex.DexFieldData;
import jeb.api.dex.DexMethod;
import jeb.api.ui.JavaView;
import jeb.api.ui.View;