Skip to content

Instantly share code, notes, and snippets.

Chromium CrCs2O4

Block or report user

Report or block CrCs2O4

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

Keybase proof

I hereby claim:

  • I am crcs2o4 on github.
  • I am crcs2o4 ( on keybase.
  • I have a public key ASABfJb3r9zFrMNVfB-t5KtZAVCwo4M-9iWkqKqFXWoYrwo

To claim this, I am signing this object:

View Git deleted branches
fsck --lost-found | grep commit | cut -d ' ' -f 3 | xargs -n 1 git log -n 1 --pretty=oneline
## Pre-requisite: You have to know your last commit message from your deleted branch.
git reflog
# Search for message in the list
# a901eda HEAD@{18}: commit: <last commit message>
# Now you have two options, either checkout revision or HEAD
git checkout a901eda
# Or
View Default (OSX).sublime-keymap
{ "keys": ["super+shift+'"], "command": "prompt_add_folder" },
{ "keys": ["super+shift+c"], "command": "goto_window" },
{ "keys": ["super+ctrl+s"], "command": "toggle_side_bar" },
{ "keys": ["super+ctrl+r"], "command": "reveal_in_side_bar" },
// { "keys": ["super+shift+right"], "command": "run_macro_file", "args": {"file": "res://Packages/User/split_and_move_to_pane.sublime-macro"}},
{ "keys": ["super+shift+right"], "command": "chain", "args": {"commands": [
[ "split_pane", {"commands": ["v"]} ],
[ "move_to_pane", {"direction": "right"} ]


Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.


# Namespace for classes and modules that handle serving documentation over HTTP
# @since 0.6.0
mkdir logs
export dir=$(pwd)
export ERRFILE=${dir}/logs/${LOGFILE}
cat /etc/os-release
CrCs2O4 / git_cherry_pick.rb
Created Aug 11, 2016
Ruby magic on cherry picking whole branch with merge fast-forward problems
View git_cherry_pick.rb
#!/usr/bin/env ruby
def system!(*args)
system(*args) || abort("\n== Command #{args} failed ==")
# you need to change this :)
commits = %w(a3d2f06 5a7867b f732f0c 1ae71c7 43c2c18 04d4e3c f477de2 446558e eec5628 2a8ea6a 8143565 4d54f04 87e04e2 4b6d641 0cdb2a6 de5af95)
# reverse because we need to cherry-pick commits first-last
CrCs2O4 / gems_homepages.rb
Last active Jun 4, 2018
Get ruby gems homepages fo fast googling. Sometimes 'gem list' is not enough
View gems_homepages.rb
#!/usr/bin/env ruby
# bundler exec ruby gems_homepages.rb
# based on
require 'rubygems'
def local_gems
Gem::Specification.sort_by{ |g| [, g.version] }.group_by{ |g| }
puts{ |name, specs|
You can’t perform that action at this time.