Skip to content

Instantly share code, notes, and snippets.

View ku1ik's full-sized avatar
👋

Marcin Kulik ku1ik

👋
View GitHub Profile
class A
def foo
"jola"
end
def bar
p foo
if false
foo = "misio"
@ku1ik
ku1ik / .Xmodmap
Created July 1, 2012 18:35
Remap CapsLock as Control
! Caps Lock as Ctrl
clear Lock
keycode 0x7e = Control_R
add Control = Control_R
--------- beginning of /dev/log/system
I/Vold ( 1232): Vold 2.1 (the revenge) firing up
D/Vold ( 1232): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 1232): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
D/DirectVolume( 1232): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 65, PARTN 1
D/Vold ( 1232): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted)
I/SystemServer( 1350): Entered the Android system server!
I/SystemServer( 1350): Entropy Service
I/SystemServer( 1350): Power Manager
I/SystemServer( 1350): Activity Manager
--------- beginning of /dev/log/system
I/Vold ( 1232): Vold 2.1 (the revenge) firing up
D/Vold ( 1232): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 1232): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
D/DirectVolume( 1232): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 65, PARTN 1
D/Vold ( 1232): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted)
I/SystemServer( 1350): Entered the Android system server!
I/SystemServer( 1350): Entropy Service
I/SystemServer( 1350): Power Manager
I/SystemServer( 1350): Activity Manager
code/ascii.io (puma*?) % bib
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.0.4)
Using activesupport (3.2.1)
Using builder (3.0.0)
Using activemodel (3.2.1)
Using erubis (2.7.0)
Using journey (1.0.1)
Using rack (1.4.1)
code/ascii.io (puma*) % ./script/rails c
A syntax error has occurred:
duplicate block argument name
near line /home/kill/.rvm/gems/rbx-head/gems/draper-0.11.1/lib/draper/base.rb:216, column 64
Code:
self.class.send :define_method, method do |*args, &block|
^
Backtrace:
code/ascii.io (puma*) % bib
Fetching gem metadata from http://rubygems.org/......
Fetching gem metadata from http://rubygems.org/..
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.0.4)
Using activesupport (3.2.1)
Using builder (3.0.0)
Using activemodel (3.2.1)
Using erubis (2.7.0)
@ku1ik
ku1ik / gems.txt
Created June 5, 2012 20:03
bundle.txt
code/ascii.io (puma*) % gem li
*** LOCAL GEMS ***
bundler (1.1.4 ruby)
rake (0.9.2.2)
rubygems-bundler (1.0.2)
rvm (1.11.3.3)
code/ascii.io (puma*) %
@ku1ik
ku1ik / gist:2795208
Created May 26, 2012 20:26
7 redirects until destination reached thanks to URL shorteners
~ % curl -L -I http://t.co/stmmWY5q
HTTP/1.1 301 Moved Permanently
Date: Sat, 26 May 2012 20:24:23 GMT
Server: hi
Location: http://cl.ly/2P1q3E1V1I312N432A34
Cache-Control: private,max-age=300
Expires: Sat, 26 May 2012 20:29:23 GMT
Connection: close
Content-Type: text/html; charset=UTF-8
arcins-Mac:build kill$ ctest --verbose
UpdateCTestConfiguration from :/Users/kill/stderred/build/DartConfiguration.tcl
Parse Config file:/Users/kill/stderred/build/DartConfiguration.tcl
UpdateCTestConfiguration from :/Users/kill/stderred/build/DartConfiguration.tcl
Parse Config file:/Users/kill/stderred/build/DartConfiguration.tcl
Test project /Users/kill/stderred/build
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end