Skip to content

Instantly share code, notes, and snippets.

View gipi's full-sized avatar
😎
code for food

Gianluca Pacchiella gipi

😎
code for food
View GitHub Profile
@gipi
gipi / matrix.pdf
Last active April 14, 2022 07:34
Algorithmic thinking - Living quality diagram
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gipi
gipi / pec.py
Last active July 18, 2019 11:06
Crea dei CSV con l'elenco degli indirizzi PEC dei vari comuni italiani. Dalla pagina principale recupera l'URL delle singole regioni da cui crea il corrispondente CSV.
import re
from pathlib import Path
import os
import sys
import requests
import logging
logging.basicConfig()
@gipi
gipi / README.md
Last active July 25, 2018 15:36
#kernel
r2 -V
2.2.0-252-g89c309a90 r2
2.2.0-252-g89c309a90 r_anal
2.2.0-252-g89c309a90 r_lib
2.2.0-252-g89c309a90 r_egg
2.2.0-252-g89c309a90 r_asm
2.2.0-252-g89c309a90 r_bin
2.2.0-252-g89c309a90 r_cons
2.2.0-252-g89c309a90 r_flag
2.2.0-252-g89c309a90 r_core
@gipi
gipi / README.md
Last active July 13, 2017 13:21
#3d printing #anetA8

The 3d printer is a Prusa i3, a RepRap type printer with a Marlin firmware.

Using the ICSP programmer I obtain an error at 49%

$ avrdude -c buspirate -p m2560 -P /dev/ttyUSB0  -F

Attempting to initiate BusPirate binary mode...
avrdude: Paged flash write enabled.
avrdude: AVR device initialized and ready to accept instructions
@gipi
gipi / poc.js
Created February 15, 2017 11:33
#poc #django #js #vulnerability
/*
* POC for XSS vulnerability
*
* Simply parse the change form for the admin user and change the email.
* The attacker needs, after this has run successful, to reset the password using
* the email indicated in the script.
*/
url = '/auth/user/1/change/'
url_reset_passwd = '/password_change/'
evil_email = 'dummy@example.com'
@gipi
gipi / README.md
Last active June 13, 2017 16:08
#ChipWhisperer

ChipWhisperer

Wiki | Forum | GIT

Installing ChipWhisperer software

These are the dependencies on a Debian system

@gipi
gipi / exercise.tex
Created January 5, 2017 14:05
#physics
\parindent=0pt
L'esercizio parla di due sezioni di $50L$ ciascuna separate tra loro
da una parete isolante. Nel seguito servir\`a conoscere il numero di moli
di gas contenute nelle differenti sezioni: le condizioni iniziali pari
ad $1$atm a $0$C fanno si che ci sia una mole ogni $22.4$ litri; da
ci\`o \`e facile calcolare il numero di moli come
$$
n = {50\hbox{L}\over22.4\hbox{L/mol}}=2.23\hbox{mol}
$$
siccome la parete non \`e permeabile, il numero di moli per sezione rimane