// jQuery
$(document).ready(function() {
// code
})
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
::::::::::::::::::::::::::::::::::::::::: | |
:: Automatically check & get admin rights | |
::::::::::::::::::::::::::::::::::::::::: | |
@echo off | |
CLS | |
ECHO. | |
ECHO ============================= | |
ECHO Running Admin shell | |
ECHO ============================= |
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
if (([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) | |
{ | |
"Running as admin in $PSScriptRoot" | |
} | |
else | |
{ | |
"NOT running as an admin!" | |
Start-Process powershell -WorkingDirectory $PSScriptRoot -Verb runAs -ArgumentList "-noprofile -noexit -file $PSCommandPath" | |
return "Script re-started with admin privileges in another shell. This one will now exit." | |
} |
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
function Show-Firewall { | |
<# | |
.SYNOPSIS | |
Shows detailed Firewall Rules. | |
.DESCRIPTION | |
Shows you Details of Firewall Rules by selected Name. You can output the result into an GridView or Netsh Commands. | |
.PARAMETER DisplayName | |
The Name of the Rule, Wildcards are allowed. |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="yes" name="apple-mobile-web-app-capable"> | |
<title>Cool web-app</title> | |
<!-- iPhone - iPod touch - 320x460 --> | |
<link href="splashscreen.png" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 1)" rel="apple-touch-startup-image"> | |
<!-- iPhone - iPod (Retina) - 640x920 --> |
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
#!/usr/bin/env bash | |
# Copyright 2015 - 2017 Tobias Benzin tbenzin@digital-nerv.net | |
# Rally Vincent rvincent@digital-nerv.net | |
function input_string { | |
echo "── Input ────────────────────────────────────────────────────────────────────┐" | |
echo "${*}" | |
echo "─────────────────────────────────────────────────────────────────────────────┘" | |
echo "" | |
echo "── Encrypted ────────────────────────────────────────────────────────────────┐" |
Master (Documentation)[https://docs.saltstack.com/en/latest/ref/configuration/master.html]
Ubuntu 16.04
wget -O - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
echo 'deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest xenial main' | sudo tee /etc/apt/sources.list.d/saltstack.list
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
if ($Event.Services -match "wlidsvc") { | |
if ((Get-WmiObject -Class Win32_OperatingSystem).Caption -match "Windows 10") { | |
$Name = "Windows Live ID Service {0}" -f $Event.DestPort | |
if (-not (Get-NetFirewallRule -Name $Name -ErrorAction SilentlyContinue)) { | |
New-NetFirewallRule -Name $Name -DisplayName $Name -Enabled True ` | |
-Profile Any -Direction Outbound -Action Allow ` | |
-LocalAddress Any -RemoteAddress $Event.DestAddress ` | |
-Protocol "TCP" -LocalPort Any -RemotePort $Event.DestPort ` | |
-Program "%SystemRoot%\System32\svchost.exe" | |
} else { |
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
# Hide ShowTaskViewButton / Default: 1 or not exist | |
if (-not ((Get-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowTaskViewButton -ErrorAction SilentlyContinue) -match 0)) { | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowTaskViewButton -Value 0 -Type DWord -Verbose | |
$RestartExplorer = $true | |
} | |
# Hide PeopleBand / Default: 1 | |
if (-not ((Get-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People -Name PeopleBand -ErrorAction SilentlyContinue) -match 0)) { | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People -Name PeopleBand -Value 0 -Type DWord -Verbose | |
$RestartExplorer = $true |
OlderNewer