Skip to content

Instantly share code, notes, and snippets.

View ku1ik's full-sized avatar
👋

Marcin Kulik ku1ik

👋
View GitHub Profile
@ku1ik
ku1ik / .vimrc
Created February 27, 2012 13:44
augroup abbrevs
au!
" Ruby
au Filetype ruby ia log/ Rails.logger.debug
au Filetype ruby ia pry/ require 'pry'; binding.pry;
au Filetype ruby ia debug/ require 'ruby-debug'; debugger;
au Filetype ruby ia desc/ describe "" do<CR><ESC>?""<ESC>a
au Filetype ruby ia cont/ context "" do<CR><ESC>?""<ESC>a
#!/bin/bash
set -e
HOST="192.168.20.205"
SHELL_NAME=$(basename $SHELL)
log() {
echo -e "\x1b[1;32m$1\x1b[0m"
@ku1ik
ku1ik / gist:1694742
Created January 28, 2012 15:44
Install Cyanogenmod7 on HTC Desire S with hboot 2.00.0002

There's no need to make the phone S-OFF (like some people say).

  • Disable fast/quick reboot (Settings » Power » Fastboot)

  • Download fastboot binary

  • Unlock bootloader: http://htcdev.com/bootloader/

    Put the phone in Fastboot USB mode (Turn off, hold Volume Down + Power)

@ku1ik
ku1ik / gist:1626087
Created January 17, 2012 10:16
"Made of Code" theme for Vim
" Vim color file
" Converted from Textmate theme Made of Code using Coloration v0.3.2 (http://github.com/sickill/coloration)
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
@ku1ik
ku1ik / gist:1469294
Created December 12, 2011 21:53
Gówno ożyło!
- Odwołaj!
- Odwołaj to powiedziała twoja stara po tym jak się twój stary schlapał.
# Copyright (C) 2011 Lunar Logic Polska http://www.lunarlogicpolska.com
# Author: Jaroslaw Skrzypek jaroslaw.skrzypek(at)llp.pl
#
# 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:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
import sys, os, time, getopt
import pty
mode = 'wb'
shell = 'sh'
filename = 'typescript'
if 'SHELL' in os.environ:
shell = os.environ['SHELL']
try:
@ku1ik
ku1ik / gist:1362150
Created November 13, 2011 14:15
Reinventing the wheel FTW!
27+ ruby gems for colorizing terminal output!
27+ gems doing the same simple thing!
http://rubygems.org/gems/ansi
http://rubygems.org/gems/ansi_colors
http://rubygems.org/gems/cli-colorize
http://rubygems.org/gems/col
http://rubygems.org/gems/colorb
http://rubygems.org/gems/colored
http://rubygems.org/gems/colorer
# Rehash before completing commands
zstyle ":completion:*:commands" rehash 1
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = https://username:[email protected]/someuser/some-repo.git
[branch "master"]
remote = origin