Skip to content

Instantly share code, notes, and snippets.

View federico-terzi's full-sized avatar

Federico Terzi federico-terzi

View GitHub Profile
@federico-terzi
federico-terzi / _prompt.txt
Last active May 23, 2023 20:50
Converting a Python script into Node automatically with ChatGPT
Convert this Python code into Typescript
```
Insert the python file here
```
@federico-terzi
federico-terzi / how-to-solve-signer-sign-failed-error.md
Created September 18, 2022 16:19
Fixing "Error: SignerSign() failed." error when using SignTool

The other day I encountered the following error while trying to sign an executable with signtool:

SignTool Error: An unexpected internal error has occurred.
Error information: "Error: SignerSign() failed." (-2146869243/0x80096005)

It turned out to be due to a missing flag in the signtool.exe command, as explained in this article.

@federico-terzi
federico-terzi / how-to-fix-trusted-certificate-error.md
Created September 18, 2022 16:15
Fixing "PEM routines:get_name:no start line:crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE" error

The other day I stumbled upon the follwing error while trying to load a certificate with openssl

unable to load certificate
34359836736:error:0909006C:PEM routines:get_name:no start line:crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE

After a bit of investigation, it turned out to be due to a format mismatch. Luckily, the solution was to convert the certificate by following these steps

@federico-terzi
federico-terzi / BCP47-locales.md
Created March 19, 2022 17:15 — forked from typpo/BCP47-locales.md
BCP 47 language tags
Language Tag Language Region Description
ar-SA Arabic Saudi Arabia Arabic (Saudi Arabia)
bn-BD Bangla Bangladesh Bangla (Bangladesh)
bn-IN Bangla India Bangla (India)
cs-CZ Czech Czech Republic Czech (Czech Republic)
da-DK Danish Denmark Danish (Denmark)
de-AT German Austria Austrian German
de-CH German Switzerland "Swiss" German
de-DE German Germany
@federico-terzi
federico-terzi / gesturekeyboard.py
Created April 11, 2018 17:23
Gesture Keyboard, Python Code
from __future__ import print_function
from pygarl.base import CallbackManager
from pygarl.classifiers import SVMClassifier
from pygarl.mocks import VerboseMiddleware
from pygarl.data_readers import SerialDataReader
from pygarl.predictors import ClassifierPredictor
from pygarl.sample_managers import DiscreteSampleManager
MODEL_PATH="C:\\Users\\Federico\\model.svm"
PORT="COM13"