Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am yigitbey on github.
  • I am yigit (https://keybase.io/yigit) on keybase.
  • I have a public key ASDKIFsbwOFxlv9M2WupEdoh7eCQhks1cXtHdK4pkd1rPwo

To claim this, I am signing this object:

@yigitbey
yigitbey / aynen.js
Last active February 12, 2018 18:41
Replaces Aynen to Evet.
// ==UserScript==
// @name Aynen Filter
// @namespace
// @description Replaces Aynen
// @include *
// @match *://*/*
// ==/UserScript==
document.body.addEventListener("DOMSubtreeModified", change, false);
change();
### Keybase proof
I hereby claim:
* I am grotiiy on github.
* I am yigit (https://keybase.io/yigit) on keybase.
* I have a public key whose fingerprint is 6B44 3F32 A39E 416E 2343 89F8 1CC6 B37D 34E5 2335
To claim this, I am signing this object:
from turtle import *
from itertools import count
def snowflake(length, line=forward, *rest):
length=length*2
line(length/3, *rest)
right(60)
line(length/3, *rest)
left(120)
line(length/3, *rest)
export PREVPWD=`pwd`
export PREVENV_PATH=
handle_virtualenv(){
if [ "$PWD" != "$PREVPWD" ]; then
PREVPWD="$PWD";
if [ -n "$PREVENV_PATH" ]; then
if [ "`echo "$PWD" | grep -c $PREVENV_PATH`" = "0" ]; then
deactivate
PREVENV_PATH=
@yigitbey
yigitbey / iterableString.py
Created August 9, 2011 18:40
Adds a new next() method to str class
class iterableString(str):
"""Adds a new next() method to str class"""
def replaceCharInString(self,index,new):
"""Replaces a char in string on the given position"""
s = list(self)
s[index] = new
return iterableString("".join(s))
@yigitbey
yigitbey / Galerisiz NTVMSNBC
Created April 3, 2011 15:45
Galerisiz NTVMSNBC için Adblock Plus filtresi
(Adblock Plus 0.7 or higher required) [Adblock]
! Checksum: OsB9a1W4Em1iQyn1Ahm61g
ntvmsnbc.com##[href^="http://fotogaleri.ntvmsnbc.com/"]
ntvmsnbc.com##[cn$="/Galeri"]
ntvmsnbc.com##[cn$="/Foto Galeri"]
ntvmsnbc.com##IMG[src="http://media.ntvmsnbc.com/i/msnbc/Components/Art/SITEWIDE/Icons/iSlides.gif"]
@yigitbey
yigitbey / set_wallpaper.py
Created February 28, 2011 16:31 — forked from stchris/getimg.py
Adding option to use feh as an alternative tool to set background on non-gnome systems
#!/usr/bin/env python
"""
set_wallpaper.py
Gets the current image of the day from NASA and sets it as the
background in Gnome by gconftool or feh on other systems.
The summary / description text is written to the image.
Requires:
PIL (apt-get install python-imaging or pip install PIL)
#!/bin/bash
#Usage: ./wordpresskur kulup_adi kulup_sifresi
KULUP=$1
SIFRE=$2
KLASOR="/home/$KULUP/public_html/"
ESSIZ=`head /dev/urandom | md5sum`
#! /usr/bin/python
import sys
import os
import shutil
import random
os.system('find . -name \*.mp3 > input')
if os.path.isdir('output'):