Skip to content

Instantly share code, notes, and snippets.

View EloneSampaio's full-sized avatar

Sam EloneSampaio

View GitHub Profile
@EloneSampaio
EloneSampaio / OpenMAINT-2.3-U20.04-InstructionsManual.md
Created March 30, 2025 00:03 — forked from MrKelpy/OpenMAINT-2.3-U20.04-InstructionsManual.md
Straightforward and Illustrated Instructions Manual for OpenMAINT - "What you need to know"

Introduction

⠀⠀⠀⠀This is a complementary guide to the OpenMAINT Installation Guide, with the aim of documenting the usage openMAINT in a simple manner, so that I can help the people that end up working with openMAINT figure out how things work, even after I finish my internship. (Yes, dear reader, this isn't entirely selfless).  
⠀⠀⠀⠀Anyways, openMAINT can be quite hard and confusing to understand at first, but I assure you that it really isn't. There are a lot of things in the main screen which might make your head spin, but if you just relax, read this manual, and abstract yourself from what isn't exactly needed, everything will be clearer.

Index

  1. Previous Knowledge
  2. User Menus Overview
@EloneSampaio
EloneSampaio / AREADME.md
Created October 23, 2024 00:46 — forked from rjurney/AREADME.md
Excellent name similarity results between sentence encoders 'sentence-transformers/all-MiniLM-L12-v2' and 'paraphrase-multilingual-MiniLM-L12-v2'

All vs Paraphrase Mini-LM Model Comparisons

This experiment compares multiple methods of sentence encoding on people's names - including across character sets - using the following models:

Notes

Compared to the names, JSON tends to compress scores together owing to overlapping text in formatting: field names, quotes and brackets. You can see in the name pairs name length is a source of error. The dates behave well in the JSON records.

@EloneSampaio
EloneSampaio / churn-keras-model.ipynb
Created June 10, 2022 18:55 — forked from ocoyawale/churn-keras-model.ipynb
How to build a simple Keras model with Tensorflow backend
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@EloneSampaio
EloneSampaio / metabase-setup.md
Created October 12, 2021 17:05 — forked from r0lodex/metabase-setup.md
Metabase Setup

Installing and Setting Up Metabase with Postgres

This guide is written for installation of Metabase on Ubuntu 18.04. Instead of using H2 as the application database, we will be using Postgres. You can opt to use MySQL as well. Please follow the steps below:

  • Update and install Java with proper configuration
sudo apt-get update
@EloneSampaio
EloneSampaio / openssl_commands.md
Created July 29, 2021 15:15 — forked from Hakky54/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@EloneSampaio
EloneSampaio / lamp.sh
Created June 3, 2020 19:31 — forked from UbuntuEvangelist/Completely Uninstall LAMP Stack Ubuntu 24.04 LTS
Completely Uninstall LAMP Ubuntu 18.04 LTS
#!/bin/bash
# This will remove Apache
sudo service apache2 stop
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
sudo apt remove apache2.*
sudo apt-get autoremove
whereis apache2
sudo rm -rf /etc/apache2
@EloneSampaio
EloneSampaio / Octave.md
Created August 31, 2018 21:02 — forked from mracos/Octave.md
Matemática simbólica com octave

Matemática simbólica com Octave.

  • Aquecimento
  • [Introdução] (#introdução)
  • [Exemplos] (#exemplos)
    • [Derivadas] (#derivadas)
      • [Gradiente] (#gradiente)
    • [Integrais] (#integrais)
    • [Máximos e Mínimos] (#máximos e mínimos)
@EloneSampaio
EloneSampaio / wkhtmltopdf.sh
Created August 26, 2018 20:59 — forked from faniska/wkhtmltopdf.sh
Install wkhtmltopdf with patched QT on Ubuntu Linux
# Uncomment the next line if you have installed wkhtmltopdf
# sudo apt remove wkhtmltopdf
cd ~
# Select an appropriate link for your system (32 or 64 bit) from the page https://wkhtmltopdf.org/downloads.html and past to the next line
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xvf wkhtmltox*.tar.xz
sudo mv wkhtmltox/bin/wkhtmlto* /usr/bin
sudo apt-get install -y openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig
#!/bin/bash
sudo adduser --system --quiet --shell=/bin/bash --home=/opt/odoo --gecos 'odoo' --group odoo
sudo mkdir /etc/odoo && mkdir /var/log/odoo/
sudo apt-get update && apt-get upgrade -y && apt-get install postgresql postgresql-server-dev-9.3 build-essential python-imaging python-lxml python-ldap python-dev libldap2-dev libsasl2-dev npm nodejs git python-setuptools libxml2-dev libxslt1-dev libjpeg-dev python-pip gdebi -y
git clone --depth=1 --branch=8.0 https://github.com/odoo/odoo.git /opt/odoo/odoo
sudo chown odoo:odoo /opt/odoo/ -R && sudo chown odoo:odoo /var/log/odoo/ -R && cd /opt/odoo/odoo && sudo pip install -r requirements.txt
sudo npm install -g less less-plugin-clean-css -y && sudo ln -s /usr/bin/nodejs /usr/bin/node
cd /tmp && wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb && sudo gdebi -n wkhtmltox-0.12.2.1_linux-trusty-amd64.deb && rm wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin/ && sudo ln -s /usr
<?php
namespace App\Repository;
use App\Entity\Cargo;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Symfony\Bridge\Doctrine\RegistryInterface;
class CargoRepository extends ServiceEntityRepository
{
public function __construct(RegistryInterface $registry)
{
parent::__construct($registry, Cargo::class);