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 class ActiveDirectoryHelper : IDisposable | |
| { | |
| private readonly DirectoryEntry _de; | |
| private readonly DirectorySearcher _searcher; | |
| public ActiveDirectoryHelper(string ldapPath) | |
| { | |
| _de = new DirectoryEntry(ldapPath); | |
| _searcher = new DirectorySearcher(_de); | |
| } |
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 rs | |
| set PREV_CMD (history | head -1) | |
| echo Running: sudo $PREV_CMD | |
| sudo $PREV_CMD | |
| end |
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
| Helpers.ShowFileProperties(sourcePath); | |
| IntPtr ptr = IntPtr.Zero; | |
| var title = IsDirectory(sourcePath) ? new DirectoryInfo(sourcePath).Name : new FileInfo(sourcePath).Name; | |
| title += " Properties"; | |
| while (ptr == IntPtr.Zero) | |
| ptr = Helpers.FindWindow("#32770", title); |
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
| foreach (TreeViewItem messages in Messages) | |
| { | |
| foreach (TreeViewItem item in messages.Items) | |
| { | |
| s.Add(item.Header.ToString()); | |
| } | |
| } |
NewerOlder