Skip to content

Instantly share code, notes, and snippets.

View AhmedHelalAhmed's full-sized avatar
📱
Learning and developing

Ahmed Helal AhmedHelalAhmed

📱
Learning and developing
View GitHub Profile
@AhmedHelalAhmed
AhmedHelalAhmed / Version Control.txt
Last active March 19, 2018 00:18
Version Control
https://www.youtube.com/watch?v=lbR82UD5F0c
https://en.wikipedia.org/wiki/Version_control
https://www.youtube.com/watch?v=b7TjsVoTo3Q
https://en.wikipedia.org/wiki/List_of_version_control_software
https://git-scm.com/
https://subversion.apache.org/
https://www.mercurial-scm.org/
http://blogs.atlassian.com/2012/02/version-control-centralized-dvcs/
https://en.wikipedia.org/wiki/Distributed_version_control
https://en.wikipedia.org/wiki/List_of_version_control_software
@AhmedHelalAhmed
AhmedHelalAhmed / Geany.txt
Last active March 28, 2018 02:27
Notepad++ in llinux
Geany editor
to install :
sudo apt-get install geany
to make if nice :
https://www.youtube.com/watch?v=In9tvv_ge9I
sudo apt-get install geany geany-plugins geany-plugin-overview font-manager
sudo vim /usr/share/applications/geany.desktop
sudo nautilus /usr/share/themes
https://github.com/codebrainz/geany-themes/
https://satya164.deviantart.com/art/elementary-Dark-GTK3-Theme-244257862
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jre
# install openjdk
sudo apt-get install openjdk-8-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Bootstrap Website</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" integrity="sha384-AysaV+vQoT3kOAXZkl02PThvDr8HYKPZhNT5h/CXfBThSRXQ6jW5DO2ekP5ViFdi" crossorigin="anonymous"> </head>
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable"
sudo apt update
sudo apt install docker-ce
when i install from https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1
i get
reference: http://stackoverflow.com/questions/21820715/how-to-install-latest-version-of-git-on-centos-6-x-7-x
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
yum update git
@AhmedHelalAhmed
AhmedHelalAhmed / http-status-codes.md
Created July 11, 2018 15:08 — forked from subfuzion/http-status-codes.md
General REST API HTTP Status Codes

Reference: RFC 2616 - HTTP Status Code Definitions

General

  • 400 BAD REQUEST: The request was invalid or cannot be otherwise served. An accompanying error message will explain further. For security reasons, requests without authentication are considered invalid and will yield this response.
  • 401 UNAUTHORIZED: The authentication credentials are missing, or if supplied are not valid or not sufficient to access the resource.
  • 403 FORBIDDEN: The request has been refused. See the accompanying message for the specific reason (most likely for exceeding rate limit).
  • 404 NOT FOUND: The URI requested is invalid or the resource requested does not exists.
  • 406 NOT ACCEPTABLE: The request specified an invalid format.
https://restfulapi.net/http-status-codes/
https://gist.github.com/AhmedHelalAhmed/1e6da9aafe393b113b0cb87de3abc78a
https://restfulapi.net/http-status-codes/
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
https://www.restapitutorial.com/httpstatuscodes.html
==================================
https://medium.com/scrumpy/quick-tip-using-http-status-codes-with-laravel-api-resources-140628398257
https://laravel.com/docs/5.6/responses
https://stackoverflow.com/questions/47311980/laravel-eloquent-resources-api-send-status-code
http://esbenp.github.io/2017/01/14/modern-rest-api-laravel-part-3/
@AhmedHelalAhmed
AhmedHelalAhmed / swagger doc for laravel.txt
Last active July 12, 2018 09:35
swagger doc for laravel
/**
* @SWG\Get(
* path="/create",
* description="Return a user's first and last name",
* @SWG\Parameter(
* name="firstname",
* in="query",
* type="string",
* description="Your first name",
* required=true,
@AhmedHelalAhmed
AhmedHelalAhmed / conditional-function.php
Created July 14, 2018 11:49 — forked from amaelftah/conditional-function.php
extracting conditions to meaningful functions
<?php
if (
$employee['age'] < '40'
&& $employee['medical_health'] == 'healthy'
&& $employee ['work_happits'] != 'bad'
)
{
// do somethings