Skip to content

Instantly share code, notes, and snippets.

View maddtech's full-sized avatar

Eric Maddox maddtech

View GitHub Profile
@maddtech
maddtech / Ruby STRFTIME conversion formats.rb
Created November 25, 2015 17:00 — forked from akshaymohite/Ruby STRFTIME conversion formats.rb
Ruby script to print out strftime conversion format options and outputs
# 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
@maddtech
maddtech / 0_reuse_code.js
Created October 17, 2016 23:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@maddtech
maddtech / get-roaming.ps1
Created November 16, 2016 15:15 — forked from scuq/get-roaming.ps1
powershell remote read event log (Microsoft-Windows-WLAN-AutoConfig) for roaming event of client
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) {