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 / macros.php
Created February 5, 2014 09:47 — forked from mnshankar/macros
<?php
/*********************************************************************************************
* Example usage (In view)
* <div class="welcome">
<?php echo Form::open(array('route'=>'process','class'=>'form-horizontal'))?>
<?php echo Form::textField('first_name')?>
<?php echo Form::textField('last_name')?>
<?php echo Form::emailField('email')?>
<?php echo Form::passwordField('password')?>
<?php echo Form::selectField('select_one', array('1'=>'abc', '2'=>'def'))?>
@sineld
sineld / gnome-keyring.sh
Created February 6, 2014 07:46
Disabling gnome-keyring
$ rm ~/.gnome2/keyrings/*
$ sudo shutdown -r now
(after restart) Login.
Enter network key in NetworkManager dialog.
Hit button=Cancel in keyring dialog.
http://ubuntuforums.org/showthread.php?t=796410&page=2
@sineld
sineld / barantr90.php
Created March 14, 2014 13:46
barantr90
Evet sorunu buldum.
navigation.blade.php dosya içeriğindeki bu satırı:
<a href="{{ URL::route('profile-user') }}">Profil</a><br>
bununla değiştirince
<a href="{{ URL::route('profile-user', Auth::user()->username) }}">Profil</a><br>
@sineld
sineld / nginx.conf
Last active August 29, 2015 13:57
Rewriting subdomains to the Document Root in Nginx
# http://www.nigeldunn.com/2011/06/30/rewriting-subdomains-to-the-document-root-in-nginx/
# hosts file: 127.0.0.1 proje.sineld.se proje2.sineld.se
server {
server_name ~^(.+)\.sineld\.se$;
set $file_path $1;
@sineld
sineld / sms.php
Last active August 29, 2015 14:07
Şahin Haberleşme SMS API
<?php
/**
*
* Şahin Haberleşme SMS API
* wwww.sahinhaberlesme.com.tr
*
* SMS Gönderim API
*
* Geliştirme : Sinan Eldem
@sineld
sineld / config.plist
Created November 19, 2014 07:47
config.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Debug</key>
<false/>
@sineld
sineld / config.plist
Created November 19, 2014 13:57
Laptop
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>Fixes</key>
<dict>
<key>FixRegions_10000000</key>
<true/>
<?php
/**
* File: SimpleImage.php
* Author: Simon Jarvis
* Modified by: Miguel Fermín
* Based in: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
@sineld
sineld / lng_tr.php
Created January 6, 2015 13:48
Language File for Sypex Dumper 2
<?php
// Language File for Sypex Dumper 2
$LNG = array(
// Lisan dosyası bilgileri
'ver' => 20007, // Dumper sürümü
'translated' => 'Sinan Eldem (http://www.sinaneldem.com.tr/)', // İletişim
'name' => 'Türkçe', // Lisan ismi
// Araçlar paneli
@sineld
sineld / welcome.blade.php
Created February 6, 2015 13:24
welcome.blade.php
<h1>Merhaba KIZIM!</h1>
<p>Sayfa yüklenme süresi:</p>
<p>{{ number_format(microtime(true) - LARAVEL_START, 5) }} sn.</p>