Skip to content

Instantly share code, notes, and snippets.

View teleinformatique's full-sized avatar
❤️
GraphQL

Khadim Sarr teleinformatique

❤️
GraphQL
  • Casablanca, Morocco
View GitHub Profile

Keybase proof

I hereby claim:

  • I am teleinformatique on github.
  • I am khadim (https://keybase.io/khadim) on keybase.
  • I have a public key ASAtHqG7wc4xWIcgwPhhh1PYBNPKm69IeMWDn4uJXz--pAo

To claim this, I am signing this object:

@teleinformatique
teleinformatique / upgrade.sh
Created December 27, 2018 14:22 — forked from artemsky/upgrade.sh
PHP 7.2 Cloud9
sudo apt-get install python-software-properties -y
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update -y
sudo apt-get install php7.2 php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml
sudo apt-get install libapache2-mod-php7.2 -y
sudo a2dismod php5
sudo a2enmod php7.2
sudo service apache2 restart
# Call scopes directly from your URL params:
#
# @products = Product.filter(params.slice(:status, :location, :starts_with))
module Filterable
extend ActiveSupport::Concern
module ClassMethods
# Call the class methods with the same name as the keys in <tt>filtering_params</tt>
# with their associated values. Most useful for calling named scopes from