This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('TwitterAPIExchange.php'); | |
$settings = array( | |
'oauth_access_token' => "", | |
'oauth_access_token_secret' => "", | |
'consumer_key' => "", | |
'consumer_secret' => "" | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}; |
NewerOlder