Skip to content

Instantly share code, notes, and snippets.

Osman Yüksel yuxel

Block or report user

Report or block yuxel

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
View xxxx
nodejs code read (orkun, osman)
X - translation, translation-key-file.pem (osman)
X - stocks from soh, MDM (orkun)
X - amber, payment (cybersource, paypal) (orkun)
X - products from mysql (orkun)
View foo.html
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<title>Asenkron Javascript</title>
<script>
/*! head.load - v1.0.3 */
(function(n,t){"use strict";function w(){}function u(n,t){if(n){typeof n=="object"&&(n=[].slice.call(n));for(var i=0,r=n.length;i<r;i++)t.call(n,n[i],i)}}function it(n,i){var r=Object.prototype.toString.call(i).slice(8,-1);return i!==t&&i!==null&&r===n}function s(n){return it("Function",n)}function a(n){return it("Array",n)}function et(n){var i=n.split("/"),t=i[i.length-1],r=t.indexOf("?");return r!==-1?t.substring(0,r):t}function f(n){(n=n||w,n._done)||(n(),n._done=1)}function ot(n,t,r,u){var f=typeof n=="object"?n:{test:n,success:!t?!1:a(t)?t:[t],failure:!r?!1:a(r)?r:[r],callback:u||w},e=!!f.test;return e&&!!f.success?(f.success.push(f.callback),i.load.apply(null,f.success)):e||!f.failure?u():(f.failure.push(f.callback),i.load.apply(null,f.failure)),i}function v(n){var t={},i,r;if(typeof n=="object")for(i in n)!n[i]||(t={name:i,url:n[i]});else t={name:et(n),url:n};return(r=c[t.nam
View phpkonf-cekilis.php
<?php
require_once('TwitterAPIExchange.php');
$settings = array(
'oauth_access_token' => "",
'oauth_access_token_secret' => "",
'consumer_key' => "",
'consumer_secret' => ""
);
View cookie.js
View gist:11250542
var graylog2 = require("graylog2");
var logger = new graylog2.graylog({
servers: [
{ 'host': 127.0.0.1, port: 12201 },
{ 'host': 127.0.0.2, port: 12201 }
],
hostname: 'server.name', // the name of this host
facility: 'Node.js', // the facility for these log messages
bufferSize: 1350 // max UDP packet size, should never exceed the
View db_dump_and_restore.sh
#!/bin/bash
user="root"
pass="12345678"
excludeList="mysql|performance_schema|information_schema" #dont remove these databases
tmpDir="/tmp"
# PART1
# Uncomment first block to get your database dumps into tmpDir
View jquery.image.promise.js
var sd = sd || {};
sd.utils = sd.utils || {};
sd.utils.preloadImage = function (url) {
var deferred = $.Deferred();
var image = new Image();
image.src = url;
image.onload = deferred.resolve;
View walle.js
var WallE = function () {
var context = new webkitAudioContext();
this.osc = context.createOscillator();
this.analyser = context.createAnalyser();
this.osc.connect(this.analyser);
this.analyser.connect(context.destination);
this.osc.start(0);
};
View csv2json.php
<?php
$row = 0;
$head = array();
$result = array();
$columnCount = 0;
$input = "/var/www/products.csv";
$output = "/tmp/outx.json";
@yuxel
yuxel / varnish.vcl
Last active Dec 29, 2015
Özgür Web Teknolojileri Günleri 2013'deki Varnish Konfigursayonu
View varnish.vcl
# This is a basic VCL configuration file for varnish. See the vcl(7)
# man page for details on VCL syntax and semantics.
#
# Default backend definition. Set this to point to your content
# server.
#
backend server1 {
.host = "haber.local";
.port = "8080";
}
You can’t perform that action at this time.