inkscape -z -e user-ninja-solid.png -w 512 -h 512 user-ninja-solid.svg
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
$cdpVar = ForEach ($dstHost in $(Get-VMHost)) | |
{ | |
$NetSystem = Get-View $dstHost.ExtensionData.ConfigManager.NetworkSystem | |
foreach ($Pnic in $dstHost.ExtensionData.Config.Network.Pnic) | |
{ | |
if ($Pnic.Device -notlike "vusb*") | |
{ | |
$PnicInfo = $NetSystem.QueryNetworkHint($Pnic.Device) | |
$cdp = $PnicInfo.ConnectedSwitchPort |
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
# для каждого VMHost-а | |
$var = ForEach ($dstHost in $(Get-VMHost)) | |
{ | |
# для каждой включенной виртуалки | |
ForEach ($vm in $($dstHost | Get-VM | Where-Object -Property PowerState -EQ "PoweredOn")) | |
{ | |
# найдем портгруппу | |
$vmVlan = $vm | Get-VirtualPortGroup | |
# если у виртуалки больше одного порта, создаём объект на каждый |
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
## dotfiles | |
## | |
syntax "dotfile" "\.*$" | |
color cyan start="(^|[[:space:]])(#|;).*$" end="$" | |
color brightyellow start="=" end="$" | |
## Generic *.conf file syntax highlighting | |
## | |
syntax "conf" "\.(conf|cnf|cfg|config|cf)$" |
mklink syntax | Powershell equivalent |
---|---|
mklink Link Target |
New-Item -ItemType SymbolicLink -Name Link -Target Target |
mklink /D Link Target |
New-Item -ItemType SymbolicLink -Name Link -Target Target |
mklink /H Link Target |
New-Item -ItemType HardLink -Name Link -Target Target |
mklink /J Link Target |
New-Item -ItemType Junction -Name Link -Target Target |
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
# Sample /etc/sudoers file. | |
# | |
# This file MUST be edited with the 'visudo' command as root. | |
# | |
# See the sudoers man page for the details on how to write a sudoers file. | |
# | |
## | |
# User alias specification | |
## |
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
rabbitmqctl eval "net_adm:ping(rabbit@hostname)." | |
# если узел доступен получаем ответ pong |
I hereby claim:
- I am kapb14 on github.
- I am kapb14 (https://keybase.io/kapb14) on keybase.
- I have a public key ASAOgiROXoy8OY-xn039gdwZ22BQ9HZ2q5hnTk6a46zLVAo
To claim this, I am signing this object:
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
//Grab Nearest Target | |
//Created by Duck Face | |
//Enjoy | |
@createlist '1' | |
@clearlist '1' | |
@createlist '2' | |
@clearlist '2' | |
@createlist '3' | |
@clearlist '3' |
NewerOlder