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
import subprocess | |
import sys | |
import platform | |
import ipaddress | |
from datetime import datetime | |
import time | |
import queue | |
from threading import Thread | |
import requests | |
from bs4 import BeautifulSoup |
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
$sourceFolder = "c:\origem" | |
$destinationFolder = "c:\destino" | |
$ghostscriptPath = "C:\Program Files\gs\gs10.02.0\bin\gswin64c.exe" | |
$pdfSettings = "/ebook" | |
Get-ChildItem -Path $sourceFolder -Filter "*.pdf" | ForEach-Object { | |
$outputFile = Join-Path -Path $destinationFolder -ChildPath $_.Name | |
$arguments = "-sDEVICE=pdfwrite", "-dCompatibilityLevel=1.4", "-dPDFSETTINGS=$pdfSettings", "-dNOPAUSE", "-dQUIET", "-dBATCH", "-sOutputFile=`"$outputFile`"", "`"$_`"" | |
& $ghostscriptPath @arguments |
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
Show hidden characters
{ | |
"cmd": ["C:/Program Files (x86)/Python37-32/python.exe", "-u", "$file"], | |
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)", | |
"selector": "source.python" | |
} |
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
cd /D "%~dp0" | |
dontstarve_dedicated_server_nullrenderer.exe -only_update_server_mods | |
start "My DST Server Master" dontstarve_dedicated_server_nullrenderer.exe -cluster Cluster_1 -shard Master | |
start "My DST Server Caves" dontstarve_dedicated_server_nullrenderer.exe -cluster Cluster_1 -shard Caves |