Skip to content

Instantly share code, notes, and snippets.

C64/Amiga Scener/Coder

Uğur Özyılmazel vigo

C64/Amiga Scener/Coder
Block or report user

Report or block vigo

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
vigo / free-memory.rb
Created Jan 27, 2012
"free" command for osx. Shows available memory
View free-memory.rb
#!/usr/bin/env ruby
# encoding: utf-8
# By Uğur Özyılmazel, @vigobronx | @ugurozyilmazel
# | |
def get_paged_memory_usage(match_string, paging=4096)
mvar = 3
if match_string.split(/[^\w]/).length > 1
mvar = 4
vigo /
Created Mar 14, 2019 — forked from hakib/
How to Turn Django Admin Into a Lightweight Dashboard
from django.contrib import admin
from django.db.models import Count, Sum, Min, Max, DateTimeField)
from django.db.models.functions import Trunc
from . import models
def get_next_in_date_hierarchy(request, date_hierarchy):

Workflows (States) in Django

I'm going to cover a simple, but effective, utility for managing state and transitions (aka workflow). We often need to store the state (status) of a model and it should only be in one state at a time.

Common Software Uses

  • Publishing (Draft->Approved->Published->Expired->Deleted)

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

Ruby Tips


  • Herşey bir Object (Nesne)
  • Her Object BasicObjectden türemiş. (Objective-C NSObject gibi...)
  • Object.methods ile o nesneye ait tüm method'lar
  • Object.methods.inspect string olarak method'lar
  • Mutlaka bir şey geriye döner. Hiçbir şey dönmese nil döner.

Style Guide

vigo /
Last active Apr 4, 2018
Basic JSON webserver
#!/usr/bin/env python
import sys
import time
import argparse
import os
import json
import socketserver
from http.server import BaseHTTPRequestHandler
class PubSub(object):
Very simple Pub/Sub pattern wrapper
using simplified Redis Pub/Sub functionality.
Usage (publisher)::
import redis
r = redis.Redis()
vigo /
Created Nov 12, 2017 — forked from hrldcpr/
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 /
Last active Jun 9, 2017
Türkçe Developer PodCast'leri

Türkçe Developer PodCast’leri


[Web][1a] - [iTunes][1b]


[Web][2a] - [iTunes][2b]


Shell Tips

Yazım Kuralları / Style Guide

if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi # tek satırda if


You can’t perform that action at this time.