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 / 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,
# change version[version]
sudo apt update && sudo apt upgrade -y
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] focal stable" -y
sudo apt update
sudo apt install docker-ce -y
sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
benoitpetit /
Created April 23, 2023 13:31
post install script for fedora
# 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 /
Last active April 28, 2023 20:13
golang installation script for fedora
import os
# Request the version to be installed
print("check here =>")
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"sudo tar -C /usr/local -xzf go{version}.linux-amd64.tar.gz")
benoitpetit /
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 ="%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 / docker-compose.yml
Last active May 20, 2024 13:32
complete Gitlab installation and a runner with docker
version: '4.5'
image: 'gitlab/gitlab-ce:latest'
restart: always
container_name: gitlab-web
hostname: ''
benoitpetit / docker-compose.yml
Last active July 20, 2020 08:58
docker-compose wordpress
version: '3'
# Database
image: mysql:latest
- db_data:/var/lib/mysql
restart: always
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