Skip to content

Instantly share code, notes, and snippets.

Dimitry Nazarov dimanyc

  • thoughtbot
  • Brooklyn, NY
Block or report user

Report or block dimanyc

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
View .Xresources
XTerm*faceName: Bitstream Vera Serif Mono
xterm*faceSize: 13
xterm*vt100*geometry: 80x60
xterm*saveLines: 16384
xterm*VT100.Translations: #override \
Ctrl Shift <Key>V: insert-selection(CLIPBOARD) \n\
Ctrl Shift <Key>C: copy-selection(CLIPBOARD)
# update Xterm config:
dimanyc /
Last active Jul 14, 2016
basic VIM commands


v(*)"+y - will copy lines selected in Visual mode.


zfat or zfit - folds HTML by indentation?

Find / Replace:

:s%/foo/bar/g - Change each 'foo' to 'bar', (% means in every line)

dimanyc / capybara cheat sheet
Last active Mar 2, 2016 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
View capybara cheat sheet
=Clicking links and buttons=
click_link('Link Text')
click('Link Text') # Click either a link or a button
click('Button Value')

Common Google Analytics RegEx operators

^   beginning of string
$   end of string
.   any character (wildcard)
*   match 0 or more times
+   match 1 or more times 
?   match 0 or 1 time
|   alternative
dimanyc / doskey.bat
Last active Oct 22, 2015 — forked from PierreMage/PowerShell-profile.ps1
Make your Windows command line better with doskey
View doskey.bat
:: F7 = history
:: Alt+F7 = history -c
:: F8 = Ctrl+R
:: Use & to run multiple commands e.g.: command1 & command2
:: 1. Go to your Windows folder and find regedit.exe
:: 2. Head over to:
:: HKEY_LOCAL_MACHINE\Software\Microsoft\Command
:: or
View Game
def cls
system ('cls') #for cmd
system ('clear') #for mac / linux
class String
def green; "\033[32m#{self}\033[0m" end #< colorizing all instances of the main class String and method green. Solution taken from here:
def red; "\033[31m#{self}\033[0m" end
def brown; "\033[33m#{self}\033[0m" end
You can’t perform that action at this time.