This file contains 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 mail.mail_name,domains.name,accounts.password,domains.status | |
FROM domains | |
LEFT JOIN mail ON mail.dom_id = domains.id | |
LEFT JOIN accounts ON accounts.id = mail.account_id | |
WHERE mail.mail_name <> '' |
This file contains 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 cr_date,cname,pname,login,status,passwd,email FROM clients |
This file contains 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
namespace ConsoleApplication6 | |
{ | |
using System; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var a = new MyClass(); |
This file contains 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
private string AssemblyString(string username, string password) | |
{ | |
return String.Format(@"using FluentMigrator; | |
namespace UpdatePass | |
{ | |
[Migration({2})] | |
public class Class1 : FluentMigrator.Migration | |
{ | |
public override void Down() | |
{ |
This file contains 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
private string GenerateAssembly(string username, string password, string _assemblyPath) | |
{ | |
var _result = ""; | |
using (var csc = new CSharpCodeProvider(new Dictionary<string, string>() { { "CompilerVersion", "v3.5" } })) | |
{ | |
var parms = new CompilerParameters(new[] { "mscorlib.dll", "System.Core.dll", "FluentMigrator.dll" }); | |
parms.GenerateExecutable = false; | |
parms.OutputAssembly = _assemblyPath; |
This file contains 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 bool SqlServerIsUp() | |
{ | |
return Process.GetProcessesByName("sqlservr").Any(); | |
} |
This file contains 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 void After_1() | |
{ | |
string Year, Month, Week, Day = String.Empty; | |
} |
This file contains 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 void Before_1() | |
{ | |
string Year = ""; | |
string Month = ""; | |
string Week = ""; | |
string Day = ""; | |
} |
This file contains 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
// Author: Oğuzhan YILMAZ | |
// Web : www.oguzhan.info | |
// Email : aspsrc@gmail.com | |
// 12/13/2011 | |
namespace PoshWhois | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.IO; |
This file contains 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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var cmd = new Executor(); | |
dynamic commandItem = RemoteServer.GetCommandItemFromRemoteServer(); //return Object; | |
cmd.ExecuteCommand(commandItem); | |
Console.ReadKey(); |