Skip to content

Instantly share code, notes, and snippets.

View sineld's full-sized avatar
🏢
Full Stack Developer

Sinan Eldem sineld

🏢
Full Stack Developer
View GitHub Profile
@sineld
sineld / nginx.conf
Last active December 15, 2015 07:09
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
@sineld
sineld / sync.txt
Last active December 15, 2015 07:39
Sync htdocs and MySQL data with Dropbox
win:# mklink /J C:\_nginx\mysql\data C:\Users\Tuana\Dropbox\Araclar\Data\db\mysql
lin:# ln -s target_path link_path
# http://en.wikipedia.org/wiki/Symbolic_link
# centos @ dropbox
$ ln -s /root/Dropbox/_webserver /var/www/html
<?php
namespace {
die('Only to be used as an helper for your IDE');
}
namespace {
class Auth extends Illuminate\Auth\Guard{
/**
* Create a new authentication guard.
*

Recommended Sublime Text 2 Packages for Web Developers.

Update

  • 「Image2Base64」を追加しました。
  • 「AdvancedNewFile」を追加しました。
  • 「Quick Look」を追加しました。

2012~2013 Autumn & Winter

<?php
// app/start/global.php
/*
|--------------------------------------------------------------------------
| Application Error Logger
|--------------------------------------------------------------------------
|
| Here we will configure the error logger setup for the application which
@sineld
sineld / ip.ssh
Created May 13, 2013 07:42
ubuntu static ip
sudo nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo eth0
iface lo inet loopback
# The primary network interface
@sineld
sineld / multiLanguageL4.php
Created May 15, 2013 11:23
multiLanguageL4.php
<?php
// http://stackoverflow.com/questions/16559421/t-can-not-switch-language-in-laravel4?utm_source=laravel
// app/routes.php
Route::get('lang/{lang}', function($lang)
{
Session::put('my.locale', $lang);
return Redirect::to('/');
});
<?php
Event::listen('illuminate.query', function($query, $bindings, $time) {
static $count;
if(App::make('env') === 'local')
{
$logFile = __DIR__.'/storage/logs/queries';
ob_start();
var_dump($bindings, $query);
$str = ob_get_clean();
if($count === null)
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated with https://github.com/barryvdh/laravel-ide-helper
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
namespace {
die('Only to be used as an helper for your IDE');
}

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer