Skip to content

Instantly share code, notes, and snippets.

@raineorshine
raineorshine / _sublime-cheat-sheet.md
Last active October 26, 2020 08:05
Sublime Cheat Sheet

Selection and Navigation

⌘D                Multi-select
⌘K,⌘D             Skip the current match and select the next one
⌘U                Soft Undo
⌘ + Ctrl + G      Select all occurences under cursor
⌘P                Jump to files
⌘L                Select Line
⌘ + Shift + L     Convert Selection to Multi-select

⌘ + Shift + J Select all lines at current indentation

@raineorshine
raineorshine / practical-vim-commands
Last active December 24, 2015 20:39
Practical Vim Commands: The most basic commands that I use the most.Sublime Text 2 Vintage Mode: http://www.sublimetext.com/docs/2/vintage.html. Learn Vim: http://openvim.com
// Navigation
w // move to the end of a word
b // move to the beginning of a word
% // go to matching bracket
0 // go to beginning of line
$ // go to end of line
{ // move up by a block
} // move down by a block
gg // move to the top of the file
G // move to the bottom of the file
@bastibense
bastibense / README.md
Last active September 28, 2020 03:53
Fix blurry fonts on some external monitors when using MacBook Pro Retina

How to fix blurry fonts on some external monitors when using MacBook Pro Retina

It seems that graphcis and fonts look rather blurry on some monitors when hooked up to a MacBook Pro (Retina). This might fix the issue for you:

  1. Download patch-edid.rb from http://embdev.net/attachment/168316/patch-edid.rb

  2. Execute in Terminal (without the $):

    $ ruby patch-edid.rb

  3. Copy produced folder (example: DisplayVendorID-22f0) to /System/Library/Displays/Overrides (authorize if needed, if the folder exists, backup it before)

@voising
voising / gists_to_dash_db.rb
Last active October 21, 2021 21:32
Connect Gists with Dash (Code Snippet Manager)
#!/usr/bin/env ruby
if ARGV[0].nil? || ARGV[0].match(/-h/)
puts "Usage : #{$0} github_username dash_sqlite_db char_appended_to_keyword [no_comments]"
exit
end
require 'net/http'
require 'open-uri'
#require 'awesome_print'
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')