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
[Unit] | |
Description=Авто монтирование сетевой папки | |
[Automount] | |
Where=/mnt/print | |
TimeoutIdleSec=30 | |
[Install] | |
WantedBy=graphical.target |
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
@echo off | |
set server=ZAGS-SERVER | |
set share=ZAGS32 | |
set disk=Z | |
set check=%disk%:\zags32.exe | |
rem Если сетевой диск смонтирован, то просто запускаем программу | |
if exist %check% goto run | |
:loop |
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 | |
userconf="$HOME/.anydesk/user.conf" | |
# Указываем файл в "облаке", если его нет, он будет создан автоматически | |
cloud="$HOME/MEGAsync/anydesk.txt" | |
if ! [ -f "$userconf" ]; then | |
echo -e "Ошибка: Файл $userconf не найден!\n\tСкорее всего не установлен AnyDesk" >&2 | |
exit 1 | |
fi |
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
# Скрипт автоматической настройки школьного интернета v0.3.1 | |
# Макс Максимов, https://vk.com/itmax | |
$cert = 'ca.root.crt' | |
$server = '10.0.46.52' #'77.34.90.72' | |
$port = '3128' | |
$bypassList = '192.168.*;10.*;<local>' | |
# Для совместимости со старыми версиями powershell | |
if ($PSScriptRoot -eq $null) { | |
$PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition |
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
Clear-Host | |
#Указываем папку c webdriver.dll и драйвером нужного браузера | |
$seleniumPath = 'C:\scripts\selenium' | |
#Указываем браузер | |
$browser = 'firefox' | |
#Арес веб-интерфейса роутера | |
$url = 'http://192.168.1.1' | |
#Добавляем путь до webdrivera в переменные окружения пользователя | |
if (($env:Path -split ';') -notcontains $seleniumPath) { |
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
$server = "localhost" #Адресс сервера (в моем случае локальный) | |
$db = "Skif_Bp" #База данных | |
$back_dir = "E:\backup" #Куда сохранять бэкапы | |
$file_name = $db + "_" + (Get-Date -Format yyyy-MM-dd) + ".bak" #имя бэкапа вида BaseName_2018-12-31.bak | |
$arch_type = "7z" #Тип архива | |
$days = 14 #сколько дней хранить бекапы | |
#Для бекапа сетевой базы нужно будет использовать логин и пароль для доступа к серверу | |
#cм. справку к команде Backup-SqlDatabase | |
Set-Location $back_dir |