Skip to content

Instantly share code, notes, and snippets.

View erfelipe's full-sized avatar

Felipe erfelipe

View GitHub Profile
@erfelipe
erfelipe / gitLFS.txt
Created January 5, 2022 20:26
Limpar git LFS
https://github.com/newren/git-filter-repo/blob/main/INSTALL.md
https://docs.gitlab.com/ee/user/project/repository/reducing_the_repo_size_using_git.html#purge-files-from-repository-history
git filter-repo --strip-blobs-bigger-than 10M
@erfelipe
erfelipe / gitpurge.txt
Created December 24, 2021 20:10
git purge
https://docs.gitlab.com/ee/user/project/repository/reducing_the_repo_size_using_git.html#purge-files-from-repository-history
@erfelipe
erfelipe / BookmarkOWL.txt
Created November 8, 2020 15:07
Material para DEV em OWL #OWL #API
https://github.com/owlcs/owlapi/wiki/Documentation
https://github.com/owlcs/owlapi/blob/version4/contract/src/test/java/org/semanticweb/owlapi/examples/Examples.java
- how to check if a statement if a valid OWL axiom
https://github.com/owlcs/owlapi/issues/507
- Convert String in manchester syntax to OWLAxiom object using owlapi 3 in Java
https://stackoverflow.com/questions/21005908/convert-string-in-manchester-syntax-to-owlaxiom-object-using-owlapi-3-in-java
- DL Queries with a real reasoner
https://github.com/owlcs/owlapi/wiki/DL-Queries-with-a-real-reasoner
- Problem saving ontologies in Turtle
https://github.com/owlcs/owlapi/issues/719
@erfelipe
erfelipe / ohmyzsh.txt
Created September 3, 2020 17:29
Customize ZSH prompt #zsh
https://github.com/ohmyzsh/ohmyzsh/wiki/External-themes
@erfelipe
erfelipe / config.elasticsearch_kibana.txt
Created May 19, 2020 19:10
Download e Start do Elasticsearch e Kibana #elasticsearch #kibana
#elasticsearch
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.7.0
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.7.0
#kibana
docker pull docker.elastic.co/kibana/kibana:7.7.0
docker run --link YOUR_ELASTICSEARCH_CONTAINER_NAME_OR_ID:elasticsearch -p 5601:5601 docker.elastic.co/kibana/kibana:7.7.0
@erfelipe
erfelipe / PythonExtensions.txt
Created January 30, 2020 16:27
Python Extensions #vsStudio #Extensions #Plugins
Extenções importantes para VS Studio e Python:
(Bruno Rocha)
- Python Preview : Mostra em uma stack de memoria, como o algoritmo esta montado
- AutoDocstring : Tres aspas e um template para documentar
- Pyright : Ajuda em tempo de dev, reconhecer a tipagem de parametros das funcoes
- Indent-Rainbow : Pinta as identações do código e ajudam a você encontrar em que nível vc está trabalhando @Danilo Gansauskas
@erfelipe
erfelipe / snomed.exemplo.py
Created September 13, 2019 00:20
snomed com #owlready2 [exemplo owlready]
# python3.7 -m venv venv
# source venv/bin/activate
print("##### inicio #####")
import tratamento
from owlready2 import *
from owlready2.pymedtermino2 import *
from owlready2.pymedtermino2.umls import import_umls
@erfelipe
erfelipe / python.connect.bonsai.py
Created February 28, 2019 23:29
Elasticsearch library Connecting to Bonsai
# https://docs.bonsai.io/article/102-python
import os, base64, re, logging
from elasticsearch import Elasticsearch
# Log transport details (optional):
logging.basicConfig(level=logging.INFO)
# Parse the auth and host from env:
bonsai = os.environ['BONSAI_URL']
auth = re.search('https\:\/\/(.*)\@', bonsai).group(1).split(':')
@erfelipe
erfelipe / sha-hash.java
Created January 29, 2019 17:10
Java SHA-256 #hash
//Exemplo1:
MessageDigest digest = MessageDigest.getInstance("SHA-256");
byte[] hash = digest.digest(text.getBytes(StandardCharsets.UTF_8));
//Exemplo2:
I think that the easiest solution is to use Apache Common Codec:
String sha256hex = org.apache.commons.codec.digest.DigestUtils.sha256Hex(stringText);