Skip to content

Instantly share code, notes, and snippets.

View mostafa6765's full-sized avatar
πŸ‘¨β€πŸ’»
code

Mostafa Kamal mostafa6765

πŸ‘¨β€πŸ’»
code
View GitHub Profile
<v-form
method="post"
route="{{ route('login') }}"
:data="{ email: '', password: ''}"
sync="user"
{{--@success="mySuccessMethod"--}}
{{--@error="myErrorMethod"--}}
>
<template slot-scope="{data, methods}">
@{{ data.form }}
@mostafa6765
mostafa6765 / custom-domain-localhost-xampp
Created July 19, 2018 19:20 — forked from oozman/custom-domain-localhost-xampp
How to add a custom domain name on your localhost using XAMPP. Codes are based on Windows, but Step 2 onwards are pretty much applicable on other operating system.
Step 1:
Go to: C:\Windows\System32\Drivers\etc\hosts
And add this to the bottom of the file:
=============
127.0.0.1 your.domain.com
=============
Step 2:
Go to [your XAMPP directory]/apache/conf/httpd-xampp.conf
@mostafa6765
mostafa6765 / zsh-linux.md
Last active March 24, 2018 17:13 — forked from derhuerst/intro.md
Installing the Z Shell (zsh) on Linux, Mac OS X and Windows

Installing zsh on Linux

Some Linux systems come preloaded with zsh. You can check if it exists as well as its version by writing zsh --version in a terminal window. In case this zsh version is ok for you, you're done now!

Determine on which Linux distribution your system is based on. See List of Linux distributions – Wikipedia for a list. Most Linux systems – including Ubuntu – are Debian-based.

Debian-based linux systems

Open a terminal window. Copy & paste the following into the terminal window and hit Return. You may be prompted to enter your password.

<?php
$result = [];
$task = 'deploy';
$live = true;
$process = new \Symfony\Component\Process\Process('/Applications/MAMP/bin/php/php7.1.0/bin/php ~/.composer/vendor/bin/envoy run '. $task);
$process->setTimeout(3600);
$process->setIdleTimeout(300);
$process->setWorkingDirectory(base_path());
$process->run(
@mostafa6765
mostafa6765 / git_cheat-sheet.md
Created January 20, 2018 20:06 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
@mostafa6765
mostafa6765 / cio.asm
Created November 6, 2017 06:48 — forked from sanjibnarzary/cio.asm
Character Input Output in ASM using NASM in UBUNTU Linux
;Author : Sanjib Narzary
;Institute: NIT Calicut
;Email: [email protected]
;Assembly Code
section .data
;New line string
NEWLINE: db 0xa, 0xd
LENGTH: equ $-NEWLINE
section .bss
INPT: resd 1
@mostafa6765
mostafa6765 / SimplePagination.vue
Created November 1, 2017 03:02 — forked from saqueib/SimplePagination.vue
VueJS pagination component to paginate anything in Laravel, checkout the tutorial on http://wp.me/p8cmxL-b7 by www.qcode.in
<template>
<div :class="{'loading': loading}" class="pager-data-wrapper">
<!-- Pagination Slot -->
<slot :result="getResult()">
<div class="text-center alert-info pb-3">
<span v-if="!loading">
{{ result.length }} items found. render it using v-for="item in result"
</span>
<span v-if="loading">
@mostafa6765
mostafa6765 / rest-api-php.md
Created September 18, 2017 17:51
REST API Resources

REST, RESTful, REST-like API Resources

Paper

Blog posts

@mostafa6765
mostafa6765 / ampps-mysql-problem.md
Last active April 19, 2018 16:01 — forked from irazasyed/ampps-mysql-fix.md
AMPPS MySQL not working, Solution!

AMPPS MySQL not working, Solution!

  1. Open Ampps Application -> MySQL Tab -> Configuration.

  2. In [mysqld] section, add the following line: innodb_force_recovery = 1

  3. Save the file and try starting MySQL

  4. Remove that line which you just added and Save.