Skip to content

Instantly share code, notes, and snippets.

View eser's full-sized avatar
🎙️
Streaming on YouTube - https://eser.live

Eser Ozvataf eser

🎙️
Streaming on YouTube - https://eser.live
View GitHub Profile
@eser
eser / install-redis.sh
Created December 2, 2015 00:01 — forked from four43/install-redis.sh
Install Redis
#!/bin/bash
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
###############################################
# To use:
# wget https://gist.githubusercontent.com/four43/e00d01ca084c5972f229/raw/install-redis.sh
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"
@eser
eser / elb-nodejs-ws.md
Last active November 9, 2015 09:33 — forked from obolton/elb-nodejs-ws.md
Configuring an AWS Elastic Load Balancer for a Node.js application using WebSockets on EC2

AWS ELB with Node.js and WebSockets

This assumes that:

  • You are using Nginx.
  • You want to accept incoming connections on port 80.
  • Your Node.js app is listening on port 3000.
  • You want to be able to connect to your Node.js instance directly as well as via the load balancer.

####1. Create load balancer

@eser
eser / fuatavni.js
Last active August 29, 2015 13:57 — forked from f/fuatavni.js
// Fuatavnizer v0.1
function fuatavni(s, t){var m=Math,y;y=[s.join("\n")+"\nAnaliz."].concat(t.split(/[\.\,]\s*/).filter(function(c){return!!c}).map(function(c,i){i++;var x=m.floor(m.random()*10)%3;return x==1?i+". Adetullahtandır, "+c+".":(x==2?i+". "+c+". Korkma, titre.":i+". "+c)}));y.push((y.length+1)+". Güzel insanlar, duanızı bekliyorum.");return y;}
// Usage:
fuatavni(["Lorem ipsum?", "dolor sit?"], "Lorem ipsum dolor sit amet, \
consectetur, sed do eiusmod tempor incididunt ut labore et dolore \
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation \
ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute \
irure dolor in reprehenderit in voluptate velit esse cillum dolore \
eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non \
@eser
eser / manifest.md
Last active October 15, 2017 03:30 — forked from f/manifest.md

Topluluk Bildirgesi

  • Bu bildirge bir kural listesi değil, komünitemizin temel felsefesini tanımlayan bir metindir.
  • Komünite, kendisini bir topluluk olarak tanımlar.
  • Topluluğa dahil olmak, kişinin kendisini komüniteye dahil hissetmesiyle sağlanır, başka hiçbir kuralı yoktur.
  • Topluluk mevcut bir hiyerarşik düzene dahil veya sahip değildir.
  • Topluluğun tek amacı komünitenin ilgilendiği konuların çevresinde kişileri, hiçbir ayrım gözetmeksizin biraraya getirmektir.
  • Topluluğa dahil olan, kendisini dahil hisseden herkes; yasadışı, bir ismi lekeleyici veya rencide edici, etik olmayan bir harekete kalkışmadığı veya sebep olmadığı sürece kimseden izin almaksızın topluluk adına etkinlik, toplantı, bilgi paylaşımı, proje geliştirme başta olmak üzere her şeyi yapmakta özgürdür.
  • Topluluğun yönetimi veya bir sahibi yoktur. Yalnızca muhatapları vardır, muhataplar topluluğa dahil herhangi birisi olabilir, topluluğun genel kanaatine göre doğal yollarla edinilir, gönüllülük esasına dayanır.
  • İsteyen her