- have fun with them
- projections
- filters
- resource-keys
- scripting-gcloud
- gcloud alpha interactive
- https://medium.com/@Joachim8675309/getting-started-with-gcloud-sdk-part-1-114924737
- https://medium.com/@Joachim8675309/getting-started-with-gcloud-sdk-part-2-4d049a656f1a
- https://gist.github.com/bborysenko/97749fe0514b819a5a87611e6aea3db8
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 string ToJson(this object obj) | |
| { | |
| var messageLite = obj as IMessageLite; | |
| if (messageLite != null) | |
| return Google.ProtocolBuffers.Extensions.ToJson(messageLite); | |
| return JsonConvert.SerializeObject(obj); | |
| } |
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
| // 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(); |
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
| /* | |
| - 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 | |
| */ |
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
| <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; |
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
| Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } |
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 int[] ToIntArray(this string text) | |
| { | |
| if (string.IsNullOrWhiteSpace(text)) | |
| { | |
| return new int[] | |
| { | |
| }; | |
| } | |
| List<int> result = new List<int>(); |
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
| /// <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); |
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
| using System; | |
| using System.IO; | |
| using System.Text; | |
| namespace ConsoleApplication2 | |
| { | |
| internal class Program | |
| { | |
| private static void Main(string[] args) | |
| { |