Skip to content

Instantly share code, notes, and snippets.

View moElwan's full-sized avatar
🌍

Mohamed Elwan moElwan

🌍
View GitHub Profile
@moElwan
moElwan / Openvpn server.md
Last active July 10, 2022 16:06
Create a private openvpn [Working in Egypt]

Credits to this YT tutorial

Server installation

On the server please run

sudo apt-get update
sudo su
apt -y install git openvpn openconnect net-tools vim
git clone https://github.com/angristan/openvpn-install.git
cd openvpn-install/
# Notes and Ref.s
## Magento 2
---------------
## Magento 1
- (upgrading using ssh)[https://www.properhost.com/support/kb/29/How-to-Upgrade-Magento-through-SSH]
@moElwan
moElwan / gist:79b2f3daa5667b880d3a5c3c05a12800
Created January 16, 2017 09:44
Laravel IDE_helper support for migration common functions.
//add to \vendor\laravel\framework\src\Illuminate\Support\Fluent.php
// NOTE: this is a phpdoc comment so it has to be added just before the class signature ( class Fluent )
/**
* Class Fluent
* @package Illuminate\Support
*
* @see http://laravel.com/docs/master/schema
*
* @method Fluent unsigned() Set INTEGER to UNSIGNED
@moElwan
moElwan / countries_arabic.php
Last active October 24, 2018 18:25
Country Seeder Arabic [Laravel]
<?php
class CountriesTableSeeder extends Seeder {
public function run()
{
Country::insert([
[
'long_name' => 'أفغانستان',
'short_name' => 'AF',