Skip to content

Instantly share code, notes, and snippets.

View mathben's full-sized avatar
🐢
Coding bot

Mathieu Benoit mathben

🐢
Coding bot
View GitHub Profile
@mathben
mathben / gist:3d13c5cc74f3904618c955cab9bb99ee
Created January 17, 2022 01:21
starship configuration ~/.config/starship.toml
[time]
disabled = false
[cmd_duration]
min_time = 500
[python]
disabled = true
@mathben
mathben / gist:7e5f31a9f17b798d66aaaed11b2cf0a0
Created March 4, 2019 04:46
Taiga installation debian 9.8
# error about postgresql and utf8
# http://siripong-computer-tips.blogspot.com/2011/11/postgres-createdb-invalid-locale-name.html
# Installation guide : http://taigaio.github.io/taiga-doc/dist/setup-production.html
@mathben
mathben / installation_debian_server.txt
Last active March 11, 2019 03:41
Installation server debian machine
apt install htop iotop vim sudo git python3 python3-pip postfix mainutils
adduser user
usermod -aG sudo user
su user
# Guide : https://www.ssh.com/ssh/keygen
ssh-keygen -t ed25519
@mathben
mathben / Mediawiki installation server
Last active February 14, 2021 16:45
Help script to install mediawiki server
# Guide
# https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-debian-9
# apt install apache2
# Guide https://websiteforstudents.com/install-mediawiki-ubuntu-17-04-17-10-nginx-mariadb-php/
# Github mediawiki : https://github.com/wikimedia/mediawiki
git clone git@github.com:wikimedia/mediawiki.git
# Installation
https://www.mediawiki.org/wiki/Manual:Installation_guide
@mathben
mathben / archlinux_installation_ux370u_full_disk_encrypted.sh
Last active January 1, 2022 18:38
BASH - Installation Arch Linux on Asus ZenBook UX370U - Full disk single boot
#!/usr/bin/env bash
# French Guide : https://github.com/FredBezies/arch-tuto-installation
# Install ARCH Linux with UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M status=progress && sync # on linux
@mathben
mathben / mxe_qt5_error_missing_module
Created October 19, 2017 18:22
Error compilation with MXE, qt5 with QML
QMAKE_CXX.INCDIRS = \
/home/mathben/git/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.4.0/include/c++ \
/home/mathben/git/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.4.0/include/c++/i686-w64-mingw32.static \
/home/mathben/git/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.4.0/include/c++/backward \
/home/mathben/git/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.4.0/include \
/home/mathben/git/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.4.0/include-fixed \
/home/mathben/git/mxe/usr/i686-w64-mingw32.static/include
QMAKE_CXX.LIBDIRS = \
/home/mathben/git/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.4.0 \
/home/mathben/git/mxe/usr/i686-w64-mingw32.static/lib
@mathben
mathben / dark filter css size under element
Last active March 9, 2017 07:10
Apply dark_filter to add foreground dark alpha with size of under element
​#dark_filter {
border: 1px solid #aaa; /*To show the boundaries of the element*/
}
#dark_filter:before {
position: absolute;
width: 100%;
height: 100%;
content: '';
background: rgba(0,0,0, 0.5); /*partially transparent image*/
pointer-events: none;