Skip to content

Instantly share code, notes, and snippets.

View bezborodow's full-sized avatar

Damien Bezborodov bezborodow

  • Adelaide, South Australia
  • 13:31 (UTC +09:30)
View GitHub Profile
@runeb
runeb / .gems
Created January 12, 2010 12:30
# Heroku .gems file
oauth
nokogiri
@matagus
matagus / hgrc
Created June 9, 2010 13:34
colorize your hg output <3
[extensions]
# enable color extension
color =
# enable extdiff extension (Extended Diff)
hgext.extdiff =
[extdiff]
# configure extended diff to use colordiff (requires colordiff installed in your system)
cmd.cdiff = colordiff
opts.cdiff = -uprN
@justjkk
justjkk / LICENSE
Last active January 11, 2026 18:47
Parsing JSON with lex and yacc
The MIT License (MIT)
Copyright (c) 2015 J Kishore Kumar
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@hrldcpr
hrldcpr / tree.md
Last active January 24, 2026 21:18
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!

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 20, 2026 03:27
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@cpliakas
cpliakas / ant-composer.xml
Created November 26, 2013 01:20
Apache Ant tagets for Composer commands.
<?xml version="1.0" encoding="UTF-8"?>
<project name="Composer Targets" default="build">
<property name="builddir" value="${basedir}/build"/>
<property name="composer" value="${builddir}/composer.phar"/>
<target name="php-check">
<condition property="php" value="php">
<not>
<isset property="${php}"/>
@timruffles
timruffles / ports.ex
Last active February 8, 2023 14:53
erlang ports bewlider me
defmodule LearningPorts do
def main do
parent = self()
# if we need to control STDIN, the fun begins:
# unfortunately we can't close the port's stdin without closing the port.
# so it'll block waiting forever for an EOF that'll never appear.
#
# so we use a wrapper program that allows us to specify a sentinel line
@sdieunidou
sdieunidou / Sweet-Dog.md
Last active July 11, 2026 16:10
Sweet Dog

Sweet Dog

Un guide bienveillant pour les propriétaires de chien : des parcours d'apprentissage, des guides pratiques, des fiches de races et un assistant qui répond à vos questions en s'appuyant uniquement sur ces guides.

Sweet Dog est un « concierge du canon » : son assistant ne répond qu'à partir des guides publiés ci-dessous et ne contredit jamais un guide. Édition française (langue de référence) ; l'édition anglaise suit, après le séparateur.

Démarrer