Skip to content

Instantly share code, notes, and snippets.

@naimakin
naimakin / vsbash
Created January 21, 2017 10:50
Bir virtual servera gelen isteklerin hangi source IP den geldiğini gösteren program
#!/bin/bash
IP_Addr[0]=172.30.68.80
IP_Addr[1]=172.30.68.153
IP_Addr[2]=172.30.68.152
IP_Addr[3]=172.30.68.16
IP_Addr[4]=172.30.68.64
IP_Addr[5]=172.31.35.220
start_t=`date +%s`
@naimakin
naimakin / index.php
Created August 17, 2016 11:43 — forked from eftalyurtseven/index.php
jQuery Php Anında Arama
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Eftal Yurtseven Anında Arama</title>
<link rel="stylesheet" href="style.css"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$(function(){
a=input("ilk sayıyı giriniz: ")
b=input("ikinci sayıyı giriniz: ")
obeb=1
if a<b:
kucuk=a
buyuk=b
else:
kucuk=b
buyuk=a
for i in range(1,kucuk+1):
#!-*- coding:utf-8 -*-
import csv
people = csv.reader(open('ogrenci_listesi1.csv'))
hash_people = {}
for k in range(0, 149):
hash_people[k] = 0
for row in people:
package main
import (
"fmt"
"os"
"os/exec"
"strings"
)
type yolUrl struct {
@naimakin
naimakin / passcard.go
Last active December 29, 2015 07:09
programlama dilleri ödevi password card uygulaması go color kullanılmadan
package main
import ("fmt"
"math/rand"
"time"
"bytes"
"strconv"
)
func main() {
header:=" ■□▲△○●★☂☀☁☹☺♠♣♥♦♫€¥£$!?¡¿⊙◐◩ � "
@naimakin
naimakin / password_card.go
Last active December 29, 2015 07:09
programlama dilleri ödevi
package main
import (
"fmt"
"math/rand"
"github.com/ActiveState/golor"
"time"
"bytes"
"strconv"
)
@naimakin
naimakin / input.html
Created November 15, 2013 21:35
html checker programında checker yaptığım html dosyası
</ijh><fggh><df></ala><frkn>dd<frkn><ala\><df><fggh\>fggh<sdf>
@naimakin
naimakin / htmlchecker
Created November 15, 2013 21:09
python programlama dili stack veri yapısı kullanarak html tag checker işlevi
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re, sys
from stack import Stack
def parser(fnm):
print "# %s dosyasi isleniyor..." % (fnm)
data = open(fnm).read()
liste = re.findall(r'<[/]*\w+[^>]*>', data)
@naimakin
naimakin / htmlchker
Created November 15, 2013 21:05
html taglarını checker işlevi ruby programlama dili dosya okuma dizileri kullanarak tasar
#!/usr/bin/ruby
def main()
deger= 0
i=0
j=0
boy=0
ti=0
tcont = Array.new
boyut = Array.new
aFile = File.new("input.html", "r")