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/zsh | |
wget -m -p -E -k -K -np --restrict-file-names=nocontrol http://site/path/ |
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
[CmdletBinding()] | |
Param | |
( | |
[Parameter(Mandatory=$false, | |
ValueFromPipelineByPropertyName=$true, | |
ValueFromPipeline=$true | |
)] | |
[string[]]$ComputerName = $env:COMPUTERNAME | |
) |
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
#https://smsagent.wordpress.com/2017/05/18/find-the-full-windows-build-number-with-powershell/ | |
#https://gist.github.com/SMSAgentSoftware/78659181ccbe0f59677209f3487d7030 | |
[CmdletBinding()] | |
Param | |
( | |
[Parameter(Mandatory=$false, | |
ValueFromPipelineByPropertyName=$true, | |
ValueFromPipeline=$true | |
)] |
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
try | |
{ | |
using (FileStream FS = new FileStream(path, FileMode.CreateNew)) | |
{ | |
Console.WriteLine("Файл " + Path.GetFileName(path) + " создал с помощью FileStream"); | |
Console.WriteLine("Введите текст для последующей записи в файл"); | |
StringReader SR = new StringReader(Console.ReadLine()); | |
StreamWriter SW = new StreamWriter(FS); | |
SW.Write(SR.ReadToEnd()); | |
SW.Flush(); |
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
#include <windows.h> | |
#include <stdio.h> | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
//set up our variables and buffers. | |
DWORD dwType = 0; |