Treat git log as a book, exec git next
or git prev
to checkout the next or the previous commit.
Please check hutusi/git-paging for updates.
#!/bin/sh | |
# | |
# This script will make WinMerge your default tool for diff and merge. | |
# It must run inside git bash (on Windows) | |
# | |
# If your WinMerge is in other place then this one, please edit | |
WINMERGE_SCRIPT="winmerge-merge.sh" |
# To enable smtp email delivery for your GitLab instance do next: | |
# 1. Change config/environments/production.rb to use smtp | |
# config.action_mailer.delivery_method = :smtp | |
# 2. Rename this file (config/initializers/smtp_settings.rb) to smtp_settings.rb | |
# 3. Edit settings inside this file | |
# 4. Restart GitLab instance | |
# | |
if Gitlab::Application.config.action_mailer.delivery_method == :smtp | |
ActionMailer::Base.smtp_settings = { | |
address: "smtp.gmail.com", |
REST | |
https://restful-api-design.readthedocs.org/en/latest/methods.html | |
AllCops: | |
RunRailsCops: true | |
# Commonly used screens these days easily fit more than 80 characters. | |
Metrics/LineLength: | |
Max: 120 | |
# Too short methods lead to extraction of single-use methods, which can make | |
# the code easier to read (by naming things), but can also clutter the class | |
Metrics/MethodLength: |
class User < ActiveRecord::Base | |
# == Constants ============================================================ | |
# == Attributes =========================================================== | |
# == Extensions =========================================================== | |
# == Relationships ======================================================== |
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
Treat git log as a book, exec git next
or git prev
to checkout the next or the previous commit.
Please check hutusi/git-paging for updates.