Skip to content

Instantly share code, notes, and snippets.

View hasantayyar's full-sized avatar
⌨️
AFK

Hasan Tayyar Beşik hasantayyar

⌨️
AFK
View GitHub Profile
@hasantayyar
hasantayyar / stun-servers.md
Created December 24, 2015 15:56
stun server list no verified
  • 23.21.150.121:3478
  • iphone-stun.strato-iphone.de:3478
  • numb.viagenie.ca:3478
  • s1.taraba.net:3478
  • s2.taraba.net:3478
  • stun.12connect.com:3478
  • stun.12voip.com:3478
  • stun.1und1.de:3478
  • stun.2talk.co.nz:3478
  • stun.2talk.com:3478
@hasantayyar
hasantayyar / bcrypt.php
Created October 23, 2011 00:25
sample Bcrypt class for php
<?php
/*
*
// seen on
// http://stackoverflow.com/questions/4795385/how-do-you-use-bcrypt-for-hashing-passwords-in-php/6337021#6337021
// usage
$bcrypt = new Bcrypt(15);
$hash = $bcrypt->hash('password');
@hasantayyar
hasantayyar / fbgetalbumphotos.js
Created February 29, 2012 09:43
Get Facebook Albums and Album Photos
function getAlbumPhotos(albumid){
FB.api("/"+albumid+"/photos",function(response){
var photos = response["data"];
var html = "count "+photos.length;
for(var i=0;i<photos.length;i++) {
var images = photos[i]["images"];
html+= "Photo "+(v+1);
html+= '<img src="'+images[(images.length-1)]["source"]+'" />';
var tmp = "";
for(var j = 0 ;j<images.length;j++) {
@hasantayyar
hasantayyar / graph.js
Last active February 16, 2021 02:24
extracte the state machien svg graph library from aws bundle
/*global dagreD3*/
/*global d3*/
/*global WheelEvent*/
/*global window */
(function () {
"use strict";
var module = angular.module("WorkflowGraph", []);
function intersectRect(node, point) {
@hasantayyar
hasantayyar / terraform-aliases.sh
Created May 19, 2020 08:48
terraform aliases
alias t="terraform"
alias tplanshort="terraform plan -no-color | grep -E '^[[:punct:]]|Plan'"
alias tplanless="terraform plan -no-color | grep -E '(^.*[#~+-] .*|^[[:punct:]]|Plan)'"
@hasantayyar
hasantayyar / kurumliste.md
Created September 16, 2014 13:07
akademik kurumlar örnek listesi
  • ABANT IZZET BAYSAL UNIV
  • ABDULLAH GUL UNIV
  • ACIBADEM UNIV
  • ADALET BAKANLIGI
  • ADANA BILIM VE TEKNOLOJI UNIV
  • ADANA NUMUNE EAH
  • ADIYAMAN UNIV
  • ADNAN MENDERES UNIV
  • AFYON KOCATEPE UNIV
  • AGRI IBRAHIM CECEN UNIV
@hasantayyar
hasantayyar / movies.md
Last active May 10, 2020 13:14
movie list tr

https://eksisozluk.com/entry/57082433

film severler için efsane nitelikte ve şahsen bayağı faydası olacağını düşündüğüm listedir. adamlar tek tek uğraşmış ve site kullanıcıları tarafından en çok beğenilen, 20 farklı kategoride toplam 135 ayrı liste yayınlamışlar.

listelerde yaklaşık olarak yanlış saymadıysam; 3885 tane film belirtilmiş fakat bu filmlerin bir çoğu ayrı listelerde de yer alıyor zira; hem farklı farklı editörlerin yapmış olduğu listeler olmasından hem de yönetmen isimlerine göre, aldıkları ödüllere göre, editörlerin yaptığı kategorilere göre, görsel ya da yazılı basının yaptıkları film listelerine göre kategorize edildiğinden bir çok listede aynı filmler denk gelebilir. tek tek film araştırmaktan üşenen bünyeler için bulunmaz hint kumaşı tadında olabilir. listede; her yaştan, her kesimden, her zevkten, her bakış açısına kadar bulunacak türde filmler mevcut. kısa filmden bağımsıza, aksiyondan bilim-kurguya, yol filmlerinden beyin yakan filmlere, müzikalden biyografiye, spordan cinselliğe, d

@hasantayyar
hasantayyar / .htaccess
Last active April 19, 2020 19:20
Maintenance page redirection with htaccess
# check if there is a file named maintenance.html
# so when you want to disable maintenance mode just remname "mv maintenance.html maintenance.html.disabled"
RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /maintenance.html [R=503,L]
ErrorDocument 503 /maintenance.html
@hasantayyar
hasantayyar / mysql-kill.sh
Created April 8, 2014 12:10
kill slow processes
#!/bin/bash
linecount=0
processes=$(echo "show processlist" | mysql -uroot -proot)
oldIfs=$IFS
IFS='
'
echo "Checking for slow MySQL queries..."
for line in $processes
do
if [ "$linecount" -gt 0 ]