Skip to content

Instantly share code, notes, and snippets.

View abbood's full-sized avatar
💭
Leading Village.do tech team

Abdullah Bakhach abbood

💭
Leading Village.do tech team
View GitHub Profile
@abbood
abbood / gist:8051652
Last active December 31, 2015 22:09
mysql not working
sudo mysqld_safe
Password:
131220 09:45:33 mysqld_safe Logging to '/usr/local/var/mysql/abdullahachsmbp.lan.err'.
131220 09:45:33 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
131220 09:45:34 mysqld_safe mysqld from pid file /usr/local/var/mysql/abdullahachsmbp.lan.pid ended
mysql.server start
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/abdullahachsmbp.lan.pid).
@abbood
abbood / gist:8079668
Created December 22, 2013 08:11
error when trying to debug remotely from rubymine
/Users/abdullahbakhach/.rvm/rubies/ruby-1.9.3-p484/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/abdullahbakhach/.rvm/gems/ruby-1.9.3-p484/gems/ruby-debug-ide-0.4.17/bin/rdebug-ide --port 58053 --dispatcher-port 58054 -- /Users/abdullahbakhach/dev/ruby/icars-web-application-veritopia/script/rails server -b 0.0.0.0 -p 9999 -e production
Fast Debugger (ruby-debug-ide 0.4.17, ruby-debug-base19x 0.11.30.pre12) listens on 127.0.0.1:58053
/Users/abdullahbakhach/.rvm/gems/ruby-1.9.3-p484@global/gems/bundler-1.3.5/lib/bundler.rb:284: warning: Insecure world writable dir /Development/android-sdk-macosx in PATH, mode 040777
/Users/abdullahbakhach/.rvm/gems/ruby-1.9.3-p484/gems/psych-2.0.2/lib/psych.rb:219: warning: already initialized constant VERSION
/Users/abdullahbakhach/.rvm/gems/ruby-1.9.3-p484/gems/psych-2.0.2/lib/psych.rb:222: warning: already initialized constant LIBYAML_VERSION
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.
@abbood
abbood / gist:8217746
Created January 2, 2014 11:11
sample curl php to create request
<php
(array('Request' => array('user_id' => 42,
'distance' => 143256,
'time' => 5470,
'status' => 'instant',
'date' => '12/11/2013 - 06:30 AM',
'from' => 'Toronto, ON, Canada',
'vehicle_id' => 1,
'params' => array(
array('from_coordinates' =>
@abbood
abbood / gist:9250764
Created February 27, 2014 14:09
the way i create restkit model
//
// Model.m
// TNN
//
// Created by Abdullah Bakhach on 11/20/13.
// Copyright (c) 2013 larochesoft. All rights reserved.
//
#import <CoreData/CoreData.h>
#import "RKManagedObjectStore.h"
//
// Model.h
// TNN
//
// Created by Abdullah Bakhach on 11/20/13.
// Copyright (c) 2013 larochesoft. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <RestKit/RestKit.h>
@abbood
abbood / gist:9250867
Created February 27, 2014 14:16
EpisodesDataSource.m
//
// EpisodesDataSource.m
// TNN
//
// Created by Ahmad Mehio on 2/26/14.
// Copyright (c) 2014 larochesoft. All rights reserved.
//
#import <RestKit/RestKit.h>
#import <QuartzCore/QuartzCore.h>
@abbood
abbood / gist:9266666
Created February 28, 2014 07:08
primitive accessor methods
//
// News.m
//
//
// Created by Abdullah Bakhach on 12/5/13.
//
//
#import "News.h"
#import "NSString+Addons.h"
@abbood
abbood / gist:9988503
Created April 5, 2014 07:23
composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"require-dev": {
"way/generators": "2.*"
},
"require": {
"laravel/framework": "4.0.*"
},
@abbood
abbood / gist:9988511
Created April 5, 2014 07:25
composer update error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework 4.0.x-dev
- Conclusion: don't install illuminate/support 4.2.x-dev
- Conclusion: don't install laravel/framework 4.0.x-dev
- Conclusion: don't install illuminate/support 4.1.x-dev
- Conclusion: don't install laravel/framework v4.0.10
- Conclusion: don't install laravel/framework v4.0.9
- Conclusion: don't install laravel/framework v4.0.8
@abbood
abbood / composer.json.lock
Created April 5, 2014 07:36
composer.json.lock
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
],
"hash": "999d059113bf3fb48afd2c6339f88e3f",
"packages": [
{
"name": "classpreloader/classpreloader",
"version": "dev-master",