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
// Включаем двойную буферизацию для DataGridView | |
typeof(DataGridView).InvokeMember( | |
"DoubleBuffered", | |
System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.SetProperty, | |
null, | |
dataGridView1, | |
new object[] { true }) |
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
using System; | |
using System.Drawing; | |
using System.Windows.Forms; | |
class Program | |
{ | |
static Color GetPixel(Point position) | |
{ | |
using (var bitmap = new Bitmap(1, 1)) | |
{ |
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
using System; | |
using System.Data; | |
using System.Data.Sql; | |
using System.Data.SqlClient; | |
namespace ConsoleApp1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Data.Sql; | |
using System.Data.SqlClient; | |
using System.IO; | |
using System.IO.Ports; | |
using System.Linq; | |
using System.Management; | |
using System.Windows.Forms; |
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
using System; | |
using System.Diagnostics; | |
using System.Threading; | |
namespace Timer_test | |
{ | |
class Program | |
{ | |
static Process myProcess = Process.GetCurrentProcess(); | |
static long peakPagedMem = 0, |
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
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.IO; | |
namespace CONSOLE_TEST_SOLUTION | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Xml.Serialization; | |
namespace CONSOLE_TEST_SOLUTION | |
{ | |
class Program | |
{ |
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
#!/bin/bash | |
echo | |
echo 'Скрипт начал работу...' | |
# Что бы запустить скрипт, требуется экспортировать переменные окружения, пример: | |
# export SQL_HOST=localhost && export SQL_USERNAME=admin && SQL_PSWD=qwerty1234 && sh backup.sh | |
# | |
# Если скрипт используется только на локальной машине и к нему никто, кроме вас не имеет доступ | |
# захардкодь ниже данные для авторизации в ms sql server. Экспортировать переменные не понадобится. |