Skip to content

Instantly share code, notes, and snippets.

View yuxel's full-sized avatar

Osman Yüksel yuxel

View GitHub Profile
for i in `curl https://mestores.com/sitemap-$1.xml | grep loc | cut -d '>' -f3 | grep ^http | cut -d '<' -f1`; do
echo $i
time curl --silent --output /dev/null --compressed $i -H 'user-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'
time curl --silent --output /dev/null --compressed $i -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36'
done
@yuxel
yuxel / Dockerfile
Last active February 2, 2020 16:51
elastic-smile-6
FROM ubuntu:18.04
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y git wget curl nano unzip sudo vim net-tools software-properties-common haveged apt-transport-https
RUN sudo apt-get install -y openjdk-8-jre
RUN wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
RUN sudo apt-get install -y
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)
@yuxel
yuxel / foo.html
Created September 25, 2015 21:11
<!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
<?php
require_once('TwitterAPIExchange.php');
$settings = array(
'oauth_access_token' => "",
'oauth_access_token_secret' => "",
'consumer_key' => "",
'consumer_secret' => ""
);
@yuxel
yuxel / cookie.js
Last active August 29, 2015 14:05
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
#!/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
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;
@yuxel
yuxel / walle.js
Created December 4, 2013 22:44
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);
};