Skip to content

Instantly share code, notes, and snippets.

View corentinbettiol's full-sized avatar

Corentin Bettiol corentinbettiol

View GitHub Profile
@corentinbettiol
corentinbettiol / zsh-agnoster.md
Last active January 22, 2022 23:42
Install agnoster theme in zsh in docker from vscode console.
  1. Install the fonts on your computer:

    git clone https://github.com/powerline/fonts.git
    cd fonts
    ./install.sh
    cd .. && rm -rf fonts
  2. Then, open the settings (ctrl+p > "settings json" > enter) in vscode.

@corentinbettiol
corentinbettiol / README.md
Last active January 12, 2024 15:47
Tiny js code that will simulate a 3D view of your elements, like firefox used to do.
@corentinbettiol
corentinbettiol / bouchons.py
Last active October 29, 2020 13:55
Get traffic jams numbers from Ile de France in real time as notifications!
#!/usr/bin/python3
from bs4 import BeautifulSoup
from requests import get
from os import system
from time import sleep
km = "0"
while 1:

List of commands here.

poetry lock && poetry install

Update lock & install dependencies.

poetry show --tree

Output a nice tree of dependencies.

poetry install --remove-untracked

Remove dependencies that are no longer in lock file.

@corentinbettiol
corentinbettiol / install.sh
Created December 13, 2020 22:06
Instal NBTExplorer on linux with wine and mono
sudo apt install mono-complete
wget https://dl.winehq.org/wine/wine-mono/5.1.1/wine-mono-5.1.1-x86.msi
WINEPREFIX=NBTExplorer wine msiexec /i wine-mono-5.1.1-x86.msi
wget https://github.com/jaquadro/NBTExplorer/releases/download/v2.8.0-win/NBTExplorer-2.8.0.msi
WINEPREFIX=NBTExplorer wine msiexec /i NBTExplorer-2.8.0.msi
WINEPREFIX=NBTExplorer wine NBTExplorer/drive_c/Program\ Files\ \(x86\)/NBTExplorer/NBTExplorer.exe
@corentinbettiol
corentinbettiol / create-testrepo.sh
Last active May 16, 2022 15:01
This tiny script will init a new git repo in a folder, and then will "clone" this repo in another folder, allowing us to test things with git-related commands in a temporary folder.
mkdir testrepo && cd testrepo # create folder
mkdir git && cd git && git init --bare # create new git repo in testrepo/git folder
cd .. && git clone git test # will clone git repo from testrepo/git folder to testrepo/test folder
cd test
@corentinbettiol
corentinbettiol / create_djangocms_plugin.md
Last active August 16, 2021 09:41
Easy creation & installation of a new djangocms-plugin!

It's a doc for easily creating a new djangocms plugin.

step 1: create a new dev djangocms site

Just follow steps here.

step 2: create a new folder or download your newly created repo for your django-cms plugin

mkdir ~/djangocms-plugin
@corentinbettiol
corentinbettiol / other_vhosts_access.rc
Created March 23, 2021 21:09
goaccess config file for reading apache's other_vhosts_access.log
time_format %H:%M:%S %Z
date_format %d/%b/%Y
log_format %h %l %u [%d:%t] "%r" %>s %O "%{Referer}i" "%{User-Agent}i"
#log_format %v %h - - [%d:%t] "%r" %s %b "%R" "%u"
@corentinbettiol
corentinbettiol / access.rc
Created March 23, 2021 21:10
goaccess config file for reading apache's access.log
time_format %H:%M:%S %Z
date_format %d/%b/%Y
log_format %h - - [%d:%t] "%r" %s %b "%R" "%u"
@corentinbettiol
corentinbettiol / wacom.sh
Last active June 4, 2023 18:13
Utility used to select the screen to link to all devices of wacom bamboo tablets connected to the computer.
#!/bin/sh
# Author: Corentin Bettiol
# Contact: corentin [at] 244466666 [dot] xyz
# Version: v040623
# License: WTFPL2 (https://wtfpl2.com/)
# Source: https://gist.github.com/corentinbettiol/de6cbeb7a9286d06339b4a80d64a7876
echo "Utility used to select the screen to link to all devices of wacom bamboo tablets connected to the computer."