Skip to content

Instantly share code, notes, and snippets.

View Jacopx's full-sized avatar
๐ŸŽฏ
Focusing

Jacopo Nasi Jacopx

๐ŸŽฏ
Focusing
View GitHub Profile
@Jacopx
Jacopx / makeFolder.sh
Created March 27, 2019 13:41
Making ZIP and make folder for Politecnico di Torino SDP course
#!/bin/bash
mkdir lab$1;
mkdir lab$1/D01;
mkdir lab$1/D02;
mkdir lab$1/D03;
touch lab$1/D01/text.md;
touch lab$1/D02/text.md;
touch lab$1/D03/text.md;
touch lab$1/D01/main.c;
@Jacopx
Jacopx / RungabGPX.py
Created September 26, 2018 13:41 — forked from hutattedonmyarm/RungapGPX.py
Rungap for iOS exports GPS data as JSON file in the free version. This script converts it to GPX. Tested with python3.6. Might need to install required modules. Simply place either the metadata and data json files, or the complete zip file in the same directoryas the script and run it. Warning: Does barely any error checking
import xml.etree.cElementTree as ElementTree
import json, pytz, zipfile, unicodedata, re
from datetime import datetime
from os import listdir
from os.path import isfile, join
import glob
def slugify(value):
"""
Normalizes string, converts to lowercase, removes non-alpha characters.
@Jacopx
Jacopx / RegisterExample.txt
Last active May 16, 2018 08:49
RegisterExample
1 100000 Romano Antonio 25
2 150000 Fabrizi Aldo 22
3 200000 Verdi Giacomo 15
4 250000 Rossi Luigi 30
2018-03-11 23:51:45 - ERROR :: MainThread : Could not create backup dir '/opt/backups': [Errno 13] Permission denied: '/opt/backups'
2018-03-11 23:51:45 - INFO :: MainThread : Checking if the database upgrades are required...
2018-03-11 23:51:45 - DEBUG :: MainThread : Altering database. Updating database table sessions.
2018-03-11 23:51:46 - DEBUG :: MainThread : Altering database. Updating database table sessions.
2018-03-11 23:51:46 - DEBUG :: MainThread : Altering database. Updating database table sessions.
2018-03-11 23:51:47 - DEBUG :: MainThread : Altering database. Updating database table session_history.
2018-03-11 23:51:47 - DEBUG :: MainThread : Altering database. Updating database table session_history_media_info.
2018-03-11 23:51:48 - DEBUG :: MainThread : Altering database. Updating database table session_history_media_info.
2018-03-11 23:51:48 - DEBUG :: MainThread : Altering database. Updating database table session_history_media_info.
2018-03-11 23:51:48 - DEBUG :: MainTh

Keybase proof

I hereby claim:

  • I am jacopx on github.
  • I am jacopx (https://keybase.io/jacopx) on keybase.
  • I have a public key ASCb1GS-ytYN6U_pUu3knX8BJCAgyx7OKC9i8kEdYR6ZNQo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am jacopx on github.
* I am jacopx (https://keybase.io/jacopx) on keybase.
* I have a public key whose fingerprint is 4E01 9D2B 9932 DDF6 E299 9C72 C631 EBC0 09BA CB73
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am jacopx on github.
* I am jacopx (https://keybase.io/jacopx) on keybase.
* I have a public key ASAmQm3vFj6IRk36fiGbpef1dpp4epDSEklkAV0Wimo9QQo
To claim this, I am signing this object: