Skip to content

Instantly share code, notes, and snippets.

@abidibo
abidibo / client.patch
Created April 6, 2016 13:50
dbgp 1.1 client eval patch
From 6dae68f6e58c5e71059fec226efea4447e7aaec0 Mon Sep 17 00:00:00 2001
From: abidibo <abidibo@gmail.com>
Date: Wed, 6 Apr 2016 14:38:21 +0200
Subject: [PATCH] vim vdebug client eval patch
---
client.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/client.py b/client.py
@abidibo
abidibo / README.md
Last active September 15, 2016 08:57
DRF + React js

React.js application development using DRF as REST API

Goal:

  • develop a REST API with django and django-rest-framework
  • develop a react.js frontend application served by django to consume the API
  • react code as STATIC files
  • npm to manage frontend dependencies
  • use a bundler to put all js code together and feed the browser
  • use ES6 specifications (translated into ES5 compilant code by babel)
@abidibo
abidibo / greasemonkey_quora.js
Created February 25, 2016 09:51
greasemonkey quora script
// ==UserScript==
// @name quora
// @namespace quora
// @description quora, deletes topics layer
// @include http://www.quora.com*
// @include https://www.quora.com*
// @version 1
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @grant none
// ==/UserScript==
@abidibo
abidibo / README.md
Created February 24, 2016 12:12
metasploit
@abidibo
abidibo / hak5.md
Last active February 17, 2016 12:48
hak5

Stuff

##Shell

Copy and paste command directly in favourite text editor

ctrl-x ctrl-e

while in terminal

@abidibo
abidibo / MainActivity.java
Created January 18, 2016 13:53
Fetch json from main activity
package org.torinometeo.tmforecast;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.EditText;
@abidibo
abidibo / track-subclasses.py
Created January 15, 2016 11:52
Track Subclasses in Python
class PluginMount(type):
def __init__(cls, name, bases, attrs):
print cls
if not hasattr(cls, 'plugins'):
cls.plugins = []
else:
print cls.plugins
cls.plugins.append(cls)
print cls.plugins
"use strict";
var numberStringToText;
(function() {
var dict = {
'0': ' ',
'00': '0',
'1': '1',
'11': ',',
'111': '.',
'1111': ':',
@abidibo
abidibo / res1
Created April 30, 2015 15:36
Webcomponents, mica pizza e fichi - res 1
<slideshow>
<img src="//lorempixel.com/670/401" alt="img-1" />
<img src="//lorempixel.com/670/400" alt="img-2" />
<img src="//lorempixel.com/670/399" alt="img-3" />
</slideshow>
@abidibo
abidibo / lightscribe
Last active August 29, 2015 14:14
lightscribe ubuntu 14.04
(http://reubuntu.blogspot.it/2014/02/lightscribe-e-una-tecnologia-di.html)
(http://stackoverflow.com/questions/23182765/how-to-install-ia32-libs-in-ubuntu-14-04-lts-trusty-tahr)
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
http://download.lightscribe.com/ls/lightscribe-1.18.8.1-linux-2.6-intel.deb
http://download.lightscribe.com/ls/lightscribeApplications-1.18.6.1-linux-2.6-intel.deb
https://www.lacie.com/download/drivers/LaCie%20LightScribe%20Labeler%201.0%20Linux.rpm (https://www.lacie.com/us/support/drivers/driver.htm?id=10061)