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
I hereby claim: | |
* I am maddtech on github. | |
* I am maddtech (https://keybase.io/maddtech) on keybase. | |
* I have a public key whose fingerprint is 9685 93B7 2A1F B43C 65AF 1407 0310 25C9 13DA C365 | |
To claim this, I am signing this object: | |
```json | |
{ |
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 to print strftime results | |
def print_strftime_formats(a,cur_date) | |
a.each do |format| | |
b = "%#{format}" | |
output = cur_date.strftime(b) | |
puts "t.strftime('#{b}'), => #{output}" | |
end | |
end | |
a = ('a'..'z').to_a |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Param ([string]$hostname=(Read-Host "Enter Hostname")) | |
[int]$lasthours=(Read-Host "How many hours of eventlog? default 8") | |
$addhours = 8; | |
if ($lasthours) { | |
$addhours = $lasthours | |
} | |
if ($hostname) { |