- Working with Branches
- Creating and applying patches
- Set up your project to be shared
- Tagging the repo
- Using Vim Fugitive
- Have Git Remember Your UserName
- Update all submodules with:
git submodule foreach 'git pull'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby -wKU | |
| input = File.new 'input.txt' | |
| output = File.new 'output.txt', 'w' | |
| input.each_line do |line| | |
| account = line.split '-' | |
| puts " #{"%011d" % account[0]}#{account[1]}" | |
| output << " #{"%011d" % account[0]}#{account[1]}" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- DELETE THE BabyInformation DUPLICATES | |
| BEGIN | |
| SELECT [PA-PT-NO-WOSCD], [PA-ACCT-TYPE], [PA-CTL-PAA-XFER-DATE], | |
| COUNT([PA-PT-NO-WOSCD]) AS dupes, MAX([PA-REC-CREATE-DATE]) AS last_occurance, | |
| MIN([PA-REC-CREATE-DATE]) AS first_occurance | |
| INTO #BabyInformation_dupes | |
| FROM BabyInformation | |
| GROUP BY [PA-PT-NO-WOSCD], [PA-ACCT-TYPE], [PA-CTL-PAA-XFER-DATE] | |
| DELETE FROM BabyInformation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require "mongo" | |
| connection = Mongo::Connection.new | |
| connection.database_names.each do |name| | |
| if name.include?('icd_') | |
| puts "#{DateTime.now} - #{name}" | |
| adhocs = connection.db(name).collection('adhocs') | |
| scheduled = adhocs.find( { "schedule" => /.*/ } ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /****************************************************************************** | |
| * Script to copy indexes from the old table to a new one * | |
| * Created By Ed Botzum * | |
| * Created on 10/27/2010 * | |
| *******************************************************************************/ | |
| Declare @table_name as nvarchar(100) | |
| Declare @new_table_name as nvarchar(100) | |
| Declare @index_name as nvarchar(100) | |
| Declare @column_name as nvarchar(100) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace 'rails' do | |
| desc 'Renames the current app' | |
| task 'rename' do | |
| # Get the new name | |
| new_name = ENV["NEW_NAME"].capitalize || nil | |
| if new_name.nil? | |
| puts "\nYou must pass in a new name" | |
| exit | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby -wKU | |
| require "FileUtils" | |
| puts "#{Time.now} - Getting documents that were proccessd." | |
| docs = File.new 'document_list.txt', 'w' | |
| Dir.glob( '*.log' ) do |log_file| | |
| puts " Reading #{log_file}" | |
| docs << "#{log_file}\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'coderay' | |
| require 'win32/clipboard' | |
| require 'htmlclipboard.rb' | |
| include Win32 | |
| # gather the file information | |
| code_file_name = ARGV[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'RedCloth' | |
| require 'net/ssh' | |
| require 'net/scp' | |
| host_name = 'host_name' | |
| username = 'user_name' | |
| password = 'password' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby -wKU | |
| output = File.new( 'processed.yml', 'w' ) | |
| (1..85).each do |number| | |
| file_name = "batch_acquire_results_#{number}.log" | |
| puts "Reading #{file_name}" | |
| input = File.new( file_name, 'r' ) | |
| output << "#{file_name}\n" | |
| input.each_line do |line| |
