Skip to content

Instantly share code, notes, and snippets.

View sandeepgill's full-sized avatar

Sandeep Gill sandeepgill

View GitHub Profile
@sandeepgill
sandeepgill / Country.php
Created January 7, 2019 19:05
Country list with ISO2, Capitals, ISO3, Phone and Currency
<?php
class Country
{
public static $countries = [
'BD' =>
[
'name' => "Bangladesh",
'ISO3' => "BGD",
@sandeepgill
sandeepgill / MoodleValetDriver.php
Last active November 9, 2024 16:41
Laravel Valet Moodle driver
<?php
class MoodleValetDriver extends BasicValetDriver
{
protected $isStyleUri = false;
protected $baseUri = '';
protected $moodleStaticScripts = [
'styles.php',
'javascript.php',
'jquery.php',
@sandeepgill
sandeepgill / php71.sh
Created May 20, 2018 10:50
Switch php version to PHP 7.1
#!/bin/bash
# Stop existing php services
sudo brew services stop php56
# unlink php version that you do not want to use
brew unlink php56
# link php version you want to use
brew link php71 --force
@sandeepgill
sandeepgill / php56.sh
Created May 20, 2018 10:49
Switch PHP versions to php56
#!/bin/bash
# Stop existing php services
sudo brew services stop php71
# unlink php version that you do not want to use
brew unlink php71
# link php version you want to use
brew link php56 --force