Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Eray AYDIN erayaydin

🏠
Working from home
Block or report user

Report or block erayaydin

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
@erayaydin
erayaydin / docker.sh
Created Mar 24, 2019
Polybar Docker Manager
View docker.sh
selected=$(docker ps | sed -n '1!p' | dmenu)
selected=$(echo $selected | awk '{print $1;}')
action=$(echo -e "stop\nrestart\nlogs\nbash" | dmenu)
case "$action" in
"stop")
docker stop $selected
;;
View gitlab.php
<?php
require "vendor/autoload.php";
$archive = "https://dizilab.pw/arsiv?sayfa=";
$isDone=false;
$client = new \GuzzleHttp\Client();
View 2018-08-17T22_47_22_127Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', 'apidoc', '-g' ]
2 info using npm@6.2.0
3 info using node@v10.7.0
4 verbose npm-session 8631cc3dc1d7c4a7
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/apidoc 21ms (from cache)
8 silly pacote tag manifest for apidoc@latest fetched in 38ms
9 timing stage:loadCurrentTree Completed in 219ms
View result
<QueryDict: {'csrfmiddlewaretoken': ['CTDjgpfeiNHiuJi5fQPEIW5dRjDqw9jugLQTn3U5HWzVPPbaGwYaqDfHIjB0ksKu'], 'news[0][url]': ['/haber/kulupler-birligi-toplantisi-basladi-259563'], 'news[0][is_save]': ['on'], 'news[1][url]': ['/haber/besiktas-mogazda-4-transfer-259562'], 'news[1][is_save]': ['on'], 'news[2][url]': ['/haber/denizlispordan-borclanma-elestirilerine-cevap-259561'], 'news[3][url]': ['/haber/italyan-gazeteci-acikladi-andre-silva-galatasarayda-oynamak-istiyor-milan-ile-galatasaray-259560'], 'news[4][url]': ['/haber/engelsiz-basketbolcular-dunya-sampiyonasi-provasinda-259559'], 'news[5][url]': ['/haber/turkiye-ralli-sampiyonasi-bursada-duzenlenecek-259557'], 'news[6][url]': ['/haber/ali-koctan-camiaya-mesajlar-iki-yeni-kredi-yolda-259556'], 'news[7][url]': ['/haber/cnr-sports-week-istanbul-eylul-ayinda-yapilacak-259553'], 'news[8][url]': ['/haber/yeni-malatyaspor-sezonu-aciyor-259551'], 'news[9][url]': ['/haber/denizlispor-furkan-seker-transferinde-mutlu-sona-ulasti-259550'], 'news[10][url]': ['/haber/to
View change_form.html
{% extends "admin/base_site.html" %}
{% load i18n admin_urls static admin_modify %}
{% block extrahead %}{{ block.super }}
<script type="text/javascript" src="{% url 'admin:jsi18n' %}"></script>
{{ media }}
{% endblock %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" />{% endblock %}
View fulloutput.html
<!DOCTYPE html>
<html lang="en-us" >
<head>
<title>Crawler | Django site admin</title>
<link rel="stylesheet" type="text/css" href="/static/admin/css/base.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/forms.css" />
View generated-html.html
<div id="content" class="colM">
<h1>Crawler</h1>
<div id="content-main">
<label for="id_form-0-name">Name:</label><input type="text" name="form-0-name" maxlength="250" id="id_form-0-name">
<label for="id_form-0-description">Description:</label><textarea name="form-0-description" cols="40" rows="10" maxlength="300" id="id_form-0-description"></textarea>
<label for="id_form-0-content">Content:</label><textarea class="tinymce" data-mce-conf="{&quot;height&quot;: 360, &quot;width&quot;: 610, &quot;language&quot;: &quot;en&quot;, &quot;spellchecker_languages&quot;: &quot;Afrikaans=af,Arabic=ar,Asturian=as,Azerbaijani=az,Bulgarian=bg,Belarusian=be,Bengali=bn,Breton=br,Bosnian=bs,Catalan=ca,Czech=cs,Welsh=cy,Danish=da,German=de,Lower Sorbian=ds,Greek=el,+English / Australian English / British English=en,Esperanto=eo,Spanish / Argentinian Spanish / Colombian Spanish / Mexican Spanish / Nicaraguan Spanish / Venezuelan Spanish=es,Estonian=et,Basque=eu,Persian=fa,Finnish=fi,French=
@erayaydin
erayaydin / monitor-mysql-export.sh
Created May 27, 2018
Monitoring on Mysql Import/Export
View monitor-mysql-export.sh
### Determine total size
#
# SELECT
# Data_BB / POWER(1024,1) Data_KB,
# Data_BB / POWER(1024,2) Data_MB,
# Data_BB / POWER(1024,3) Data_GB
# FROM (
# SELECT SUM(data_length) Data_BB
# FROM information_schema.tables
# WHERE table_schema IN ('database')
@erayaydin
erayaydin / be-my-eye-doc.md
Last active Apr 26, 2018
Be My Eye - Project Documentation
View be-my-eye-doc.md

Be My Eye - Server (PHP-Laravel)

"Be My Eye" projesinin temelini oluşturan server kısmı 3 ana parçadan oluşmaktadır.

Frontend kısmı projenin tanıtım amaçlı statik sayfalarını bulundurmaktadır. Diğer projelerde bu tarz sayfalara, uygulamaların "landing" sayfaları denmektedir.

Backend kısmı proje yöneticileri tarafından kullanılacak olan yönetim paneli kısmıdır. Burada, kullanıcılar ve yapılan işlemler kontrol edilebileceği gibi, ilgili kullanıcılara bakiye yükleme işlemi yapılmaktadır.

View tensor.py
""" TensorFlow'da Resim DataSet Oluşturma
Bu örnek için, (JPEG) türünde resim setine ihtiyacımız var.
Dataseti oluşturmak için 2 ayrı yolu tercih edebiliriz:
1) Ana dizinde, her bir tür için ayrı alt dizinler oluşturarak:
ANA_DIZIN
|-------- ALTDIZIN (TUR 0)
| |
You can’t perform that action at this time.