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
| public static Company CreateCompany(string name) | |
| { | |
| if (name == null) throw new ArgumentNullException("name"); | |
| var company = new Company {Name = name, Address = "100 My Address, SomeWhere NC"}; | |
| using (var pe = DBContextFactory.Instance.Create()) | |
| { | |
| pe.Company.Add(company); | |
| pe.SaveChanges(); | |
| return company; | |
| } |
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
| <table width="100%" cellpadding="0" cellspacing="0" border="0" id="backgroundTable" st-sortable="banner"> | |
| <tbody> | |
| <tr> | |
| <td> | |
| <table width="600" bgcolor="#d3d3d3" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth"> | |
| <tbody> | |
| <tr> | |
| <td width="100%"> | |
| <table width="600" align="center" cellspacing="0" cellpadding="0" border="0" class="devicewidth"> | |
| <tbody> |
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
| Gem::Specification.new do |s| | |
| s.name = "wiw" | |
| s.version = "0.9.0" | |
| s.homepage = "https://github.com/jjeffers/wiw" | |
| s.add_runtime_dependency "rest-client" | |
| s.add_runtime_dependency "activemodel" | |
| s.add_development_dependency "minitest" | |
| s.add_development_dependency "minitest-vcr" | |
| s.add_development_dependency "fakeweb" | |
| s.add_development_dependency "vcr" |
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
| gem install brakeman | |
| brakeman |
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
| gem install brakeman | |
| brakeman |
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
| stdin, stdout, stderr = Open3.popen3(cmd, args) | |
| logger.info stdout |
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
| system(cmd, arg1, ...) |
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
| ls -al | rm -rf / |
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
| cmd = "ls -al #{params[:user_id]}" | |
| logger.info %x[#{cmd}] |
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
| logger.info %x[#{cmd}] |