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
| # Exact Solarized Dark color theme for the color GNU ls utility. | |
| # Designed for dircolors (GNU coreutils) 5.97 | |
| # | |
| # This simple theme was simultaneously designed for these terminal color schemes: | |
| # - Solarized dark (best) | |
| # - Solarized light | |
| # - default dark | |
| # - default light | |
| # with a slight optimization for Solarized Dark. | |
| # |
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
| # Path to your oh-my-zsh installation. | |
| export ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| ZSH_THEME="ys" | |
| # Uncomment the following line to use case-sensitive completion. |
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
| { | |
| "plugins": [ "git", "ssh", "z", "aliases", "dircolors" ], | |
| "dircolors": { | |
| "dirs": [ | |
| ["^\\..*$", "darkcyan", ""], | |
| [".*", "cyan", ""] | |
| ], | |
| "files": [ | |
| ["^\\..*$", "darkgray", ""], | |
| ["(?ix)\\.(7z|zip|tar|gz|rar)$", "yellow", ""], |
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
| function unzip($path,$to) { | |
| $7z = "$env:TEMP\7z" | |
| if (!(test-path $7z) -or !(test-path "$7z\7za.exe")) { | |
| if (!(test-path $7z)) { md $7z | out-null } | |
| push-location $7z | |
| try { | |
| write-host "Downloading 7zip" -foregroundcolor cyan | |
| $wc = new-object system.net.webClient | |
| $wc.headers.add('user-agent', [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox) | |
| $wc.downloadFile("http://softlayer-dal.dl.sourceforge.net/project/sevenzip/7-Zip/9.20/7za920.zip","$7z\7z.zip") |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- | |
| Rename this file to "ConEmu.xml" to enable portable mode. | |
| You may place "ConEmu.xml" file AFTER ConEmu starts, | |
| so You can save settings to xml, loaded from registry, | |
| and vice versa. | |
| --> | |
| <key name="Software"> | |
| <key name="ConEmu"> | |
| <!-- Main configuration (/config argument is not specified) --> |
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
| imagex /compress maximum /export <path_of_source_wim_file> <index_no> <path_of_destination_wim_file> <description_of_edition> | |
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
| $a=new-object net.webclient;$a.proxy.credentials=[system.net.credentialcache]::Defaultnetworkcredentials;$a.downloadstring('https://chocolatey.org/install.ps1')|iex |
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 class IterativeTreeExt | |
| { | |
| public static IEnumerable<T> AsDepthFirstEnumerable<T>(this T head, Func<T, IEnumerable<T>> children) | |
| { | |
| var nodes = new Stack<T>(new [] { head }); | |
| while(nodes.Count > 0) | |
| { | |
| var currentnode = nodes.Pop(); |
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 class RecursiveTreeExt | |
| { | |
| public static IEnumerable<T> AsDepthFirstEnumerable<T>(this T head, Func<T, IEnumerable<T>> children) | |
| { | |
| yield return head; | |
| foreach (var node in children(head)) | |
| { | |
| foreach (var child in AsDepthFirstEnumerable(node, children)) | |
| { |
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
| SELECT | |
| cat.name, | |
| ItemCount = FULLTEXTCATALOGPROPERTY(cat.name, 'ItemCount'), | |
| MergeStatus = FULLTEXTCATALOGPROPERTY(cat.name, 'MergeStatus'), | |
| PopulateCompletionAge = FULLTEXTCATALOGPROPERTY(cat.name, 'PopulateCompletionAge'), | |
| PopulateStatus = FULLTEXTCATALOGPROPERTY(cat.name, 'PopulateStatus'), | |
| ImportStatus = FULLTEXTCATALOGPROPERTY(cat.name, 'ImportStatus') | |
| FROM | |
| sys.fulltext_catalogs AS cat |