Skip to content

Instantly share code, notes, and snippets.

@a7madev
a7madev / mongodb.sh
Created November 23, 2020 17:56
Install Mongodb on Mac
# Install
brew install mongodb-community@3.6
brew install mongodb-database-tools
# Run
brew start mongodb-community@3.6
@a7madev
a7madev / mysql.bash
Created November 11, 2020 16:47
Install MySQL 5.7 on macOS using Homebrew
## Installation
brew info mysql@5.7
brew install mysql@5.7
mysql_secure_installation
brew tap homebrew/services
brew services start mysql@5.7
brew services run mysql@5.7
brew services list
@a7madev
a7madev / sublime.sh
Created November 6, 2020 19:33
Launch Sublime Text 3 from the Mac OSX Terminal
#!/bin/bash
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
@a7madev
a7madev / Laravel-All.md
Last active July 3, 2017 06:03
Laravel

Laravel All

Make Migration

php artisan make:migration create_teacher_subjects_table
@a7madev
a7madev / circle.yml
Created September 6, 2016 11:21 — forked from donnfelker/circle.yml
Updated circle.yml file
#
# Build configuration for Circle CI
#
# See this thread for speeding up and caching directories: https://discuss.circleci.com/t/installing-android-build-tools-23-0-2/924
#
general:
artifacts:
- /home/ubuntu/AndroidCI/app/build/outputs/apk/
@a7madev
a7madev / AndroidManifest.xml
Last active August 13, 2016 11:05
Android - Request Multiple Permissions
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
@a7madev
a7madev / PHP-xdebug.md
Last active July 15, 2016 09:30
PHP and xdebug

PHP xdebug on OS X

PHP xdebug on Windows

XAMPP

  1. Open php.ini from XAMPP Control Panel
  2. Uncomment xdebug section
  3. Restart XAMPP Apache
  4. . Go to PHPStorm, open settings and select PHP Interpreter
  5. . Add new Interpreter, select "C:\xampp\php\php.exe" and save.
<?php
// Blade if statement
@if()
@elseif()
@else
@endif
// Text Placeholder
@a7madev
a7madev / Android-Libs.md
Last active March 29, 2016 13:26
Android Libs
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.parse:parse-android:1.+'
compile 'com.squareup.okhttp3:okhttp:3.+'