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 / 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 / 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.
@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 / 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.+'
<?php
// Blade if statement
@if()
@elseif()
@else
@endif
// Text Placeholder
@a7madev
a7madev / SSH - Login without password.command
Created January 17, 2016 07:00
SSH - Login without password
brew install ssh-copy-id
ssh-copy-id root@161.202.176.248
@a7madev
a7madev / Edit_Windows_Hosts_File.cmd
Last active January 16, 2016 10:24
Windows - Edit Hosts File
copy %systemroot%\system32\drivers\etc\hosts "C:\Users\a7madev\Desktop"
echo >> C:\Users\a7madev\Desktop\hosts
copy "C:\Users\a7madev\Desktop\hosts" %systemroot%\system32\drivers\etc\