Skip to content

Instantly share code, notes, and snippets.

Working from own office

Sinan Eldem sineld

Working from own office
Block or report user

Report or block sineld

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sineld / array2json.php
Created Jun 24, 2016 — forked from weeq/array2json.php
Ülkelerin İl, İlçeleri. Şimdilik Türkiye'yi ekleyebildim.
View array2json.php
#!/usr/bin/env php
* @author Ferdi ÜNAL
* @email
$location = require "location.php";
$json = fopen('location.json', 'w');
sineld / multiLanguageL4.php
Created May 15, 2013
View multiLanguageL4.php
// app/routes.php
Route::get('lang/{lang}', function($lang)
Session::put('my.locale', $lang);
return Redirect::to('/');
sineld / laravel.js
Created May 20, 2016 — forked from soufianeEL/laravel.js
You use Laravel 5 and you want to send a DELETE request without creating a form? This will handle the form-creation bits for you dynamically, similar to the Rails implementation. To use, import script, and create a link with the `data-method="DELETE"` and `data-token="{{csrf_token()}}"` attributes.
View laravel.js
Exemples :
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}">
- Or, request confirmation in the process -
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}" data-confirm="Are you sure?">
(function() {
sineld / 1) Install
Created May 5, 2016 — forked from nghuuphuoc/1) Install
Install Redis on Centos 6
View 1) Install
// --- Compiling ---
$ wget
$ tar xzvf redis-2.8.3.tar.gz
$ cd redis-2.8.3
$ make
$ make install
// --- or using yum ---
$ rpm -Uvh
$ rpm -Uvh
sineld / paginator.js
Last active Apr 17, 2016 — forked from kirkbushell/paginator.js
Paginator module for AngularJS, in combination with Laravel's paginator class
View paginator.js
* Paginator
* The paginator can be used within any controller to easily set up
* some pagination options, including number of pages, page navigation
* and more. It is built to work with Laravel's own pagination library,
* which returns data in a particular format.
* Usage:
* Before you can use paginator, make sure you specify the URLs to your pagination
#!/usr/bin/env bash
echo ">>> Starting Install Script"
# Update
sudo apt-get update
# Install MySQL without prompt
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
View .vimrc
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
View gist:6897468
function sinMailer($kimeEmail, $kimeAd = FALSE, $mailKonu, $mailMesaj, $kimdenEmail = FALSE, $kimdenAd = FALSE){
$kimeAd = $kimeAd ? $kimeAd : $kimeEmail;
$mail = new PHPMailer();
sineld / .bashrc
Last active Dec 20, 2015
Linux Kısayolları # chmod +x # sh
View .bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
alias sshkey="cat ~/.ssh/ | pbcopy && echo 'Copied to clipboard.'"
# User specific aliases and functions
View gist:6121234
* @copyright 2012 TheHydroImpulse, Daniel Fagnan
* @version 0.1
* @todo Add an overwite ability. Among other things.
* @note Use this as you wish. Extend it, Mash it. Enjoy it.
You can’t perform that action at this time.