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
| #Использовать logos | |
| #Использовать tempfiles | |
| Перем Лог; | |
| Перем ЭтоWindows; | |
| Перем Базы; | |
| Перем ОшибкиПоиска; | |
| /////////////////////////////////////////////////////////////////////////////////////////////////// | |
| // ОСНОВНЫЕ МЕТОДЫ |
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
| Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
| Enable-RemoteDesktop | |
| cinst 7zip -y | |
| cinst notepadplusplus -y | |
| cinst flashplayerplugin -y | |
| cinst adobereader -y | |
| cinst office365homepremium -y | |
| cinst totalcommander -y | |
| cinst teamviewer -y | |
| cinst ammyy-admin -y |
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
| renames.txt eol=crlf | |
| *.bsl eol=crlf |
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
| declare @EmailFrom nvarchar(100) = 'ИмяПочтового профиля' | |
| declare @EmailTo nvarchar(100) = 'адреса получателей через запятую' | |
| declare @ErrorsQuery nvarchar(1000) = 'SELECT TOP 10 DatabaseName, StartTime, EndTime, ErrorNumber, ErrorMessage FROM master.dbo.CommandLog WHERE ErrorNumber <> 0 AND StartTime >= CONVERT (date, SYSDATETIME())' | |
| declare @BackupPath nvarchar(100) = 'Каталог бэкапов' | |
| declare @SiteName nvarchar(100) = 'SQL.' + @@SERVERNAME + '.' + DEFAULT_DOMAIN() | |
| declare @Subject nvarchar(100) | |
| declare @Result int; | |
| /* Бэкап логов */ | |
| EXECUTE @Result = dbo.DatabaseBackup |
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
| "C:\Program Files (x86)\Crypto Pro\CSP\csptest.exe" -absorb -provtype 75 -cert | |
| pause |
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
| /* | |
| Скрипт для восстановления базы из бэкапов, сделанных с помощью решения Ola Hallengren (https://ola.hallengren.com) | |
| Сделано по мотивам http://jason-carter.net/professional/restore-script-from-backup-directory-modified.html | |
| и http://www.codepimp.org/2015/04/automated-restore-using-ola-hallengrens-sql-server-backup/ | |
| На github есть готовые решения для восстановления из ola-бэкапов, это просто еще один вариант со своими особенностями: | |
| - восстановление баз на любом (не исходном) сервере | |
| - восстановление в указанный каталог | |
| - восстановление на момент времени | |
| - восстановление не только от последнего полного бэкапа, то есть можно указать любую дату в прошлом, были бы бэкапы | |
| - скрипт умеет обрывать соединения с конечной базой перед восстановлением |
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
| # Для работы скрипта необходимо задать переменные: | |
| # $clientname, $hvhosts | |
| # | |
| # В функции отправки почты в техподдержку задать переменные: | |
| # $emailTo, $emailFrom, $password, $smtpServer | |
| # | |
| ############################################################################## |
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
| delete from configsave | |
| delete from config where FileName = 'commit' | |
| delete from config where FileName = 'dynamicCommit' | |
| delete from config where FileName = 'dbStruFinal' |
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
| #!/bin/sh | |
| # simple installer for Ubuntu 14.04 https://bitbucket.org/EvilBeaver/1script/wiki/Home | |
| echo 'Starting wgeter latest develops' | |
| wget --continue http://oscript.io/downloads/night-build/latest.zip | |
| unzip -o latest.zip -d osc-engine |
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
| rd /s /q "%userprofile%\AppData\Roaming\1C" | |
| rd /s /q "%userprofile%\AppData\Local\1C" | |
| mkdir "G:\users\%username%\AppData\Roaming\1C" | |
| mkdir "G:\users\%username%\AppData\Local\1C" | |
| mklink /j "%userprofile%\AppData\Roaming\1C" "G:\users\%username%\AppData\Roaming\1C" | |
| mklink /j "%userprofile%\AppData\Local\1C" "G:\users\%username%\AppData\Local\1C" | |
| rem pause |
OlderNewer