Skip to content

Instantly share code, notes, and snippets.

View edib's full-sized avatar

ibrahim edib kokdemir edib

View GitHub Profile
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(function() {
$('#appear_text').hide();
// bind change event to select
$('#dynamic_select').on('change', function() {
var url = $(this).val(); // get selected value
var text = $( "#dynamic_select option:selected" ).text();
if (url) { // require a URL
// window.location = url; // redirect
@edib
edib / nginx.conf
Last active December 30, 2022 12:04 — forked from joshcummingsdesign/conf
NGINX config for a Jekyll site using SSL
server {
listen 80;
server_name example.com www.example.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name example.com www.example.com;

pajek

yönlü bağlantılar

*Arcs
      1      3       2
      1      2       1
      2      1       1
      2      4       2
 3 9 1
@edib
edib / koordinat.py
Last active December 16, 2022 16:42
x, y = input("x ve y sayılarını girin: ").split()
x = int(x)
y = int(y)
if (x > 0 and y >0 ):
print("{} ve {} sayıları I. alandadır.".format(x,y))
elif (x < 0 and y > 0):
print("{} ve {} sayıları II. alandadır.".format(x,y))
elif (x < 0 and y < 0):
sayi = int(input("bir sayı girin!\n"))
if (sayi > 0):
print("{} sayısı sıfırdan büyüktür.".format(sayi))
elif (sayi < 0):
print("{} sayısı sıfırdan küçüktür.".format(sayi))
else:
print("sayı sıfırdır.")
midterm = int(input("midterm sınavınızı girin\n"))
final = int(input("final sınavınızı girin\n"))
sonuc = midterm*0.4+final*0.6
if (sonuc >= 60):
print("{} ortalama ile geçtiniz".format(sonuc))
else:
print("{} ortalama ile kaldınız".format(sonuc))
@edib
edib / upgrade_pg.sh
Last active October 18, 2022 04:36 — forked from ibussieres/upgrade_pg.sh
Upgrade PostgreSQL 9.3 to 9.6 on Ubuntu 16.04
sudo apt-get install postgresql-9.6 postgresql-server-dev-9.6 postgresql-contrib-9.6 -y
sudo su - postgres -c "psql template1 -p 5433 -c 'CREATE EXTENSION IF NOT EXISTS hstore;'"
sudo su - postgres -c "psql template1 -p 5433 -c 'CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";'"
sudo systemctl stop postgresql
sudo su - postgres -c '/usr/lib/postgresql/9.6/bin/pg_upgrade -b /usr/lib/postgresql/9.3/bin -B /usr/lib/postgresql/9.6/bin \
-d /var/lib/postgresql/9.3/main/ -D /var/lib/postgresql/9.6/main/ \
-O "-c config_file=/etc/postgresql/9.6/main/postgresql.conf" -o "-c config_file=/etc/postgresql/9.3/main/postgresql.conf" --link'
sudo apt-get remove postgresql-9.3 -y
@edib
edib / react-native-make-apk.md
Created September 18, 2022 18:43
from react native to apk by expo and build-tool
╰─🐧 $ eas build --platform android                                                                                                                                                                      

## download aab file from expo account 

# download bundle tool (ask for the latest release)
╰─🐧 $ wget https://github.com/google/bundletool/releases/download/1.11.2/bundletool-all-1.11.2.jar

# create universal mode apks from bundle
@edib
edib / pgbackrest-kullanimi.md
Created January 26, 2020 19:15
pgBackRest Kullanımı

Bu yazıyı okumadan önce, ssh ayarlarınızı yaptığınıza emin olun
Bu yazı PostgreSQL 11 ve PgBackRest 2.15 için yazılmıştır

Kurulum

Master ayarları

Öncelikle aşağıdaki komut ile pgbackrest kuralım:

sudo apt-get install pgbackrest -y
@edib
edib / learning-sites.txt
Last active August 29, 2022 12:08
free learning sites
Sololearn :
https://lnkd.in/ev5ehuqt
W3Schools.com :
http://www.w3schools.com
GeeksforGeeks :
https://lnkd.in/euG9C9hZ
Programiz :