Skip to content

Instantly share code, notes, and snippets.

View flozz's full-sized avatar

Fabien LOISON flozz

View GitHub Profile
@flozz
flozz / font-convertor.py
Created May 12, 2017 07:28
Converts fonts using FontForge
#!/usr/bin/env python
## To allow this script to work, you must install FontForge with its Python
## extention. On Debian / Ubuntu, this can be done with the following command:
##
## apt install fontforge python-fontforge
## usage: font-convertor.py [-h] input_file output_file
##
## Converts fonts using FontForge
@flozz
flozz / obsidian-file-checker-php.php
Created January 20, 2017 09:59
Checks that an Obsidian File is coherent (based on header and file size)
<?php
function check_obsidian_project($bytes) {
$HEADERS_LENGTH = 51;
$MIN_SECTION_SIZE = 2;
if (strlen($bytes) <= $HEADERS_LENGTH) {
return false;
}