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
ns=my_ns | |
my_pod=pod-of-mine | |
zuza='oppa doppa' | |
# As a direct command. | |
kubectl -n $ns exec $my_pod -- sh -c ' \ | |
val="tram '"$zuza"' pam"; \ | |
echo gu '"$zuza"' ga; \ | |
echo la la "$val" la la;' |
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
# For https://stackoverflow.com/questions/40569045/register-scheduledjob-as-the-system-account-without-having-to-pass-in-credentia/60554216#60554216 | |
$ErrorActionPreference = 'Stop' | |
Clear-Host | |
#### Start of Main Logic ########################### | |
$taskName = "my_PowerShell_job" | |
$accountId = "NT AUTHORITY\SYSTEM"; |
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
-- http://sqlfiddle.com/#!18/f85ba/44 | |
CREATE TABLE Department( | |
ID INT PRIMARY KEY CLUSTERED, | |
Name NVARCHAR (256) NOT NULL | |
); | |
CREATE TABLE Employee( | |
ID INT PRIMARY KEY CLUSTERED, | |
Department_ID INT, | |
Chief_ID INT, |
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
# The "Wi-Fi" below should be a concreat name of your Wi-Fi adapter. | |
Enable-NetAdapter -Name Wi-Fi |
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
# For PoserShell 5.1 and above. | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
Install-PackageProvider -Name NuGet -Force -Scope AllUsers | |
Install-Module -Name Microsoft.PowerShell.LocalAccounts -Force -Scope AllUsers | |
#Get-Module -ListAvailable -Name Microsoft.PowerShell.LocalAccounts | |
##Import-Module -Name Microsoft.PowerShell.LocalAccounts | |
Add-LocalGroupMember -Group Administrators -Member MyDomain\MyLogin |