Skip to content

Instantly share code, notes, and snippets.

View QuentinBens's full-sized avatar

Brio QuentinBens

  • France
View GitHub Profile
@QuentinBens
QuentinBens / guakePreferences
Last active October 7, 2020 12:08
guakePref
[general]
abbreviate-tab-names=false
compat-delete='delete-sequence'
display-n=0
gtk-prefer-dark-theme=true
gtk-theme-name='Yaru-dark'
history-size=1000
max-tab-name-length=100
mouse-display=true
open-tab-cwd=true
@QuentinBens
QuentinBens / ubuntu_post_install.sh
Last active March 28, 2021 20:13
The goal is to run a script to install all the necessary stack I need after fressh ubuntu install
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
else
#Update and Upgrade
echo "Updating and Upgrading"
apt-get update && sudo apt-get upgrade -y
<?php
$weight = [
"A" => 25,
"B" => 50,
"C" => 25,
];
$report = [
"A" => 0,
@QuentinBens
QuentinBens / CurrencyMap.json
Created December 3, 2018 16:36
A currency map based on Fluidbyte work
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@QuentinBens
QuentinBens / deployer.php
Created February 21, 2018 16:43
This is a simple deployer.php for SF4. I remove app/paramater.yml from the SF3 recipe.
<?php
namespace Deployer;
require 'recipe/symfony3.php';
// Set configurations
set('git_tty', true);
set('ssh_type', 'native');
set('ssh_multiplexing', true);
@QuentinBens
QuentinBens / phpstorm_installer.sh
Last active March 1, 2018 10:13
Personal gist use to update my Phpstorm on Ubuntu.
#!/bin/bash -e
echo -n "Enter Phpstorm download Url: "
read url
# Download file from url
echo "Downloading PhpStorm to ~/Downloads"
cd ~/Downloads
wget ${url} --no-check-certificate
mkdir phpstorm && tar -xzf ~/Downloads/PhpStorm* -C phpstorm --strip-components 1