Skip to content

Instantly share code, notes, and snippets.

debreczeni /
Created May 2, 2012 16:41
Find large files in git repository
#set -x
# Shows you the largest objects in your repo's pack file.
# Written for osx.
# @see
# @author Antony Stubbs

Keybase proof

I hereby claim:

  • I am debreczeni on github.
  • I am davidd ( on keybase.
  • I have a public key ASC9WKA5kVQL0IDNxksA0K6woBL5EQaeDvWJfOfMBV0WFAo

To claim this, I am signing this object:

debreczeni / zendesk_ticket_and_comment_search_by_email.rb
Last active February 1, 2019 18:11
Zendesk Ticket search based on search query like "" and with results including comments. Using the official Zendesk API v2 ruby gem:
View zendesk_ticket_and_comment_search_by_email.rb
require 'zendesk_api'
class Zendesk
attr_accessor :client
def initialize
@client = do |config|
# Mandatory:
config.url = "<- your-zendesk-url ->" # e.g.
debreczeni / iban.rb
Created January 14, 2016 18:59
GIRO to IBAN converter in ruby
View iban.rb
class IBAN
def self.sanitize(account_number)
account_number.gsub(/\D*/, '')
def self.giro2iban(giro, country_code = 'HU')
giro = sanitize giro
unless giro.size == 16 || giro.size == 24
View virtuALL.css
// csikozas
#virtuall > tbody > tr.alt2 > td:nth-of-type(2) { background:#B6D8F5; }
// tabla kerekites
#virtuall { border-collapse:separate; }
#virtuall td, #virtuall th { border:1px solid #000000; border-width: 1px 1px 0 0;}
#virtuall tr:first-child th:first-child { -moz-border-radius-topleft: 10px; -webkit-border-top-left-radius: 10px; border-top-left-radius: 10px; }
#virtuall tr:first-child th:last-child { -moz-border-radius-topright: 10px; -webkit-border-top-right-radius: 10px; border-top-right-radius: 10px; }
#virtuall tr:last-child td:first-child { -moz-border-radius-bottomleft: 10px; -webkit-border-bottom-left-radius: 10px; border-bottom-left-radius: 10px; }
#virtuall tr:last-child td:last-child { -moz-border-radius-bottomright: 10px; -webkit-border-bottom-right-radius: 10px; border-bottom-right-radius: 10px; }
debreczeni / search_29ers_on_bikemag_apro.rb
Last active December 19, 2015 04:08
search for 29er mountain bikes on
View search_29ers_on_bikemag_apro.rb
#!/usr/bin/env ruby
require 'mechanize'
# require 'awesome_print'
# require 'pry-debugger'
class TwentyNiner
def initialize
@index_page_url = ''
@wheel_size = /29/
debreczeni / slip13.rb
Last active October 24, 2015 09:15
Ruby implementation of HD Structure of SLIP-0013 Authentication using deterministic hierarchy
View slip13.rb
# lib/slip13.rb
# Ruby implementation of SLIP-0013 : Authentication using deterministic hierarchy
module SLIP13
class HDNode
def initialize(uri, index = 0)
@uri = uri
@index = index
debreczeni /
Created May 10, 2012 12:19
This shell script displays large file in a git repository
#set -x
# Shows you the largest objects in your repo's pack file.
# Written for osx.
# @see
# @author Antony Stubbs
# set the internal field spereator to line break, so that we can iterate easily over the verify-pack output
debreczeni / rspec-syntax-cheat-sheet.rb
Created January 5, 2012 18:17 — forked from dnagir/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
View rspec-syntax-cheat-sheet.rb
# RSpec 2.0 syntax Cheet Sheet by
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
debreczeni / gist:1383786
Created November 21, 2011 20:14
how to install edge refinery cms for rails 3.1:
View gist:1383786

how to install edge refinery cms for rails 3.1:

install rail 3.1

gem install rails

generate new app from refinerycms github repo

rails new app_name -m