- Ubuntu server
Change the default ssh port and disable root login
DDL is short name of Data Definition Language, which deals with database schemas and descriptions, of how the data should reside in the database.
DML is short name of Data Manipulation Language which deals with data manipulation, and includes most common SQL statements such SELECT, INSERT, UPDATE, DELETE etc, and it is used to store, modify, retrieve, delete and update data in database.
DCL is short name of Data Control Language which includes commands such as GRANT, and mostly concerned with rights, permissions and other controls of the database system.
Text types
cmdkey /list | ForEach-Object{if($_ -like "*Ziel:*"){cmdkey /del:($_ -replace " ","" -replace "Ziel:","")}} |
Get-SPsite -Limit all | %{ | |
$_ | Get-SPWeb -Limit all | %{ | |
$_.Lists | %{ | |
$_ | |
} | |
} | |
} |
function Get-RandomHexString { | |
param($count) | |
$hex = '012345679ABCDEF'.ToCharArray() | |
$array = foreach($number in 1..$count ){ $hex | Get-Random} | |
return (($array) -join "").ToString().ToLower() | |
} | |
function Get-WikiType{ | |
param($file) |
Cookie
Get Weight
fetch('https://connect.garmin.com/modern/proxy/userprofile-service/userprofile/personal-information/weightWithOutbound/filterByDay?from=1477526400000&until=1509148800000&_=1511026934431').then((result) => {console.log(result)})
if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"} | |
# update SharePoint cache token lifetime | |
$SPContentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService | |
$SPContentService.TokenTimeout = (New-TimeSpan -minutes 5) | |
$SPContentService.Update() | |
# udpate SharePoint claims token lifetime |
<# | |
$Metadata = @{ | |
Title = "Archive User ActiveDirectory and Mailbox" | |
Filename = "Archive-ADUserAndMailbox.ps1" | |
Description = "" | |
Tags = "powershell, activedirectory, archive, user, mailbox" | |
Project = "" | |
Author = "Janik von Rotz" | |
AuthorContact = "http://janikvonrotz.ch" | |
CreateDate = "2013-10-21" |