- Create a folder at the root of your user home folder
(Example:
C:/Users/uname/) called.ssh. - Create the following files if they do not already exist (paths begin from the root of your user home folder):
.ssh/config
| public void ExtractEmbeddedResourcesToFiles() | |
| { | |
| Assembly a = typeof (SomeTypeFromAssemblyWithResources).Assembly; | |
| string d = Path.GetDirectoryName(a.Location); | |
| string outputDir = Path.Combine(d, subFolder); | |
| if (Directory.Exists(outputDir) == false) | |
| { | |
| Directory.CreateDirectory(outputDir); | |
| } | |
| List<string> rs = a.GetManifestResourceNames().Where(n => n.Contains(prefix)).ToList(); |
| using System; | |
| using System.IO; | |
| using System.Text; | |
| namespace ConsoleApplication2 | |
| { | |
| internal class Program | |
| { | |
| private static void Main(string[] args) | |
| { |
| /// <summary> | |
| /// The hack for substitution of standard configuration file | |
| /// question at StackOweflow: http://stackoverflow.com/questions/6150644/change-default-app-config-at-runtime | |
| /// a solution: http://stackoverflow.com/a/6151688/2833774 | |
| /// </summary> | |
| public abstract class AppConfigChanger : IDisposable | |
| { | |
| public static AppConfigChanger Change(string path) | |
| { | |
| return new AppConfigSubstitutor(path); |
| public static int[] ToIntArray(this string text) | |
| { | |
| if (string.IsNullOrWhiteSpace(text)) | |
| { | |
| return new int[] | |
| { | |
| }; | |
| } | |
| List<int> result = new List<int>(); |
| Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <meta name="robots" content="noindex, nofollow"> | |
| <meta name="googlebot" content="noindex, nofollow"> | |
| <script src="http://code.jquery.com/jquery-git.min.js"></script> | |
| <style type="text/css"> | |
| body { | |
| margin: 0px; | |
| padding: 0px; |
| /* | |
| - Get default constraints of database with definition | |
| - Several scripts to deal with locks in database | |
| - Convert rows to columns in SQL | |
| - SQL to select from XML | |
| - Get table sizes | |
| */ |
| // variable declaration | |
| private static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | |
| // You have several options to make it alive | |
| // 1) AssemblyInfo.cs | |
| [assembly: log4net.Config.XmlConfigurator(Watch = true)] | |
| // 2) manual kick in the beginning of program execution | |
| XmlConfigurator.Configure(); |
| public static string ToJson(this object obj) | |
| { | |
| var messageLite = obj as IMessageLite; | |
| if (messageLite != null) | |
| return Google.ProtocolBuffers.Extensions.ToJson(messageLite); | |
| return JsonConvert.SerializeObject(obj); | |
| } |