Skip to content

Instantly share code, notes, and snippets.

View ahmedsbytes's full-sized avatar

Ahmed Abdou ahmedsbytes

View GitHub Profile
@ahmedsbytes
ahmedsbytes / git_shortcuts.zsh
Last active August 29, 2015 14:15
My Git Command line short cuts
function ggs()
{
git status
}
function ggp()
{
git pull origin $(ggcb)
}
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArVLG93m+dl62E5TWJX8JYYS3FZAKlH2MveI7JTnAf+Z6JPJqH6fmWyvs5yNC/EN/IARn9tFO2yjzvaEm4pGrGiTdtfP8tNYTT599VaTNuSVoo538gYrcpQTR6z8hUiajLBPn35RlbX2kk3HmTwSXruPzw+Kwie9OWMkkzfA5EH5jwmqpxsmXxY+Ae+lNsPRXAetLm5hMEQK1KUtXJLIW8/zknHq96pC7mH+P5sUQyarQztoxQizXyDL12rD8MUmoHg/1xCpAoSpnPUnuyEIbgd++XTwuP6xX02y/Hf9CO6Fjt1MNSbCJfn67qEH/bUpwA7onhzOOGbJYbsSFFmTFzw== ahmed@araby.name
function sc
if test ! -e app/console; echo "app/console not found !" ; return -1 ; end;
if test -d app/cache; sudo rm -rf app/cache/*;end
if test -d app/logs; sudo rm -rf app/logs/*;end
app/console redis:flushall -n
app/console doctrine:cache:clear-metadata
app/console doctrine:mongodb:generate:hydrators
app/console doctrine:mongodb:generate:proxies
app/console redis:flushall -n
end
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDB3UYzP6Y9L3KF3yqm/9mIMOOMiyu0EycvTFM+ZEgjt0H3pHo1QQ6IT2ArVHCuIIP8UtEVqBeT991Ns77cJaYbfuDdL4DoXFnK71UUAZ6smNL6ghZsABERCNXhQQp/UL2KdC+XNf+cdqjYnb93/JrEMPz8x+eSU9ty7icODFsGY9TDu1MneQmDdQDTx5Wtg51breMzp1Gb1VYMdDuqS7RwaOvZq3YhOV5esudDDRaQ9rfNQk2CiWt22fZgT5rY+Mw50OMxnXpIyrODkXNAgzXW4UQRgrfELDtPhLZQrsJUb/X0AjuweCgKbwkjfFsYX58iznjSPn6tcYDrHUITHZPD ahmed@lab.araby.name
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArVLG93m+dl62E5TWJX8JYYS3FZAKlH2MveI7JTnAf+Z6JPJqH6fmWyvs5yNC/EN/IARn9tFO2yjzvaEm4pGrGiTdtfP8tNYTT599VaTNuSVoo538gYrcpQTR6z8hUiajLBPn35RlbX2kk3HmTwSXruPzw+Kwie9OWMkkzfA5EH5jwmqpxsmXxY+Ae+lNsPRXAetLm5hMEQK1KUtXJLIW8/zknHq96pC7mH+P5sUQyarQztoxQizXyDL12rD8MUmoHg/1xCpAoSpnPUnuyEIbgd++XTwuP6xX02y/Hf9CO6Fjt1MNSbCJfn67qEH/bUpwA7onhzOOGbJYbsSFFmTFzw== ahmed@araby.name
[2016-11-08 16:40:09] smsa.DEBUG: Creating SMSA request {"request_parameters":{"functionCall":"getTrackingByRef","arguments":{"refNo":50070,"passKey":"s8yn3tus","passkey":"s8yn3tus"}},"response":"[object] (stdClass: {\"getTrackingByRefResult\":{\"schema\":\"<xs:schema xmlns=\\\"\\\" xmlns:xs=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:msdata=\\\"urn:schemas-microsoft-com:xml-msdata\\\" id=\\\"NewDataSet\\\"><xs:element name=\\\"NewDataSet\\\" msdata:IsDataSet=\\\"true\\\" msdata:UseCurrentLocale=\\\"true\\\"><xs:complexType><xs:choice minOccurs=\\\"0\\\" maxOccurs=\\\"unbounded\\\"><xs:element name=\\\"Tracking\\\"><xs:complexType><xs:sequence><xs:element name=\\\"awbNo\\\" type=\\\"xs:string\\\" minOccurs=\\\"0\\\"/><xs:element name=\\\"Date\\\" type=\\\"xs:string\\\" minOccurs=\\\"0\\\"/><xs:element name=\\\"Activity\\\" type=\\\"xs:string\\\" minOccurs=\\\"0\\\"/><xs:element name=\\\"Details\\\" type=\\\"xs:string\\\" minOccurs=\\\"0\\\"/><xs:element name=\\\"Location\\\" type=\\\"xs:string\\\" minOccur
import re
import os
fd = open('/etc/crontab')
ignored_lines = 0
shell = path = mailto = ''
crons = list()
shell_pattern = re.compile('SHELL=["\']?((/[a-zA-Z]+)+)["\']?')
path_pattern = re.compile('PATH=["\']?(((/[a-zA-Z]+)+:?)+)["\']?')

Keybase proof

I hereby claim:

  • I am ahmed-araby on github.
  • I am ahmedaraby (https://keybase.io/ahmedaraby) on keybase.
  • I have a public key ASDAbBIawPszzLqVoN4az6kUn4_aaJGK0xE_GW4CVVV6Uwo

To claim this, I am signing this object:

@ahmedsbytes
ahmedsbytes / ddd_cqrs_event-sourcing_in_php.md
Created October 7, 2018 11:20 — forked from jsor/ddd_cqrs_event-sourcing_in_php.md
DDD, CQRS and Event Sourcing in PHP

DDD, CQRS and Event Sourcing in PHP

  • Broadway - Infrastructure and testing helpers for creating CQRS and event sourced applications
  • EventCentric.Core - Event Sourcing and CQRS in PHP
  • LiteCQRS - Small convention based CQRS library for PHP
  • predaddy - Common DDD classes including an annotation driven message bus and tools for CQRS and Event Sourcing
  • ProophEventSourcing - Provides basic functionality for event-sourced aggregates
  • ProophEventStore - PHP 5.4+ EventStore Implementation
  • ProophServiceBus - PHP Enterprise Service Bus Implementation supporting CQRS and DDD
@ahmedsbytes
ahmedsbytes / keybase.md
Created October 24, 2018 22:30
keybase.md

Keybase proof

I hereby claim:

  • I am amaAbdou on github.
  • I am ahmedabdou (https://keybase.io/ahmedabdou) on keybase.
  • I have a public key whose fingerprint is 4DF1 6254 DD7E F140 3FEE C5F7 4942 4484 A73F A944

To claim this, I am signing this object: