Skip to content

Instantly share code, notes, and snippets.

View benoitpetit's full-sized avatar
I may be slow to respond.

Beπ ✨ benoitpetit

I may be slow to respond.
View GitHub Profile
@benoitpetit
benoitpetit / retool_workflow_gpt-4_api.json
Last active November 21, 2023 23:13
retool workflow gpt4 api
{
"name": "retool_workflow_gpt-4_api",
"description": null,
"organizationId": 547919,
"isEnabled": false,
"crontab": null,
"timezone": "Europe/Paris",
"blockData": [
{
"top": -208,
#!/bin/bash
# change version https://github.com/docker/compose/releases/download/[version]
sudo apt update && sudo apt upgrade -y
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" -y
sudo apt update
sudo apt install docker-ce -y
sudo curl -L "https://github.com/docker/compose/releases/download/v2.17.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
@benoitpetit
benoitpetit / post_install_fedora.sh
Created April 23, 2023 13:31
post install script for fedora
#!/bin/bash
# DNF setting
echo "fastestmirror=true" >> /etc/dnf/dnf.conf
echo "max_parallel_downloads=10" >> /etc/dnf/dnf.conf
echo "countme=false" >> /etc/dnf/dnf.conf
# Clean Cache DNF
dnf clean all
dnf upgrade -y
@benoitpetit
benoitpetit / install_golang_fedora.py
Last active April 28, 2023 20:13
golang installation script for fedora
import os
# Request the version to be installed
print("check here => https://go.dev/dl/")
version = input("Which version of Golang do you want to install? ")
# Downloading and installing Golang
os.system(f"sudo dnf install -y wget")
os.system(f"wget https://golang.org/dl/go{version}.linux-amd64.tar.gz")
os.system(f"sudo tar -C /usr/local -xzf go{version}.linux-amd64.tar.gz")
@benoitpetit
benoitpetit / pocketbase-update.py
Created April 22, 2023 01:42
update pocketbase service
import os
import requests
import datetime
# Get current date in the format DD_MM_YY
date = datetime.datetime.now().strftime("%d_%m_%y_%H-%M-%S")
# Get the desired version of PocketBase from the user
version = input("Enter the version of PocketBase you want to install: ")
@benoitpetit
benoitpetit / docker-compose.yml
Last active May 20, 2024 13:32
complete Gitlab installation and a runner with docker
version: '4.5'
services:
# GITLAB
gitlab-web:
image: 'gitlab/gitlab-ce:latest'
restart: always
container_name: gitlab-web
hostname: '192.168.0.14'
environment:
@benoitpetit
benoitpetit / docker-compose.yml
Last active July 20, 2020 08:58
docker-compose wordpress
version: '3'
services:
# Database
db:
image: mysql:latest
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
@benoitpetit
benoitpetit / cmder_context_disable.reg
Created December 21, 2019 11:51
Adding Cmder to the Windows Explorer Context Menu
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\cmder]