Skip to content

Instantly share code, notes, and snippets.

View tpayet's full-sized avatar
🐢
I just wanted the turtle as a badge

Thomas Payet tpayet

🐢
I just wanted the turtle as a badge
View GitHub Profile
@tpayet
tpayet / gist:5a775d3714833fa35eca293f1c36a3b3
Created June 24, 2024 07:49
Meilisearch 1.4.2 on CentOS 7.4

To build and run Meilisearch version 1.4.2 on CentOS 7.4, you’ll need to follow these steps:

1. Install Required Dependencies

First, make sure your system is up-to-date and install the necessary dependencies:

sudo yum update
sud  yum install -y gcc gcc-c++ make cmake openssl-devel
@tpayet
tpayet / pre-commit
Last active July 25, 2017 13:23
Rubocop pre-commit hook
#!/usr/bin/env ruby
# Copy/pasta from https://gist.github.com/andrewpage/b281314934b9c15b5073 without the custome str methods
# Grab a list of staged changed files
changed_files = `git diff --name-only HEAD`.split("\n")
should_fail, broken_files = false, []
changed_files.each do |file|