Skip to content

Instantly share code, notes, and snippets.

@jzzdog
Last active October 19, 2021 07:14
Show Gist options
  • Save jzzdog/8a74689e9b945a333417 to your computer and use it in GitHub Desktop.
Save jzzdog/8a74689e9b945a333417 to your computer and use it in GitHub Desktop.

Revisions

  1. jzzdog revised this gist Aug 22, 2018. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Git tooltips.rdoc
    Original file line number Diff line number Diff line change
    @@ -32,4 +32,7 @@ Use this commands to manage you project repository
    project dir$ git add .
    project dir$ git commint -m "my commit options"
    project dir$ git checkout .
    project dir$ git status
    project dir$ git status

    refresh cached remote repositories list
    git remote update origin --prune
  2. jzzdog renamed this gist Feb 20, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. jzzdog revised this gist Dec 4, 2014. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -15,14 +15,17 @@ Path to config in windows 7 you can find at <tt> C:\Users\username\.GITCONFIG </
    or type
    <tt>git config http.sslVerify false</tt>


    == Global configuration
    use this commants to update global configuration
    $ git config --global --add user.name jzzdog
    $ git config --global --add user.email [email protected]
    check configuration
    $ git config --global --list


    == Project commands
    Use this commands to manage you project repository
    project dir$ git init
    $ git clone https://github.com/jzzdog/azcommunity.git
    project dir$ git pull origin bootstrap
  4. jzzdog revised this gist Dec 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    ====Ubuntu
    $ sudo apt-get install git

    *Windows*
    ====Windows
    install git from downloaded setup file.
    Add this block to config to ignore ssl verification erros or increase buffer

  5. jzzdog revised this gist Dec 4, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,16 @@
    == Git installation

    *Ubuntu*
    ====Ubuntu
    $ sudo apt-get install git

    *Windows*

    install git from downloaded setup file.
    Add this block to config to ignore ssl verification erros or increase buffer

    [http]
    sslVerify = false
    postBuffer = 524288000


    Path to config in windows 7 you can find at <tt> C:\Users\username\.GITCONFIG </tt>
    or type
    <tt>git config http.sslVerify false</tt>
    @@ -22,6 +21,7 @@ or type
    check configuration
    $ git config --global --list


    == Project commands
    project dir$ git init
    $ git clone https://github.com/jzzdog/azcommunity.git
  6. jzzdog revised this gist Dec 4, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -16,13 +16,13 @@ Path to config in windows 7 you can find at <tt> C:\Users\username\.GITCONFIG </
    or type
    <tt>git config http.sslVerify false</tt>

    == global configuration
    == Global configuration
    $ git config --global --add user.name jzzdog
    $ git config --global --add user.email [email protected]
    check configuration
    $ git config --global --list

    == project commands
    == Project commands
    project dir$ git init
    $ git clone https://github.com/jzzdog/azcommunity.git
    project dir$ git pull origin bootstrap
  7. jzzdog revised this gist Dec 4, 2014. 1 changed file with 12 additions and 12 deletions.
    24 changes: 12 additions & 12 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -16,17 +16,17 @@ Path to config in windows 7 you can find at <tt> C:\Users\username\.GITCONFIG </
    or type
    <tt>git config http.sslVerify false</tt>

    === global configuration
    $ git config --global --add user.name jzzdog
    $ git config --global --add user.email [email protected]
    #check configuration
    $ git config --global --list
    == global configuration
    $ git config --global --add user.name jzzdog
    $ git config --global --add user.email [email protected]
    check configuration
    $ git config --global --list

    == project commands
    project dir$ git init
    $ git clone https://github.com/jzzdog/azcommunity.git
    project dir$ git pull origin bootstrap
    project dir$ git add .
    project dir$ git commint -m "my commit options"
    project dir$ git checkout .
    project dir$ git status
    project dir$ git init
    $ git clone https://github.com/jzzdog/azcommunity.git
    project dir$ git pull origin bootstrap
    project dir$ git add .
    project dir$ git commint -m "my commit options"
    project dir$ git checkout .
    project dir$ git status
  8. jzzdog revised this gist Dec 4, 2014. 1 changed file with 3 additions and 6 deletions.
    9 changes: 3 additions & 6 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -16,20 +16,17 @@ Path to config in windows 7 you can find at <tt> C:\Users\username\.GITCONFIG </
    or type
    <tt>git config http.sslVerify false</tt>

    * global configuration
    === global configuration
    $ git config --global --add user.name jzzdog
    $ git config --global --add user.email [email protected]
    #check configuration
    $ git config --global --list

    * project commands
    == project commands
    project dir$ git init
    $ git clone https://github.com/jzzdog/azcommunity.git
    project dir$ git pull origin bootstrap
    project dir$ git add .
    project dir$ git commint -m "my commit options"
    project dir$ git checkout .
    project dir$ git status


    # * Style guide based on Rails documention module Namespace #:nodoc: don't document this # Generic Namespace exception class class NamespaceError < StandardError end # Raised when... class SpecificError < NamespaceError end # Document the responsibility of the class # # == Heading # # Use headings to break up descriptions # # == Formatting # # Embody +parameters+ or +options+ in Teletype Text tags. You can also use # *bold* or *italics* but must use HTML tags for <b>multiple words</b>, # <i>like this</i> and <tt>like this</tt>. class Base # RDOC documents constants as well MAX_NUMBER_OF_BOOKINGS = 3 # Write comments above for accessors, this will be presented as [R/W] attr_accessor :first_name # However this one will be presented as [R] attr_reader :name def initialize(string) #:notnew: stops RDoc from seeing the initialize method as the new method end # Desribe the behaviour of the method # # ==== Attributes # # * +remove_string+ - Document the first attribute # * +append_string+ - Document the second attribute # * +options+ - Document the third attribute # # ==== Options # # You may which to break out options as a separate item since there maybe # multiple items. Note options are prefixed with a colon, denoting them # as a # # * +:conditions+ - An SQL fragment like "administrator = 1" # * +:order+ - An SQL fragment like "created_at DESC, name". # * +:group+ - An attribute name by which the result should be grouped # * +:limit+ - An integer determining the limit on the number of rows that should be returned. # * +:offset+ - An integer determining the offset from where the rows should be fetched. # * +:joins+ - Either an SQL fragment for additional joins like "LEFT JOIN comments ON comments.post_id = id" (rarely needed) # # ==== Examples # # Illustrate the behaviour of the method using examples. Indent examples: # # base = Base.new("Example String") # base.method_name("Example", "more") def method_name(remove_string, append_string, options) end end end # Examples from Active Record module ActiveRecord #:nodoc: # Generic Active Record exception class. class ActiveRecordError < StandardError end # Raised when the single-table inheritance mechanism failes to locate the subclass # (for example due to improper usage of column that +inheritance_column+ points to). class SubclassNotFound < ActiveRecordError #:nodoc: end class Base # A generic "counter updater" implementation, intended primarily to be # used by increment_counter and decrement_counter, but which may also # be useful on its own. It simply does a direct SQL update for the record # with the given ID, altering the given hash of counters by the amount # given by the corresponding value: # # ==== Attributes # # * +id+ - The id of the object you wish to update a counter on. # * +counters+ - An Array of Hashes containing the names of the fields # to update as keys and the amount to update the field by as values. # # ==== Examples # # # For the Post with id of 5, decrement the comment_count by 1, and # # increment the action_count by 1 # Post.update_counters 5, :comment_count => -1, :action_count => 1 # # Executes the following SQL: # # UPDATE posts # # SET comment_count = comment_count - 1, # # action_count = action_count + 1 # # WHERE id = 5 def update_counters(id, counters) updates = counters.inject([]) { |list, (counter_name, increment)| sign = increment < 0 ? "-" : "+" list << "#{connection.quote_column_name(counter_name)} = #{connection.quote_column_name(counter_name)} #{sign} #{increment.abs}" }.join(", ") update_all(updates, "#{connection.quote_column_name(primary_key)} = #{quote_value(id)}") end end end - See more at: http://blog.firsthand.ca/2010/09/ruby-rdoc-example.html#sthash.716mtV74.dpuf
    project dir$ git status
  9. jzzdog revised this gist Dec 4, 2014. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,8 @@
    *Ubuntu*
    $ sudo apt-get install git

    ((*Windows*))
    *Windows*

    Add this block to config to ignore ssl verification erros or increase buffer

    [http]
  10. jzzdog revised this gist Dec 4, 2014. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,9 @@
    == Git installation
    йцук

    *Ubuntu*
    $ sudo apt-get install git
    йцук
    [Windows]
    $ sudo apt-get install git

    ((*Windows*))
    Add this block to config to ignore ssl verification erros or increase buffer

    [http]
  11. jzzdog revised this gist Dec 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    == Git installation
    йцук

    йцук
    *Ubuntu*
    $ sudo apt-get install git
    йцук
    [Windows]
  12. jzzdog revised this gist Dec 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    == Git installation
    йцук
    [Ubuntu]

    йцук
    $ sudo apt-get install git
    йцук
  13. jzzdog revised this gist Dec 4, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    == Git installation

    йцук
    [Ubuntu]

    йцук
    $ sudo apt-get install git

    йцук
    [Windows]
    Add this block to config to ignore ssl verification erros or increase buffer

  14. jzzdog revised this gist Dec 4, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    == Git installation

    [Ubuntu]
    ыва
    <tt>$ sudo apt-get install git</tt>
    ыва

    $ sudo apt-get install git

    [Windows]
    Add this block to config to ignore ssl verification erros or increase buffer

  15. jzzdog revised this gist Dec 4, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    == Git installation

    [Ubuntu]

    ыва
    <tt>$ sudo apt-get install git</tt>

    ыва
    [Windows]
    Add this block to config to ignore ssl verification erros or increase buffer

  16. jzzdog revised this gist Dec 4, 2014. 1 changed file with 0 additions and 8 deletions.
    8 changes: 0 additions & 8 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,5 @@


    any text



    == Git installation

    any text

    [Ubuntu]

    <tt>$ sudo apt-get install git</tt>
  17. jzzdog revised this gist Dec 4, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -16,8 +16,8 @@ any text
    Add this block to config to ignore ssl verification erros or increase buffer

    [http]
    sslVerify = false
    postBuffer = 524288000
    sslVerify = false
    postBuffer = 524288000


    Path to config in windows 7 you can find at <tt> C:\Users\username\.GITCONFIG </tt>
  18. jzzdog revised this gist Dec 4, 2014. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,5 @@




    any text


    @@ -17,7 +15,7 @@ any text
    [Windows]
    Add this block to config to ignore ssl verification erros or increase buffer

    "[http]"
    [http]
    sslVerify = false
    postBuffer = 524288000

  19. jzzdog revised this gist Dec 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@

    == Git installation

    any text
    any text

    [Ubuntu]

  20. jzzdog revised this gist Dec 4, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,8 @@

    == Git installation

    any text

    [Ubuntu]

    <tt>$ sudo apt-get install git</tt>
  21. jzzdog revised this gist Dec 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@



    END
    any text



  22. jzzdog revised this gist Dec 4, 2014. 1 changed file with 2 additions and 5 deletions.
    7 changes: 2 additions & 5 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,7 @@


    = SYNOPSIS
    here.is_a?(Piece::Of::Code)
    print <<"END"
    This indented block will not be scanned for formatting
    codes or directives, and spacing will be preserved.


    END


  23. jzzdog revised this gist Dec 4, 2014. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,11 @@


    print <<"END"
    = SYNOPSIS
    here.is_a?(Piece::Of::Code)
    print <<"END"
    This indented block will not be scanned for formatting
    codes or directives, and spacing will be preserved.
    END



  24. jzzdog revised this gist Dec 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@


    any text
    print <<"END"



  25. jzzdog revised this gist Dec 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@


    print <<"END"
    any text



  26. jzzdog revised this gist Dec 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@

    here.is_a?(Piece::Of::Code)

    print <<"END"


  27. jzzdog revised this gist Dec 4, 2014. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,7 @@

    here.is_a?(Piece::Of::Code)
    print <<"END"
    This indented block will not be scanned for formatting
    codes or directives, and spacing will be preserved.



    == Git installation
  28. jzzdog revised this gist Dec 4, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@

    SYNOPSIS
    here.is_a?(Piece::Of::Code)
    print <<"END"
    This indented block will not be scanned for formatting
  29. jzzdog revised this gist Dec 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@

    == SYNOPSIS
    SYNOPSIS
    here.is_a?(Piece::Of::Code)
    print <<"END"
    This indented block will not be scanned for formatting
  30. jzzdog revised this gist Dec 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion git newby notes.rdoc
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    print <<"END"
    This indented block will not be scanned for formatting
    codes or directives, and spacing will be preserved.
    END


    == Git installation