Skip to content

Instantly share code, notes, and snippets.

View Ilshidur's full-sized avatar
☁️
Do not publish AI-generated content without clearly indicating its origin.

Nicolas Coutin Ilshidur

☁️
Do not publish AI-generated content without clearly indicating its origin.
View GitHub Profile
@Ilshidur
Ilshidur / keybase.md
Last active March 29, 2022 19:01
keybase.md

Keybase proof

I hereby claim:

  • I am ilshidur on github.
  • I am ilshidur (https://keybase.io/ilshidur) on keybase.
  • I have a public key ASDtEl8gUoHhKOQvAs0T3_8Vhje5ehHFBxVXo1Gn0Mr6nwo

To claim this, I am signing this object:

@Ilshidur
Ilshidur / rounding.php
Last active February 21, 2017 14:12
[PHP] Total values rounding adjustment algorythm.
<?php
/*
* Rounds the given values and add them up in order to fix in the total value.
* It prevents differences of total values caused by the default rounding method.
* Do not use more than 2 decimals for accuracy purposes.
*
* Inspired of : http://stackoverflow.com/a/13483710/4022804
* This function adjusts the rounded values by adding up the ones that have the highest decimals.
*/
@Ilshidur
Ilshidur / install_prestashop.sh
Last active June 11, 2022 14:57
PrestaShop auto install and setup
#!/bin/bash
#
# Usage :
# bash install_prestashop.sh dirname location [-v | --version version] [--github | --web] (--manual | -- (PrestaShop params))
# e.g.
# bash install_prestashop.sh test . --web -- --domain=prestashop.ps -db_server=localhost --db_name=prestashop2 --db_user=root --db_password="root"
# or
# bash install_prestashop.sh test . -v 1.6.1.9 --manual
#