Skip to content

Instantly share code, notes, and snippets.

View gabrielepmattia's full-sized avatar
🚀

Gabriele Proietti Mattia gabrielepmattia

🚀
View GitHub Profile
@gabrielepmattia
gabrielepmattia / server.py
Created August 18, 2019 12:35
Simple Cookie Flask Server
from flask import Flask, render_template, request, redirect, url_for, flash, make_response
import time
MYCOOKIE_KEY = "mycookie"
app = Flask(__name__)
@app.route('/')
def hello_world():

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

//
// Name: genCSinc.js
// Copyright: Microsoft 2006
// Revision: 1.0
//
// This script can be used to generate a C# .cs file that contains
// the equivalent WPD property-keys and GUIDs as defined in
// portabledevice.h
// This script is provided as-is and Microsoft does not assume any
// liability. This script may be redistributed as long as the file
@gabrielepmattia
gabrielepmattia / debug-stack-android.cpp
Created July 24, 2016 09:07
Debug android c++ by printing che callstack in android
#include <utils/CallStack.h>
namespace test {
void myfun(){
android::CallStack stack;
stack.update();
stack.log("<Stack prefix here>");
}
}
@gabrielepmattia
gabrielepmattia / remount-system.sh
Created July 24, 2016 09:04
Remount system r/w android
mount -o rw,remount,rw /system