Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Taha Doğan Güneş tdgunes

🎯
Focusing
Block or report user

Report or block tdgunes

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
View gist:7165935
let a = 5
let a lst =
match lst
View CS201 Finale
class queue:
def __init__(self):
self.temp = []
def enqueue(self, obj):
self.temp.append(obj)
def dequeue(self):
View gist:8666564
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=1<PERFORMNUD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether b8:f6:b1:11:c7:f7
View gist:9491925
import java.io.File;
class Untitled {
public static void main(String[] args) {
String absolutePath = "/Hello/AnotherFolder/The File Name.PDF";
File file = new File(absolutePath);
String fname = file.getName();
int pos = fname.lastIndexOf(".");
@tdgunes
tdgunes / bruteforce.py
Created Apr 22, 2014
Bruteforcing over paramiko
View bruteforce.py
import string
import paramiko
from itertools import combinations
import sys
server_ip = "" #put ip of the user here
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
charset = string.printable[:36]
@tdgunes
tdgunes / add_ssh.py
Last active Aug 29, 2015
My Terminal Utils
View add_ssh.py
# Using this method:
# http://www.linuxproblem.org/art_9.html
import os
import save_as_alias
user = raw_input("User(root etc.): ")
host = raw_input("Host(x.x.x.x): ")
path = os.getcwd()
View TFTDisplayText.ino
// Taha Dogan Gunes
// tdgunes@gmail.com
// Edited the example 'TFTDisplayText'
// So you can use the same diagram to connect the wires to screen
#include <TFT.h>
#include <SPI.h>
@tdgunes
tdgunes / pipe.py
Last active Aug 29, 2015
Python Terminal A Progress bar
View pipe.py
#...
class MongoProgressBarElement(FilterPipeElement):
def __init__(self, db_name, collection_name, sample):
self.total = pymongo.MongoClient()[db_name][collection_name].find().count()
self.count = 0
self.sample_count = 0
self.start = 0
self.operation_time = 0
self.total_operation = 0
@tdgunes
tdgunes / test.py
Created Jul 7, 2014
Pyplyn multiple pipes
View test.py
import pyplyn as p
first_pipe = p.Pipe(name="first")
first_pipe.add(p.LambdaFilter(lambda x: "hello" in x))
first_pipe.add(p.LambdaExtension(lambda x: x.title()))
first_pipe.add(p.Writer("./test/output-1.txt"))
second_pipe = p.Pipe(name="second")
second_pipe.add(p.LambdaFilter(lambda x: "world" in x))
@tdgunes
tdgunes / geo_test_gen.py
Created Jul 10, 2014
Test data generator
View geo_test_gen.py
# !/usr/bin/python
# -*- coding: utf-8 -*-
"""
geo_test_gen.py
~~~~~~~~~~
Author: Taha Dogan Gunes
"""
import json
You can’t perform that action at this time.