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
| cd C:\ | |
| C:\Windows\System32\runas.exe /env /noprofile /user:corp\username "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -command \"start-process powershell_ise -verb RunAs\"" |
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
| function con-remote { | |
| # Look for a parameter to be sent for the computer name | |
| param( | |
| # Supply a computer name parameter | |
| $name=$(Write-Host "You must specify the computer name as an argument."), | |
| # Supply a routine to perform like OST | |
| [string]$arg1 | |
| ) | |
| if ($name -ne $null) { | |
| if (Test-Connection -Computername $name -BufferSize 16 -Count 1 -Quiet) { |
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
| class Person | |
| def look_around | |
| puts "looks around carefully." | |
| end | |
| def witness_transformation | |
| puts "Suddenly, #{@name} transforms into a #{$gender} named #{@new_name} right before your eyes!" | |
| end |
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
| var = "this is a local variable" | |
| @var = "this is an instance variable" | |
| @@var = "this is a class variable" | |
| $var = "this is a global variable" | |
| VAR = "this is a constant" | |
| def example_one | |
| var = "local" | |
| p "Yes this #{var} variable can be accessed here" | |
| end |
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
| =begin | |
| Your lock key ring correction | |
| =end | |
| hide_me | |
| loop do | |
| lastLine = get |
OlderNewer