This file contains 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
# encoding: utf-8 | |
# -*- encoding : utf-8 -*- | |
class CreateBillingPayments < ActiveRecord::Migration | |
def self.up | |
create_table :billing_payments do |t| | |
t.integer :billing_invoice_id, :null => false | |
t.decimal :amount, :null => false | |
t.string :gateway, :null => false |
This file contains 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
PhaseScriptExecution "Run Script" ".tmp/SharedBuildResults/Main Project (Textual).build/Release/Build Frameworks.build/Script-4CCF301715804DD1006FFE21.sh" | |
cd /Users/aderyabin/code/Textual | |
setenv ACTION build | |
setenv ALTERNATE_GROUP staff | |
setenv ALTERNATE_MODE u+w,go-w,a+rX | |
setenv ALTERNATE_OWNER aderyabin | |
setenv ALWAYS_SEARCH_USER_PATHS YES | |
setenv APPLE_INTERNAL_DEVELOPER_DIR /AppleInternal/Developer | |
setenv APPLE_INTERNAL_DIR /AppleInternal | |
setenv APPLE_INTERNAL_DOCUMENTATION_DIR /AppleInternal/Documentation |
This file contains 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
PhaseScriptExecution "Run Script" ".tmp/SharedBuildResults/Main Project (Textual).build/Release/Build Frameworks.build/Script-4CCF301715804DD1006FFE21.sh" | |
cd /Users/aderyabin/code/Textual | |
setenv ACTION build | |
setenv ALTERNATE_GROUP staff | |
setenv ALTERNATE_MODE u+w,go-w,a+rX | |
setenv ALTERNATE_OWNER aderyabin | |
setenv ALWAYS_SEARCH_USER_PATHS YES | |
setenv APPLE_INTERNAL_DEVELOPER_DIR /AppleInternal/Developer | |
setenv APPLE_INTERNAL_DIR /AppleInternal | |
setenv APPLE_INTERNAL_DOCUMENTATION_DIR /AppleInternal/Documentation |
This file contains 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
Обычно говорят, «было приятно иметь дело». Так вот: не было. | |
Карма на самом деле принадлежит не тебе, а Хабрахабру. Карма показывает как ты добровольным рабским флудом работал на развитие проекта Хабрахабр. Карма показывает, как сильно тебя отымел Хабрахабр. | |
А модераторов Хабрахабр отымел особенно сильно, поэтому у них как раз макбуки. |
This file contains 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
# current | |
class AddAuthorIdToBooksTable < ActiveRecord::Migration | |
def change | |
add_column :books, :author_id, :integer | |
add_index :books, :author_id | |
end | |
end | |
# thought | |
class AddAuthorIdToBooksTable < ActiveRecord::Migration |
This file contains 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
<?php | |
/* | |
* Podcast URL Extractor | |
* implemented at http://itunes.so-nik.com | |
* | |
* All code has been re-written by lasavior. | |
* Original code & inspiration from Michael Sitarzewski, zerologic.com | |
* | |
* Ex: http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/viewPodcast?id=269238657 |
This file contains 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
puts <<-SNOWMAN | |
________ | |
* [________] . * | |
* . |________| / . * | |
| |/ | |
* ========= | |
* ______________ | |
* |||||| / \\ | |
||> || ( 0 0 ) . | |
. ||- | | O | |
This file contains 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
# encoding: utf-8 | |
# needs to be installed 7za, pgdbf | |
namespace :kladr do | |
PATH = 'tmp/kladr' | |
def import_options(database=nil) | |
host = ActiveRecord::Base.configurations[Rails.env]['host'] | |
user = ActiveRecord::Base.configurations[Rails.env]['username'] | |
host &&= "--host=#{host}" |
This file contains 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
mv ~/Library/Application\ Support/Skype ~/Dropbox/ | |
ln -s ~/Dropbox/Skype ~/Library/Application\ Support/Skype |
This file contains 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
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install build-essential | |
sudo mount /dev/cdrom /media/cdrom | |
cd /media/cdrom && sudo sh ./VBoxLinuxAdditions.run |