Skip to content

Instantly share code, notes, and snippets.

View vigo's full-sized avatar
📺
Everything that has a beginning has an end.

Uğur Özyılmazel vigo

📺
Everything that has a beginning has an end.
View GitHub Profile
@vigo
vigo / git-tips-00-main.md
Last active June 19, 2024 10:49
Git Tips

Git İpuçları

Genel Bilgiler

Her komut ile ilgili yardımı komut satırından alabilirsiniz:

git help
git help add                 # git-add hakkında yardım
git help merge               # git-merge hakkında yardım
@vigo
vigo / textmate_arrange_windows.applescript
Created June 3, 2024 14:14
Arrange TextMate windows
on run
tell application "Finder"
set DesktopSize to bounds of window of desktop
set DesktopWidth to item 3 of DesktopSize
set DesktopHeight to item 4 of DesktopSize
end tell
tell application "TextMate"
activate
set WindowsList to (every window where visible is true)
@vigo
vigo / Makefile
Created October 23, 2023 18:25 — forked from LiquidityC/Makefile
Generic drop in Makefile
VERSION = \"1.0.0\"
PREFIX ?= out
INCDIR = inc
SRCDIR = src
LANG = c
OBJDIR = .obj
MODULE = binary_name
CC = gcc
@vigo
vigo / django-bash-completion.bash
Created November 30, 2022 12:56
django bash completion
# #########################################################################
# This bash script adds tab-completion feature to django-admin.py and
# manage.py.
#
# Testing it out without installing
# =================================
#
# To test out the completion without "installing" this, just run this file
# directly, like so:
#
@vigo
vigo / Rakefile
Last active November 25, 2022 06:23
Rake task örneği
task :default => [:menemen_yap]
task :menemen_yap => [:tereyag_al, :yumurta_al, :domates_al, :sivri_biber_al, :sahani_isit, :sebzeleri_pisir, :yumartayi_kir] do
puts "Menemen yapıyıyoruz"
end
task :tereyag_al => [:bakkala_git] do
puts "Tereyağı alıyoruz"
end
@vigo
vigo / liste.bash
Created September 4, 2022 10:03
Pretty $PATH printer!
#!/usr/bin/env bash
#
# Created by Uğur "vigo" Özyılmazel on 2017-04-26.
# Copyright (c) 2017 VB YAZILIM. All rights reserved.
set -e
set -o pipefail
usage() {
cat <<EOF
@vigo
vigo / keybase.md
Created May 11, 2022 03:35
keybase.md

Keybase proof

I hereby claim:

  • I am vigo on github.
  • I am vigo (https://keybase.io/vigo) on keybase.
  • I have a public key whose fingerprint is 19CA CF8F 3AB4 06F6 D644 5842 D097 2B1B BE84 BBE4

To claim this, I am signing this object:

@vigo
vigo / tree.md
Created November 12, 2017 19:20 — forked from hrldcpr/tree.md
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!

@vigo
vigo / pubsub.py
Created March 13, 2018 19:26 — forked from mklymyshyn/pubsub.py
class PubSub(object):
"""
Very simple Pub/Sub pattern wrapper
using simplified Redis Pub/Sub functionality.
Usage (publisher)::
import redis
r = redis.Redis()
@vigo
vigo / json_server.py
Last active January 26, 2022 11:57
Basic JSON webserver
#!/usr/bin/env python
import sys
import time
import argparse
import os
import json
import socketserver
from http.server import BaseHTTPRequestHandler