Skip to content

Instantly share code, notes, and snippets.

View tolgahanuzun's full-sized avatar
🤖
Exterminatedddddd

Tolgahan ÜZÜN tolgahanuzun

🤖
Exterminatedddddd
View GitHub Profile
@erhan
erhan / eksi.py
Created July 9, 2016 22:40
Eksi entry crawler
"""
#Eksi entry crawler
#Python 3.5
#Mongodb - Beautifulsoup example
requirements.txt
----
pymongo
requests
beautifulsoup4
@graceavery
graceavery / harryPotterAliases
Last active September 20, 2024 22:13
bash aliases for Harry Potter enthusiasts
alias accio=wget
alias avadaKedavra='rm -f'
alias imperio=sudo
alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"'
alias stupefy='sleep 5'
alias wingardiumLeviosa=mv
alias sonorus='set -v'
alias quietus='set +v'
@haibnu
haibnu / git-komutlari.txt
Last active April 17, 2020 17:19
Git Komutları
GIT KOMUTLARI
---------------
- KULLANICI BILGILERI :
git config --global user.name "kullanıcı adı / rumuz"
git config --global user.email "E-posta"
git config --list # Calisma ve kullanici bilgilerini göster
@mabdrabo
mabdrabo / sound_recorder.py
Created January 28, 2014 23:05
Simple script to record sound from the microphone, dependencies: easy_install pyaudio
import pyaudio
import wave
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100
CHUNK = 1024
RECORD_SECONDS = 5
WAVE_OUTPUT_FILENAME = "file.wav"
@sloria
sloria / bobp-python.md
Last active December 8, 2025 02:37
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@emre
emre / tmux_notlari.md
Last active September 21, 2023 11:58
tmux notları

başlangıç

yeni bir oturum başlatmak

tmux new -s oturum_adi

açılan oturumu "detach" etmek.

(görünürde çıkıyoruz ama arkaplanda komut(lar) çalışmaya devam ediyor.)

@rgreenjr
rgreenjr / postgres_queries_and_commands.sql
Last active December 30, 2025 11:27
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
@dAnjou
dAnjou / flask-upload
Created June 5, 2012 12:35
Flask upload example
<VirtualHost *>
ServerName example.com
WSGIDaemonProcess www user=max group=max threads=5
WSGIScriptAlias / /home/max/Projekte/flask-upload/flask-upload.wsgi
<Directory /home/max/Projekte/flask-upload>
WSGIProcessGroup www
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
@tkaemming
tkaemming / example.py
Created March 8, 2012 01:25
python logging timer decorator
import logging, time
from timer import timed
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
handler = logging.StreamHandler()
handler.setLevel(logging.DEBUG)
logger.addHandler(handler)
@tomas-stefano
tomas-stefano / receive.py
Created August 20, 2011 03:52
RabbitMQ example in python
import pika
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connection.channel()
channel.queue_declare(queue='hello')
def callback(ch, method, properties, body):
"""docstring for callback"""
print "[x] Received: %r" % (body,)